Skip to content

CLI

All commands use the --config flag for server config (default: /etc/simpledeploy/config.yaml). Remote commands use the active context from ~/.simpledeploy/config.yaml.

Start the SimpleDeploy server.

Terminal window
simpledeploy serve --config /etc/simpledeploy/config.yaml

Starts: reverse proxy (Caddy), management API, reconciler watcher, metrics collector, backup scheduler, alert evaluator.

Generate a default config file with a random master_secret (mode 0600). Refuses to overwrite an existing file unless --force is given; replacing the secret makes stored credentials unreadable and invalidates API keys.

Terminal window
simpledeploy init --config /etc/simpledeploy/config.yaml

Deploy apps from compose files.

Terminal window
# Single app
simpledeploy apply -f docker-compose.yml --name myapp
# All apps in directory
simpledeploy apply -d ./apps/

Copies the compose file to the server’s apps directory and triggers deployment.

Flag Short Required Description
--file -f with —name Compose file path
--dir -d alt to -f Directory of app subdirectories
--name with -f App name/slug

Remove a deployed app.

Terminal window
simpledeploy remove --name myapp

Stops containers, removes network, deletes from store and apps directory.

List deployed apps with status.

Terminal window
simpledeploy list

Output:

NAME STATUS DOMAIN
myapp running myapp.example.com
postgres running

Stream container logs.

Terminal window
simpledeploy logs myapp
simpledeploy logs myapp --follow=false --tail 50 --service db
Flag Short Default Description
--follow -f true Follow log output
--tail 100 Number of historical lines
--service web Compose service name

See Remote management for context, pull, diff, and sync usage.

Trigger an immediate backup.

Terminal window
simpledeploy backup run --app myapp

List backup runs for an app.

Terminal window
simpledeploy backup list --app myapp

Restore from a backup.

Terminal window
simpledeploy restore --app myapp --id 42

Manage users (requires direct database access).

Terminal window
# Create user
simpledeploy users create --username admin --password secret --role super_admin
# List users
simpledeploy users list
# Delete user
simpledeploy users delete --id 2

Roles: super_admin (full platform + all apps), manage (write access to granted apps only, no platform mgmt, cannot create or delete apps), viewer (read-only on granted apps).

Manage API keys.

Terminal window
# Create key (prints plaintext once)
simpledeploy apikey create --name "claude-code" --user-id 1
# List keys
simpledeploy apikey list --user-id 1
# Revoke key
simpledeploy apikey revoke --id 3

API keys authenticate CLI and API requests via Authorization: Bearer sd_... header.

Local (non-remote) users, apikey and registry commands write the change to the DB and then to <data_dir>/config.yml + secrets.yml, the source of truth on boot. If that write fails the command exits non-zero and the change will be reverted on the next server restart until you fix the cause and run simpledeploy config export. Key names must be unique per user. Run these commands as the same OS user as the server. See State on disk.

Manage private container registry credentials.

Terminal window
# Add a registry
simpledeploy registry add --name ghcr-org --url ghcr.io --username myuser --password mytoken
# List registries
simpledeploy registry list
# Remove a registry
simpledeploy registry remove ghcr-org
Subcommand Description
add Add registry credentials (encrypted with master_secret)
list List configured registries with decrypted usernames
remove Remove a registry by name
Flag Required Description
--name Yes Registry identifier (referenced in config/labels)
--url Yes Registry URL (e.g., ghcr.io, 123456.dkr.ecr.us-east-1.amazonaws.com)
--username Yes Registry username
--password Yes Registry password or token

Credentials are encrypted with AES-256-GCM using the master_secret from config.

Print version, commit hash, and build date.

Terminal window
simpledeploy version
# simpledeploy 1.2.0 (commit: abc1234, built: 2026-04-08T18:00:00Z)
Flag Default Description
--config /etc/simpledeploy/config.yaml Server config file path
--help Show help