Skip to main content
The Flash CLI provides commands for initializing projects, running local development servers, building deployment artifacts, and managing your applications on Runpod Serverless. Before using the CLI, make sure you’ve installed Flash.

Available commands

CommandDescription
flash initCreate a new Flash project with a template structure
flash loginAuthenticate with Runpod using your API key
flash runStart the local development server with automatic updates
flash buildBuild a deployment artifact without deploying
flash deployBuild and deploy your application to Runpod
flash envManage deployment environments
flash appManage Flash applications
flash undeployRemove deployed endpoints

Getting help

View help for any command by adding --help:
flash --help
flash deploy --help
flash env --help

Authentication

Authenticate with Runpod using your API key:
flash login
This command prompts you for your Runpod API key and stores it securely for future CLI operations. You can find your API key in the Runpod console. Alternatively, set the RUNPOD_API_KEY environment variable:
export RUNPOD_API_KEY=your_api_key_here

Common workflows

Local development

# Create a new project
flash init PROJECT_NAME
cd PROJECT_NAME

# Install dependencies
pip install -r requirements.txt

# Add your API key to .env
# Start the development server
flash run

Deploy to production

# Build and deploy
flash deploy

# Deploy to a specific environment
flash deploy --env ENVIRONMENT_NAME

Manage deployments

# List environments
flash env list

# Check environment status
flash env get ENVIRONMENT_NAME

# Remove an environment
flash env delete ENVIRONMENT_NAME

Clean up endpoints

# List deployed endpoints
flash undeploy list

# Remove specific endpoint
flash undeploy ENDPOINT_NAME

# Remove all endpoints
flash undeploy --all