Commands
Complete reference for all Spin commands and their options
Quick Reference
spin up [app-name]
Start the development environment and required services for an application. Automatically manages services defined in your configuration.
Examples
# Start the app and required services
spin up
# Start the app in the myapp directory
spin up myapp
spin down
Stop all running processes, clean up the development environment, and stop any services that were started.
# Stop all processes and services
spin down
spin ps
List all running processes and their status.
# Show process list
spin ps
spin logs [process-name]
View the output logs for a specific process.
# View web process logs
spin logs web
spin debug [process-name]
Attach to a process in debug mode (useful for interactive debugging sessions).
# Debug web process
spin debug web
spin init [app-name]
Initialize a new application with Spin configuration.
# Initialize new app in myapp directory
spin init myapp
# Initialize with specific repository
spin init myapp --repo=org/name
# Initialize in current directory
spin init . --force
spin scripts
Manage and run scripts defined in your configuration.
# Show all available scripts
spin scripts list
# Run the setup script
spin scripts run setup
# Run the test script
spin scripts run test
# Run with environment variables
spin scripts run test --env=NODE_ENV=test
# Run in specific directory
spin scripts run build --workdir=/path/to/dir
# Skip hook errors
spin scripts run deploy --skip-hook-error
spin config
Manage Spin configuration settings.
# Show current configuration
spin config show
# Set default organization
spin config set-org myorg
spin services
Manage Docker-based services for your application.
# Show all services with status
spin services list
# Start a specific service
spin services start redis
# Stop a specific service
spin services stop redis
# Restart a service
spin services restart redis
# View service logs
spin services logs redis
# Stream logs continuously
spin services logs redis -f
# Service maintenance
spin services cleanup volumes
spin services update redis