Book a demo

← Documentation

Install OpenLegacy CLI (Mac)

Prerequisites

Java OpenJDK versions 17 to 21 (required) -

You can use distributions such as:

Install Openlegacy CLI with a portable installer

  1. Download the installation file.

  2. Unzip the installation file.

  3. In the Terminal, go to ol/bin.

  4. Type ./install.sh and press enter.

If you do not have executable permission, run chmod +x install.sh before running install.sh.

  1. Run the ol command to confirm that the CLI is working properly.

Install the Openlegacy CLI with Brew

  1. In your terminal add the OpenLegacy homebrew tap.

    brew tap openlegacy/tap
    
  2. Install the latest openlegacy-cli package.

    brew install openlegacy-cli
    

If you want to install a specific version run:

brew install openlegacy-cli@1.1.0
  1. Run ol to confirm that the CLI is working properly.

Upgrade the OpenLegacy CLI with Brew

  1. In your terminal, run the following:

    brew upgrade openlegacy-cli
    
  2. 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:

On Apple Silicon Macs, Homebrew installs under /opt/homebrew instead of /usr/local. Replace /usr/local with /opt/homebrew in the commands below.

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

Read more

Tell us about yourself

You've been browsing the catalog. Leave your details to keep exploring.

Privacy policy