Commands
The full dash CLI surface. Every command also answers --help.
Main commands#
| Command | What it does |
|---|---|
dash setup | Setup all accessories, push the env, and deploy app to servers |
dash deploy | Deploy app to servers |
dash redeploy | Deploy app without bootstrapping servers, starting the proxy, or pruning |
dash rollback [VERSION] | Rollback app to VERSION |
dash details | Show details about all containers |
dash audit | Show audit log from servers; --json parses each line |
dash config | Show combined config (including secrets!); --json adds the topology |
dash docs [SECTION] | Show dash configuration documentation |
dash doctor | Diagnose deploy readiness of servers, registry, proxy, ports, DNS, certificates, per-role readiness gates, and proxy drift; --json exits 1 on a failure |
dash mcp | Serve read-only diagnostics to an AI agent over stdio (Model Context Protocol) — see Debugging |
dash init | Create config stub in config/deploy.yml and secrets stub in .dash |
dash remove | Remove the proxy, app, accessories, and registry session from servers |
dash migrate | Move this project's .kamal directory to .dash |
dash upgrade | Upgrade from Kamal 1.x to 2.0 |
dash version | Show dash version |
setup for the first deploy, deploy for every one after, rollback when it goes wrong, doctor when you are not sure it will go right. dash docs prints the same configuration reference the Configuration pages here are generated from. migrate renames a kamal project's .kamal/ to .dash/ — see From kamal. The --json flags and dash mcp are covered in Debugging.
--rolling on upgrade, proxy reboot, and proxy upgrade walks the hosts one at a time instead of in parallel — see Rolling restarts.
dash app#
Manage application containers.
| Subcommand | What it does |
|---|---|
boot | Boot app on servers (or reboot app if already running) |
start / stop | Start or stop existing app containers on servers |
exec [CMD...] | Execute a custom command on servers within the app container |
logs | Show log lines from app on servers |
details | Show details about app containers |
containers / images | Show app containers / images on servers; containers --json for every slot as a document |
stale_containers | Detect app stale containers |
stats | Show CPU, memory, network and block I/O of the app containers; --json |
live / maintenance | Switch the app between live and maintenance mode |
rollout <deploy|set|stop> | Manage a canary rollout of a new version through the proxy — see Canary rollout |
remove | Remove app containers and images from servers |
version | Show app version currently running on servers |
dash proxy#
Manage the proxy and its dash-only features.
| Subcommand | What it does |
|---|---|
boot | Boot proxy on servers |
boot_config <set|get|reset> | Manage proxy boot configuration |
reboot | Reboot proxy on servers (stop, remove, start new container) |
start / stop / restart | Manage the existing proxy container on servers |
details | Show details about proxy container from servers |
services | Show what dash-proxy routes for this deploy per proxy host and on the load balancer; --json |
drift | Compare the running containers with the proxy and load balancer targets; --json |
logs | Show log lines from proxy on servers |
loadbalancer <info|start|stop|logs|deploy> | Manage the load balancer |
cache <stats|purge> | Manage the response cache |
domains <refresh|list|stats> | Manage dynamic TLS domains |
export_certs LOCAL_PATH | Export the TLS certificate store to a local archive (contains private keys) |
import_certs | Import certificates from a Traefik acme.json or an exported archive |
remove | Remove proxy container and image from servers |
The loadbalancer, cache, domains, and export_certs/import_certs commands are dash-only — see Load balancing, Response caching, and SAN batching & wildcards.
dash accessory#
Manage accessories (db/redis/search).
| Subcommand | What it does |
|---|---|
boot [NAME] | Boot new accessory service on host (NAME=all boots all) |
reboot [NAME] | Reboot existing accessory on host |
start / stop / restart [NAME] | Manage the existing accessory container |
details [NAME] | Show details about accessory on host |
exec [NAME] [CMD...] | Execute a custom command within the accessory container |
logs [NAME] | Show log lines from accessory on host |
stats [NAME] | Show CPU, memory, network and block I/O of an accessory (NAME=all for every one); --json |
remove [NAME] | Remove accessory container, image and data directory from host |
upgrade | Upgrade accessories from Kamal 1.x to 2.0 |
dash build#
Build the application image.
| Subcommand | What it does |
|---|---|
deliver | Build app and push app image to registry then pull image on servers |
push / pull | Build and push the image to the registry / pull it onto servers |
create / remove / details | Manage the buildx build setup |
dev | Build the working directory, tag it as dirty, push to the local image store |
dash scale#
Change how many containers of a role run, without a deploy.
| Subcommand | What it does |
|---|---|
set ROLE COUNT | Run COUNT containers of ROLE across its hosts, within its replicas bounds |
status [ROLE] | Show the containers of each role per host; --json for a document |
The count is in containers across the role's hosts, spread evenly within each host's replicas bounds, at the version already running. It takes the deploy lock, and the next deploy keeps it. dash-only — see Replicas.
dash autoscale#
Hold each scheduled or signalled role at its target, and read what the controller decided.
| Subcommand | What it does |
|---|---|
run | Run the controller: every interval, scale each role with a scale/schedule or scale/signal toward its target; --once, --dry-run, --metrics-port, --record, --takeover |
explain ROLE | Evaluate ROLE as the next tick would, with every input, without acting; --json |
signal ROLE | Read one live sample of ROLE's signal and each guard, with latencies, from this machine; --json |
simulate --samples FILE | Replay a --record file with deploy.yml's thresholds now: every simulated action, a summary per role; --roles, --json |
history [ROLE] | Show the controller's last decisions; --lines, --json |
status | Show which controller runs, when it last ticked, and the paused roles; --json |
pause ROLE | Keep the controller off ROLE, for good or --for a while (30m, 2h, 1d) |
resume ROLE | Let the controller scale ROLE again |
The controller scales through dash scale set, under the deploy lock, and keeps its heartbeat, decision log and pauses on one host (autoscale.controller, or the primary host without it), so every operator's checkout reads the same state. How to run it, and the keys it reads, are in Autoscale and under scale in Roles. dash-only.
server, registry, lock, prune, secrets, report#
| Command | What it does |
|---|---|
dash server bootstrap | Set up Docker to run dash apps |
dash server exec | Run a custom command on the server |
dash server stats | Show load, memory, swap, disk and uptime of the servers; --json |
dash registry <setup|remove|login|logout> | Manage the local registry or remote registry sessions |
dash lock <status|acquire|release> | Manage the deploy lock; --server targets the shared server lock instead; status --json |
dash prune <all|images|containers> | Prune old application images and stopped containers |
dash secrets <fetch|extract|print> | Helpers for extracting secrets from a vault |
dash report [--last N] [--json] | Print the last saved deploy report, or a trend over the last N; --json for the reports themselves |
dash report path | Print the directory saved reports are written to |