# List volumesmodal volume list# Create a volumemodal volume create my-volume# Delete a volumemodal volume delete my-volume# List files in a volumemodal volume ls my-volume /path# Download from volumemodal volume get my-volume /remote/path /local/path# Upload to volumemodal volume put my-volume /local/path /remote/path
# List dictsmodal dict list# Create a dictmodal dict create my-dict# Delete a dictmodal dict delete my-dict# Get a valuemodal dict get my-dict key# Set a value modal dict put my-dict key value
# List queuesmodal queue list# Create a queuemodal queue create my-queue# Delete a queuemodal queue delete my-queue# Get queue lengthmodal queue len my-queue
# Create a new tokenmodal token new# Create token for a profilemodal token new --profile work# List tokensmodal token list# Set active tokenmodal token set TOKEN_ID
modal deploy app.py --env production --name my-production-app
Debug a running app
# Get app IDmodal app list# Stream logsmodal app logs ap-123456 --timestamps# Check containersmodal container list
Manage data in volumes
# Upload datamodal volume put my-data ./local/data /remote/data# List contentsmodal volume ls my-data /remote/data# Download resultsmodal volume get my-data /remote/results ./local/results
Work with multiple environments
# Deploy to stagingmodal deploy app.py --env staging# Test in stagingmodal run app.py --env staging# Deploy to productionmodal deploy app.py --env production