CipherStashDocs
ReferenceCLI

stash db

Reference for the `stash db` commands.

Generated from stash v1.0.0 via npx [email protected] manifest --json. Run npx [email protected] --help to see the live command surface.

The stash db command group.

db validate

Validate encryption schema

npx stash db validate [flags]

Flags

FlagDescription
--supabaseUse Supabase-compatible mode.
--exclude-operator-familySkip operator family creation.
--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)

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]

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