Strait Docs
CLI

Code-first project flow for build, dev, and deployment lifecycle commands in the unified CLI.

The unified TypeScript CLI is code-first. Project state is sourced from strait.config.ts, compiled into a deterministic manifest, then promoted through deployment versions.

build

Compile local definitions into a deterministic manifest payload.

FlagTypeDefaultDescription
--configstringauto-discover strait.config.*Config path override
--outDirstringvalue from configManifest output directory override
--dryRunboolfalsePrint manifest payload without writing files
--jsonboolfalseEmit machine-readable JSON
strait build --dryRun --json

dev

Resolve config and render local project readiness summary. --watch runs a one-cycle rebuild probe for config changes.

FlagTypeDefaultDescription
--configstringauto-discover strait.config.*Config path override
--watchboolfalseWatch config for one rebuild cycle
--jsonboolfalseEmit machine-readable JSON
strait dev --watch --json

deploy

Create and finalize a deployment version from the compiled manifest.

FlagTypeDefaultDescription
--configstringauto-discover strait.config.*Config path override
--contextstringactive contextContext override
--serverstringresolved from context/envAPI server override
--envstringconfig deploy default or productionTarget environment
--artifactUristringfile URI for generated manifestArtifact URI override
--dryRunboolfalsePrint create/finalize payload plan only
--jsonboolfalseEmit machine-readable JSON
strait deploy --env staging --json

promote

Promote a finalized deployment version to active status for an environment.

FlagTypeDefaultDescription
--configstringauto-discover strait.config.*Config path override
--contextstringactive contextContext override
--serverstringresolved from context/envAPI server override
--envstringconfig deploy default or productionTarget environment
--jsonboolfalseEmit machine-readable JSON
strait promote dep_123 --env production --json

rollback

Rollback by promoting a previous deployment version ID.

FlagTypeDefaultDescription
--tostringrequiredDeployment version ID to roll back to
--configstringauto-discover strait.config.*Config path override
--contextstringactive contextContext override
--serverstringresolved from context/envAPI server override
--envstringconfig deploy default or productionTarget environment
--jsonboolfalseEmit machine-readable JSON
strait rollback --to dep_101 --env production --json

Removed declarative surfaces

validate, apply, and diff are removed from the unified CLI. YAML manifest orchestration is no longer a canonical path.

Was this page helpful?

On this page