CLI Reference
Command-line interface for Soup. Manage secrets, flags, projects, and more.
Installation
Section titled “Installation”curl -fsSL https://cli.getsoup.dev/install.sh | shDownloads the correct binary for your platform (Linux/macOS x64/ARM64).
Authentication
Section titled “Authentication”# Browser-based loginsoup login
# Device flow (for remote/headless)soup login --device
# Check current usersoup whoami
# Logoutsoup logoutSee Authentication for details on tokens and service accounts.
Projects
Section titled “Projects”# Create projectsoup project create my-app
# List projectssoup project listEnvironments
Section titled “Environments”# Create root environmentsoup env create my-app root
# Create child environment (inherits from parent)soup env create my-app production --parent rootEnvironments can be named anything. Common pattern: root, development, staging, production.
Secrets
Section titled “Secrets”Set/Get
Section titled “Set/Get”# Set a secretsoup secrets set DATABASE_URL postgres://localhost/db
# Get a secretsoup secrets get DATABASE_URL
# List all secretssoup secrets listContext auto-selected from config. Or specify explicitly:
soup secrets set --project my-app --env production API_KEY xyzDownload/Upload
Section titled “Download/Upload”# Download all secrets to filesoup secrets download > secrets.env
# Upload secrets from filesoup secrets upload secrets.envRun with Secrets
Section titled “Run with Secrets”# Inject secrets as env varssoup run -- npm startsoup run -- python manage.py runserverSecrets exported to environment before running command.
Aliases
Section titled “Aliases”Short versions for secrets commands:
soup s set KEY value # same as soup secrets setsoup s get KEY # same as soup secrets getsoup s ls # same as soup secrets listFeature Flags
Section titled “Feature Flags”# Create flagsoup flags create dark-mode
# Enable/disablesoup flags on dark-modesoup flags off dark-mode
# List flagssoup flags list
# Get flag detailssoup flags get dark-modeAliases
Section titled “Aliases”soup f create dark-mode # same as soup flags createsoup f on dark-mode # same as soup flags onsoup f ls # same as soup flags listAPI Tokens
Section titled “API Tokens”# Create token interactivelysoup token create
# Create with specific scopessoup token create --name "CI" --scopes secrets:read,secrets:write
# List tokenssoup token list
# Revoke tokensoup token revoke <id>
# Show available scopessoup token scopesAvailable scopes:
projects:read,projects:writesecrets:read,secrets:write,secrets:deleteflags:read,flags:write,flags:deleteenvs:create,envs:delete
Configuration
Section titled “Configuration”Interactive Setup
Section titled “Interactive Setup”soup configPrompts for project and environment context. Saves to ~/.soup/config.json.
Config File
Section titled “Config File”Location: ~/.soup/config.json
{ "dashboard_url": "https://app.getsoup.dev", "control_plane_url": "https://app.getsoup.dev", "token": "soup_pat_...", "org": "my-org", "project": "my-app", "environment": "production"}Environment Variables
Section titled “Environment Variables”Override config with env vars:
SOUP_TOKEN=soup_pat_xxx soup secrets listSOUP_PROJECT=other-app soup flags listUtilities
Section titled “Utilities”# Check healthsoup health
# Show versionsoup version
# Update CLIsoup update
# Show settingssoup settings showCommon Workflows
Section titled “Common Workflows”Local Development
Section titled “Local Development”# Pull secrets and run appsoup run -- npm run dev# GitHub Actions- name: Install Soup run: curl -fsSL https://cli.getsoup.dev/install.sh | sh
- name: Deploy env: SOUP_TOKEN: ${{ secrets.SOUP_TOKEN }} run: | soup config # sets project/env soup run -- ./deploy.shEnvironment Variables
Section titled “Environment Variables”# Export to current shelleval $(soup secrets export)
# Or manually sourcesoup secrets download > .envsource .envSelf-Hosted
Section titled “Self-Hosted”For standalone Soup instances:
# Use API key instead of session tokenSOUP_TOKEN=sk_master_xxx soup secrets list
# Point to local instancesoup config# Server URL: http://localhost:8080Getting Help
Section titled “Getting Help”# Show all commandssoup --help
# Command-specific helpsoup secrets --helpsoup flags create --help