Search…
Install

Install the CLI

1
# download CLI version 0.40.0 (Note the "v"):
2
bash -c "$(curl -sS https://raw.githubusercontent.com/cortexlabs/cortex/v0.40.0/get-cli.sh)"
Copied!
By default, the Cortex CLI is installed at /usr/local/bin/cortex. To install the executable elsewhere, export the CORTEX_INSTALL_PATH environment variable to your desired location before running the command above.

Install the CLI and Python client via pip

To install the latest version:
1
pip install cortex
Copied!
To install or upgrade to a specific version (e.g. v0.40.0):
1
pip install cortex==0.40.0
Copied!
To upgrade to the latest version:
1
pip install --upgrade cortex
Copied!

Changing the CLI/client configuration directory

By default, the CLI/client creates a directory at ~/.cortex/ and uses it to store environment configuration. To use a different directory, export the CORTEX_CLI_CONFIG_DIR environment variable before running any cortex commands.
Last modified 3mo ago