Install OpenLegacy CLI (Mac)
Prerequisites
- Java JDK 17 (required)
Install Openlegacy CLI with a portable installer
-
Download the installation file.
-
Unzip the installation file.
-
In the Terminal, go to ol/bin.
-
Type $ ./install.sh and press enter.
If you do not have executable permission, run chmod -x install before running install.sh.
- Run the ol command to confirm that the CLI is working properly.
Install the Openlegacy CLI with Brew
-
In your terminal add the OpenLegacy homebrew tap.
brew tap openlegacy/tap
-
Install the latest openlegacy-cli package.
brew install openlegacy-cli
If you want to install a specific version run:
brew install [email protected]
- Run ol to confirm that the CLI is working properly.
Upgrade the OpenLegacy CLI with Brew
-
In your terminal, run the following:
brew upgrade openlegacy-cli
-
To confirm that OpenLegacy CLI was upgraded to the latest version, run ol -v.
Uninstall the OpenLegacy CLI with Brew
If you want to uninstall the OpenLegacy CLI run:
brew uninstall openlegacy-cli
Install auto-completion
Auto completion is preinstalled with the OpenLegacy CLI. If for some reason auto-completion is not working with your installation, perform the following:
Bash
echo "source /usr/local/opt/openlegacy-cli/etc/bash_completion.d/ol" >> ~/.bashrc
ZSH
echo "source /usr/local/share/zsh/site-functions/_ol" >> ~/.zshrc
Updated 4 months ago