Skip to content

CLI Installation

Varity Team Core Contributors Updated March 2026

Get the VarityKit CLI installed on your system.

Terminal window
pip install varitykit
Terminal window
varitykit --version

You should see the current version number, for example:

varitykit 1.2.0

Check that your environment is properly configured:

Terminal window
varitykit doctor

You should see a table of checks with a ✓ All checks passed! message at the end.

RequirementMinimumRecommended
Python3.83.11+
Node.js18.020.0+
npm/pnpm/yarnAnyLatest
RequirementNeeded For
GitVersion control
  1. Create a .env file (optional) in your project root:

    .env.local
    # Your Varity App ID (from developer portal)
    NEXT_PUBLIC_VARITY_APP_ID=your-app-id

    All deployment credentials (storage, authentication, hosting) are managed automatically by the Varity credential proxy. See Managed Credentials.

  2. Verify your setup:

    Terminal window
    varitykit doctor

Enable tab completion for your shell:

Terminal window
# Auto-detect shell and install
varitykit completions --install
# Or specify a shell
varitykit completions --shell bash --install

Run varitykit completions to see manual installation instructions for your shell.

The CLI is not in your PATH. Try:

Terminal window
# Option 1: Use python -m
python -m varitykit --version
# Option 2: Add to PATH
export PATH="$HOME/.local/bin:$PATH"

Python dependencies are missing:

Terminal window
pip install --upgrade varitykit

Docker is optional and used for advanced local development:

Terminal window
# macOS
brew install --cask docker
# Ubuntu
sudo apt install docker.io
# Windows
# Download from docker.com

On Linux/macOS, you may need to run:

Terminal window
pip install --user varitykit

Or use a virtual environment:

Terminal window
python -m venv .venv
source .venv/bin/activate
pip install varitykit

Update to the latest version:

Terminal window
pip install --upgrade varitykit

Remove the CLI:

Terminal window
pip uninstall varitykit