SST CLI
$ sst Official High RiskSST CLI (sst) deploys full-stack applications across AWS, Cloudflare, and other providers using TypeScript sst.config.ts definitions backed by Pulumi/Terraform providers, featuring sst diff, --stage environment isolation, and sst state export.
brew install anomalyco/tap/sst sst evaluates local sst.config.ts files and bundles app code on the host, requiring local CLI execution.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Supports sst diff, --yes, and JSON sst state export, though diff/deploy stream formatted terminal logs rather than JSON.
sst diffdry-run and JSONsst state export; TUI-heavysst dev
sst diff previews changes before apply and --stage isolates personal/dev/prod stacks cleanly.
- Mandatory
--stagenamespaces andsst diffpreview
Fast Go-backed CLI installable via npm, npx, Homebrew tap, or sst.dev/install.
- Available via npm,
npx sst, and Homebrew
Unifies frontend builds, serverless functions, and multi-cloud IaC in TypeScript.
- Single
sst.config.tsorchestrates full-stack resources
Official sst/sst repository actively maintained under MIT.
- Official
sst/sstrepository
Clean sst.dev/docs/reference/cli/ documentation and TypeScript type definitions.
- Official SST v3 CLI docs
Security, Auth & Guardrails
Inherits provider credentials from ~/.aws/credentials, AWS_PROFILE, CLOUDFLARE_API_TOKEN, and encrypted state in cloud object storage.
CLI is free (MIT); deployed AWS/Cloudflare resources incur provider billing.
# SST CLI Agent Rules - ALWAYS pass `--stage <name>` explicitly and run `sst diff --stage <name>` before `sst deploy`. - Never run `sst deploy --stage production` or `sst remove` without explicit human approval. - Avoid `sst dev` (interactive multiplex TUI) in headless agent shells.
Agent-Ready Command Recipes
Safe Read-Only Queries
sst diff sst diff --stage dev
Computes planned infrastructure creates, updates, and deletes for the dev stage without applying.
sst state export --stage dev
Dumps the remote deployment state JSON for offline inspection.
Controlled Writes & Previews
--stage sst deploy --stage dev --yes
Deploys only to the named dev stage with non-interactive confirmation.
Strengths for Agents
- +
sst diffgives a reliable infrastructure preview prior tosst deploy. - +
--stageprevents dev experiments from colliding with production. - +
sst state exportdumps full deployment state as inspectable JSON.
Caveats & Pitfalls
- !
sst devlaunches an interactive multiplexer unsuitable for headless shells. - !
sst diffandsst deploylack a--jsonstructured output option.