Install DevRev CLI
The DevRev CLI is a command-line interface tool that simplifies working with the DevRev REST APIs.
The installation of the DevRev CLI via Homebrew (for MAC), dpkg (for Linux) is no longer supported.
If you have previously installed the DevRev CLI using these deprecated methods, you must uninstall the earlier version then reinstall with the current version.
sudo dpkg -r devrev
brew uninstall devrev
Install the DevRev CLI
Install using npm:
npm install -g devrev
This installs the DevRev CLI globally, making it available from any directory.
Supported architecture: Windows amd64
Install
- Download the Windows executable.
- Unzip the downloaded file and add the path to the environment variable.
- Add the directory to the system PATH variable under System Properties > This PC > Properties.
- In the System window, click Advanced system settings > Environment Variables > Path > Edit.
- In the Edit environment variable window, click New. Enter the path to the directory you want to add. For example:
C:\Program Files\devrev\
. - Click OK to save the changes. Close all remaining windows by clicking OK.
You may need to restart your computer for the changes to take effect.
Upon completion of the installation, confirm its success by checking the version of the DevRev CLI.
devrev --version
This command presents the currently installed version of the DevRev CLI, thereby verifying its successful installation.
Uninstall the DevRev CLI
Uninstall using npm:
npm uninstall -g devrev
- Remove the path from the environment variable.
- Delete the downloaded executable file and its folder.