CLI Installation
Get the VarityKit CLI installed on your system.
Install with pip
Section titled “Install with pip”pip install varitykitpipx install varitykitgit clone https://github.com/varity-labs/varity-sdk.gitcd varity-sdk/clipip install -e .Verify Installation
Section titled “Verify Installation”varitykit --versionYou should see output like:
varitykit 1.1.4Run Diagnostics
Section titled “Run Diagnostics”Check that your environment is properly configured:
varitykit doctorExpected output:
✓ Python version: 3.11.0 (>= 3.8 required)✓ Node.js version: 20.0.0 (>= 18 required)✓ npm version: 10.0.0✓ Docker: Running✓ Storage credentials: Set✓ All checks passed!Requirements
Section titled “Requirements”Required
Section titled “Required”| Requirement | Minimum | Recommended |
|---|---|---|
| Python | 3.8 | 3.11+ |
| Node.js | 18.0 | 20.0+ |
| npm/pnpm/yarn | Any | Latest |
Optional
Section titled “Optional”| Requirement | Needed For |
|---|---|
| Git | Version control |
Environment Setup
Section titled “Environment Setup”-
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-idAll deployment credentials (storage, authentication, hosting) are managed automatically by the Varity credential proxy. See Managed Credentials.
-
Verify your setup:
Terminal window varitykit doctor
Shell Completions
Section titled “Shell Completions”Enable tab completion for your shell:
varitykit completions bash >> ~/.bashrcsource ~/.bashrcvaritykit completions zsh >> ~/.zshrcsource ~/.zshrcvaritykit completions fish > ~/.config/fish/completions/varitykit.fishTroubleshooting
Section titled “Troubleshooting””command not found: varitykit”
Section titled “”command not found: varitykit””The CLI is not in your PATH. Try:
# Option 1: Use python -mpython -m varitykit --version
# Option 2: Add to PATHexport PATH="$HOME/.local/bin:$PATH"“ModuleNotFoundError”
Section titled ““ModuleNotFoundError””Python dependencies are missing:
pip install --upgrade varitykit“Docker not found”
Section titled ““Docker not found””Docker is required for the localnet command:
# macOSbrew install --cask docker
# Ubuntusudo apt install docker.io
# Windows# Download from docker.comPermission denied
Section titled “Permission denied”On Linux/macOS, you may need to run:
pip install --user varitykitOr use a virtual environment:
python -m venv .venvsource .venv/bin/activatepip install varitykitUpdating
Section titled “Updating”Update to the latest version:
pip install --upgrade varitykitUninstalling
Section titled “Uninstalling”Remove the CLI:
pip uninstall varitykitNext Steps
Section titled “Next Steps”- Run diagnostics - Verify your setup
- Initialize a project - Create a new project
- Deploy your app - Go to production
Related Resources
Section titled “Related Resources”- CLI Overview - All CLI features
- Quick Start - Build your first app
- Troubleshooting - Common issues