Skip to main content

SUPERVAIZER CLI

SUPERVAIZER includes a command-line interface to simplify setup and operation:

# Install Supervaizer
pip install supervaizer

# Get Help
supervaizer --help

# Create a supervaizer_control.py file in your current directory
supervaizer scaffold


# Start the server using the configuration file
supervaizer start

# Deploy to cloud platforms
supervaizer deploy up --platform cloud-run --name my-agent

# To get all the start options
supervaizer start --help

CLI Commands

install

Creates a starter configuration file (supervaizer_control.py)

# Basic usage (creates supervaizer_control.py in current directory)
supervaizer scaffold
# Specify a custom output path
supervaizer scaffold --output-path=my_config.py

# Force overwrite if file already exists
supervaizer scaffold --force

start

Starts the Supervaizer server

# Basic usage (loads supervaizer_control.py from current directory)
supervaizer start

# Specify a custom configuration file
supervaizer start my_config.py

# Configure server options
supervaizer start --host=0.0.0.0 --port=8080 --environment=production

# Enable debug mode and auto-reload
supervaizer start --debug --reload

# Set log level
supervaizer start --log-level=DEBUG

deploy

Deploy Supervaizer agents to cloud platforms with full automation

# Plan deployment (preview changes)
supervaizer deploy plan --platform cloud-run --name my-agent --env prod

# Test locally with Docker
supervaizer deploy local --name my-agent --generate-api-key

# Deploy to cloud platform
supervaizer deploy up --platform cloud-run --name my-agent --env prod

# Check deployment status
supervaizer deploy status --platform cloud-run --name my-agent --env prod

# Remove deployment
supervaizer deploy down --platform cloud-run --name my-agent --env prod

Supported Platforms:

  • cloud-run - Google Cloud Run
  • aws-app-runner - AWS App Runner
  • do-app-platform - DigitalOcean App Platform

Common Options:

  • --platform - Cloud platform (required)
  • --name - Service name (default: current directory)
  • --env - Environment (dev/staging/prod, default: dev)
  • --region - Provider region
  • --generate-api-key - Create secure API key
  • --yes - Non-interactive mode

local

Test Supervaizer agents locally using Docker before cloud deployment

# Test locally with default settings
supervaizer deploy local --name my-agent

# Test with custom options
supervaizer deploy local \
--name email-agent \
--env dev \
--port 8000 \
--generate-api-key \
--generate-rsa \
--timeout 60 \
--verbose

Local Testing Options:

  • --name - Service name (default: current directory)
  • --env - Environment (dev/staging/prod, default: dev)
  • --port - Application port (default: 8000)
  • --generate-api-key - Create secure API key for testing
  • --generate-rsa - Generate RSA private key for testing
  • --timeout - Seconds to wait for service startup (default: 30)
  • --verbose - Show Docker Compose output

For detailed deployment documentation, see the Cloud Deployment Guide.

Environment Variables

All CLI options can also be configured through environment variables:

Environment VariableDescriptionDefault Value
SUPERVAIZER_PUBLIC_URLUrl used for inbound connectionsdefaults to scheme+host+port
SUPERVAIZER_HOSTHost to bind the server to0.0.0.0
SUPERVAIZER_PORTPort to bind the server to8000
SUPERVAIZER_ENVIRONMENTEnvironment namedev
SUPERVAIZER_LOG_LEVELLog level (DEBUG, INFO, etc.)INFO
SUPERVAIZER_DEBUGEnable debug mode (true/false)false
SUPERVAIZER_RELOADEnable auto-reload (true/false)false
SUPERVAIZER_SCRIPT_PATHPath to configuration script-
SUPERVAIZER_OUTPUT_PATHPath for install command outputsupervaizer_control.py
SUPERVAIZER_FORCE_INSTALLForce overwrite existing filefalse

Uploaded on 2025-08-12 14:19:38