CipherStashDocs
ReferenceCLI

stash db

Reference for the `stash db` commands.

Last updated

Generated from stash v1.1.1, via that release's own manifest --json. Run npx [email protected] --help to see the live command surface.

The stash db command group.

db migrate

Run pending encrypt config migrations (not yet implemented)

npx stash db migrate

db test-connection

Test database connectivity

npx stash db test-connection [flags]

stash db test-connection flags

FlagDescription
--database-url <url>Database URL for this run only — never written to disk. Highest precedence in the resolution order: --database-url flag → DATABASE_URL env → supabase status → interactive prompt. A stash.config.ts is not a separate tier (its default databaseUrl re-runs this same chain); a hand-set literal databaseUrl in the config bypasses the resolver and wins over all of these. (env: DATABASE_URL)

On this page