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

# 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

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