This is the complete reference for every ds command. Commands are organized by category, matching the interactive menu structure.
ds setupFull automated development environment setup. Creates a fixed local stage ({developer}-local) with its own Neon database branch and Pulumi stack. Runs 11 steps: pre-flight checks, AWS SSO auth, access verification, secrets fetch, Neon branch provisioning, dependency install, Pulumi stack init, CI deploy, migrations, user seeding, and state save.
ds setup [options]
| Flag | Description |
|---|---|
--stage <name> | Stage name (skip interactive prompt) |
--skip-deploy | Skip infrastructure deployment |
--skip-migrations | Skip database migrations |
ds setup secrets pullPull shared development secrets from AWS Secrets Manager to .env.
ds setup secrets pull [options]
| Flag | Description |
|---|---|
--neon | Also provision a Neon database branch |
ds setup secrets pushPush local .env values to AWS Secrets Manager for other developers.
ds setup secrets push
ds setup secrets auditInteractive secrets browser showing all required/optional secrets with status and guided fix prompts.
ds setup secrets audit [options]
| Flag | Description |
|---|---|
--ci | Non-interactive readiness check |
ds setup env backupCreate a timestamped backup of .env.
ds setup env backup
ds setup env restoreRestore .env from a previous backup. Shows available backups with age and key count.
ds setup env restore
ds doctorDiagnose development environment health. Checks tool presence, service access, and local configuration.
ds doctor
ds helpShow all CLI commands grouped by category.
ds help
ds menuOpen the interactive command menu. Same as running ds with no arguments.
ds menu
ds local runStart backend and frontend in a tmux session with side-by-side panes.
ds local run
ds local run backendStart the Hono API server on port 3001 with hot reload.
ds local run backend [options]
| Flag | Description |
|---|---|
--skip-preflight | Skip preflight checks and pnpm install |
ds local run frontendStart the Vite dev server on port 8080 with HMR.
ds local run frontend
ds local generate commandGenerate CQRS command boilerplate (command artifact, init, service handler, Lambda handler).
ds local generate command <CommandName> -m <module> [options]
| Flag | Description |
|---|---|
-m, --module <name> | Module name (required) |
-f, --force | Overwrite existing files |
ds local generate queryGenerate CQRS query boilerplate.
ds local generate query <QueryName> -m <module> [options]
| Flag | Description |
|---|---|
-m, --module <name> | Module name (required) |
-f, --force | Overwrite existing files |
ds db migrateRun pending Drizzle ORM SQL migrations.
ds db migrate [options]
| Flag | Description |
|---|---|
--target <stage> | Target stage (default: $DEVSTRIDE_STAGE) |
ds db resetReset your Neon branch to match main, then re-apply migrations. Uses Neon's copy-on-write restore — your connection string stays the same.
ds db reset [options]
| Flag | Description |
|---|---|
--target <stage> | Target stage |
dev, prod).ds db statusShow active Neon branch and connection details.
ds db status [options]
| Flag | Description |
|---|---|
--target <stage> | Target stage |
--json | Machine-readable output |
ds db auditInteractive Neon branch explorer. Cross-references branches with Pulumi stacks, flags marooned branches. Select a branch to view details or press d to delete.
ds db audit [options]
| Flag | Description |
|---|---|
--json | Machine-readable output |
ds db refresh-stagingCopy organization data from production to staging main Neon branch via GitHub Actions.
ds db refresh-staging [options]
| Flag | Description |
|---|---|
-o, --organization <id> | Organization ID (default: demo org) |
ds deploy upDeploy infrastructure via GitHub Actions. Creates a branch-specific cloud stage ({developer}-{branch}) with its own AWS resources and Neon database branch — fully isolated from your local stage.
ds deploy up [branch] [options]
| Flag | Description |
|---|---|
--stage <name> | Stage name |
--branch <name> | Branch name |
--route <label> | DNS label / final stage name |
--new-stack | Allow second stack for same branch |
ds deploy downTear down infrastructure and clean up all resources.
ds deploy down [stage] [options]
| Flag | Description |
|---|---|
--keep-stack | Keep Pulumi stack state |
--keep-neon | Keep Neon database branch |
--dry-run | Preview without executing |
ds deploy listList deployed Pulumi stages with resource details.
ds deploy list [options]
| Flag | Description |
|---|---|
--stage <name> | Show details for single stage |
--region <region> | Filter by region |
--json | Machine-readable output |
-w, --watch | Live-updating table (polls every 10s) |
ds api generate-api-clientGenerate typed TypeScript API client SDK from backend Hono routes.
ds api generate-api-client
Output: frontend/src/api/
ds api generate-api-docsGenerate OpenAPI spec with embedded documentation.
ds api generate-api-docs
Output: backend/src/modules/api/interface-adapters/lambda/http/openapi.json
ds integrations stripe sync-productsSync subscription tiers and pricing to Stripe.
ds integrations stripe sync-products
ds integrations stripe sync-customersCreate Stripe customers and free-tier subscriptions for organizations.
ds integrations stripe sync-customers [options]
| Flag | Description |
|---|---|
-o, --organization <id> | Target a single organization |
ds integrations stripe check-quantitiesAudit subscription seat counts and export CSV.
ds integrations stripe check-quantities [options]
| Flag | Description |
|---|---|
-o, --organization <id> | Audit a single organization |
Output: subscription_quantity.csv
ds integrations slack backfill-notificationsProvision Slack notification workflows for all users.
ds integrations slack backfill-notifications
ds utils maintenance-mode enableEnable maintenance mode on all Lambda functions.
ds utils maintenance-mode enable
ds utils maintenance-mode disableDisable maintenance mode.
ds utils maintenance-mode disable
ds utils repair item-aggregationsRecalculate item, board, and work type aggregations.
ds utils repair item-aggregations [options]
| Flag | Description |
|---|---|
--target <stage> | Target stage |
-o, --organization <id> | Organization ID |
ds utils repair item-hierarchyRebuild item hierarchy path metadata.
ds utils repair item-hierarchy [options]
| Flag | Description |
|---|---|
--target <stage> | Target stage |
-o, --organization <id> | Organization ID |
ds utils repair min-max-datesRecalculate rolled-up start/end dates on parent items.
ds utils repair min-max-dates [options]
| Flag | Description |
|---|---|
--target <stage> | Target stage |
ds utils query-active-emailsExport active user emails to CSV.
ds utils query-active-emails [options]
| Flag | Description |
|---|---|
--target <stage> | Target stage |
Output: emails.csv, emails.txt
ds utils delete-orphaned-itemsDelete orphaned items with cascading cleanup.
ds utils delete-orphaned-items [options]
| Flag | Description |
|---|---|
--target <stage> | Target stage |
--dry-run | Preview without deleting |
--dry-run first.ds utils check missing-initsAudit Command/Query handler registrations. Finds unregistered handlers.
ds utils check missing-inits
ds utils check missing-correlation-idsAudit correlation ID usage in handlers.
ds utils check missing-correlation-ids
ds utils check missing-event-handlersAudit event handler registrations (domain events, integration events, FIFO handlers, webhooks).
ds utils check missing-event-handlers
ds aws cleanupDiscover and destroy orphaned personal stages.
ds aws cleanup [options]
| Flag | Description |
|---|---|
--region <regions> | Comma-separated regions to scan |
--stale-days <n> | Days since last deploy to flag stale (default: 14) |
--dry-run | Preview without deleting |
--include-neon | Also delete Neon database branches |
--stages <list> | Target specific stages |
--force | Skip interactive confirmation |
ds aws auditInventory all deployed AWS resources by stage and service.
ds aws audit [options]
| Flag | Description |
|---|---|
--region <region> | Scan a specific region |
--json | Machine-readable output |
--verbose | List individual resource names |
These commands exist for backward compatibility with the SEED CI pipeline. They map directly to their modern equivalents.
| Legacy Command | Maps To |
|---|---|
ds migrations run-sql | ds db migrate |
ds migrations run | ds db migrate |
ds script generate-api-docs | ds api generate-api-docs |
ds script set-config | Internal set-config function |