Skip to content

Install Leverage CLI

Leverage-based projects are better managed via the Leverage CLI which is a companion tool that simplifies your daily interactions with Leverage. This page will guide you through the installation steps.

Prerequisites

In order to install the CLI you should have the following installed in your system:

Install Leverage CLI

Leverage CLI is distributed as a python package that you can install it via pip as follows:

pip install leverage

For further details on installing Leverage CLI: 📚 Install Leverage CLI

Verify your Leverage CLI installation

Verify that your Leverage CLI installation was successful by running the following command:

$ leverage --version
leverage, version 1.9.2

It is generally recommended to install the latest stable version of the CLI

Enable tab completion

If you use Bash, Zsh or Fish, you can enable shell completion for Leverage commands.

Add to ~/.bashrc:

eval "$(_LEVERAGE_COMPLETE=bash_source leverage)"

Add to ~/.zshrc:

eval "$(_LEVERAGE_COMPLETE=zsh_source leverage)"

Add to ~/.config/fish/completions/leverage.fish:

eval (env _LEVERAGE_COMPLETE=fish_source leverage)

Now you need to restart your shell.

Next steps

Now you have your system completely configured to work on a Leverage project.

Next, you will setup and create your Leverage project.