From 22fa3938f9ad2b8985b5877c18a6a3cfd9f615c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Norman=20K=C3=A4mper-Leymann?= Date: Sat, 27 Jan 2024 17:56:28 +0100 Subject: [PATCH] Add commands for manual installation --- README.md | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d891885..90e9740 100644 --- a/README.md +++ b/README.md @@ -13,9 +13,25 @@ A command line tool for interfacing with Drupal.org. Uses the Drupal.org REST AP ### Installing manually -1. Download the `drupalorg.phar` file from the [latest release](https://github.com/mglaman/drupalorg-cli/releases/latest). - +1. Download the `drupalorg.phar` file from the [latest releases](https://github.com/mglaman/drupalorg-cli/releases/latest). + + Mac: + ```bash + curl -OL https://github.com/mglaman/drupalorg-cli/releases/latest/download/drupalorg.phar + ``` + Linux: + ```bash + wget -O drupalorg.phar https://github.com/mglaman/drupalorg-cli/releases/latest/download/drupalorg.phar + ``` + 2. Rename the file to `drupalorg`, ensure it is executable, and move it into a directory in your PATH (use `echo $PATH` to see your options). + ```bash + chmod +x drupalorg.phar + ``` + + ```bash + sudo mv drupalorg.phar /usr/local/bin/drupalorg + ``` 3. Run `drupalorg` and verify you can see the list of available commands.