TypeScript backend scaffolding and lifecycle management. LaunchStack creates Fastify, Prisma and PostgreSQL projects, then helps teams manage generated files, capabilities, upgrades, local environments, typed clients and preview stages as the project changes.
Current release: v3.0.7 · npm package · release notes · Zivora Labs project page
LaunchStack CLI has evolved from deployment and configuration tooling (v1) into a backend API generator (v2), then a declarative lifecycle platform (v3). Version 3.0.7 was released on 18 November 2026. Browse the release history and changelog.
- Node.js 24.22.0 or later in the 24.x line, or Node.js 26.13.0 or later in the 26.x line. Node.js 20 and 22 are not supported.
- PostgreSQL or Docker for generated API and local orchestration workflows.
npm install --global launchstack-cli@3.0.7To build from the v3.0.7 release tag:
git clone https://github.com/wbizmo/launchstack-cli.git
cd launchstack-cli
git checkout v3.0.7
npm ci
npm run build
node bin/launchstack.cjs --versionlaunchstack create my-api
cd my-api
npm run db:up
npm run prisma:migrate -- --name init
launchstack devFresh v3 projects include launchstack.json for desired LaunchStack state and .launchstack/state.json for LaunchStack-owned hashes, installed capabilities and stage metadata. Business and domain code remains user-owned.
- Create and configure projects:
create,init,validate,env,provider,doctor. - Manage project state:
plan,apply,reconcile,diff,upgrade. - Add capabilities and plugins:
add,plugin list,plugin validate,plugin add,plugin upgrade,plugin remove. - Develop and generate code:
dev,client generate,generate module,generate resource. - Audit and manage preview stages:
audit,preview,stage status,destroy,status --stage,deploy --stage. - Deployment and configuration workflows:
deploy,status,history,rollback,secrets add,secrets list,secrets remove,docker init,github init. - CLI help:
help.
This reference includes every top-level command and nested subcommand. Use launchstack --help to list them, launchstack help <command> for command help, or launchstack <command> --help to see that command's options. Use launchstack --version to print the installed version.
Version 3.0.4 hardens the CLI, generated API and release tooling. It updates supported runtimes to Node.js 24 and 26, updates security-sensitive dependencies, keeps the generated API compatible with Prisma 6, and aligns Docker images and CI with the supported Node versions. Security improvements cover managed paths, secret files, transaction journals and locks, remote OpenAPI DNS validation, bounded audit inputs and generated SDK output. Lifecycle changes add durable mutation recovery, explicit project migrations, safer concurrent capability updates, improved capability assembly, isolated local orchestration and preview stages, bounded owner-scoped resource pagination, and streaming/hash and graph complexity checks. Release qualification adds Windows portability, CodeQL, SBOM validation, generated-project and Docker checks, and reproducible benchmark reports.
v3.0.5 adds portable mutation locking, v3 manifest validation, predictable project destination paths and optional creation progress. Lock initialization without verifiable owner metadata is not reclaimed by age alone; verify no mutation is running and remove .launchstack/mutation.lock if initialization was interrupted. The minimum supported patch versions are 24.22.0 and 26.13.0; CI continues to test current patched releases on both major lines. Prisma 7 migration is not included; generated projects remain on Prisma 6. Benchmark measurements and their limitations are summarized below and documented in full in docs/benchmarks.
v3.0.6 serializes concurrent capability installs and replans under the project lock, keeping independent updates in manifest, state and generated files together. It corrects production Compose auditing when settings are inherited from the base file and gives non-Git projects a specific audit finding. The CLI now explains and enforces its supported Node.js range for commands while leaving help and version output available. The Docker guide shows how to pass a custom CA to generated Compose builds as a BuildKit secret.
- v1.0.0: project configuration and validation, environment switching, deployment providers and workflows, deployment history and rollback lookup, local secrets, Git metadata, Docker scaffolding and GitHub Actions generation.
- v2.0.0–v2.0.2: generated Fastify/TypeScript APIs with Prisma and PostgreSQL, JWT authentication, validation, layered architecture, health/readiness endpoints, Docker and deployment presets,
doctor, then release and documentation consistency improvements. - v2.1.0: safer secret entry and storage, database-enforced refresh-token rotation, generated API security controls, artifact-level release checks, transactional project generation and hardened Docker output.
- v3.0.0: declarative project state, drift-aware reconciliation and upgrades, capabilities and plugins, local orchestration, typed OpenAPI clients, security audit, resource/module generators and isolated preview stages.
- v3.0.4: runtime/dependency modernization and the security, transaction, migration, capability, orchestration, generator, complexity and release-qualification improvements listed above.
- v3.0.5: directory-based project mutation locks for filesystems without hard-link support,
validatesupport for v3 manifests,create --directoryparent semantics, optional generation progress, and a slightly broader Node 24/26 patch range. - v3.0.6: serialized concurrent capability updates, accurate inherited Compose security checks, clearer non-Git audit output, explicit unsupported-runtime guidance, and custom CA BuildKit instructions.
launchstack add --list
launchstack add redis
launchstack add queue
launchstack add cron
launchstack add oauth google
launchstack add storage s3Redis, queue and cron include runnable local service or process wiring. OAuth, storage, observability, WebSocket, email and webhooks currently provide helper code, not complete provider integrations. launchstack add --list reports the coverage for each capability. Reapplying an installed version is a no-op; LaunchStack hashes managed files and reports drift rather than silently replacing user changes.
Capability dependency ordering, package and lockfile updates, Compose assembly and removal behavior are described in the capability guide.
launchstack create my-api --directory ./projects --verboseThis creates ./projects/my-api. Use --no-install to skip dependency installation or --force to replace a non-empty project directory after staging succeeds. --verbose reports generation stages.
launchstack diff
launchstack plan --json
launchstack apply
launchstack reconcile
launchstack upgrade --plan
launchstack upgrade
launchstack doctor --fixPlans are read-only. Mutations are staged, journaled and protected by a project lock to support crash recovery. The registered template migration is v2.0.0 to v3.0.0; the CLI package version does not change a project's template or state schema. See the upgrade guide.
launchstack dev
launchstack dev --plan --json
launchstack dev --jsonThe orchestrator orders services, waits for configured health checks, allocates loopback ports when defaults are busy, and probes the generated API's /ready endpoint. It runs migrations only against loopback, non-production-looking database URLs. On failure or SIGINT/SIGTERM, it stops its child process groups and tears down only its named Compose project. It preserves that project's database volume.
launchstack client generate --schema ./openapi.json --target react
launchstack client generate --target react-native
launchstack generate module billing
launchstack generate resource invoice --field total:number --field paid:booleanOpenAPI generation supports bounded OpenAPI 3.0/3.1 input, local references and TypeScript, React and React Native targets. Remote schemas require HTTPS, reject non-public DNS answers and pin connections to validated addresses. Input, depth, time and output are bounded; external references are rejected.
Generated resource reads, updates and deletes apply the owner predicate at the database boundary. Lists use indexed keyset pagination with a configurable limit from 1 to 100. Application-specific RBAC and domain rules remain the service layer's responsibility.
launchstack audit --production
launchstack audit --json
launchstack preview preview-demo
launchstack deploy --stage preview-demo
launchstack status --stage preview-demo --json
launchstack destroy --stage preview-demoAudit findings have stable rule IDs and severities. The optional --advisories mode queries the npm registry; if that evidence cannot be obtained, the audit reports it as incomplete. Secret-looking tracked paths are heuristic findings: LaunchStack checks filenames, not file contents. Git path enumeration is capped at 16 MiB and 10 seconds.
Docker Compose is the complete preview lifecycle adapter in v3. Other provider adapters report unsupported lifecycle operations explicitly. launchstack deploy without --stage prepares and validates artifacts. For generated production builds behind a TLS-inspecting proxy, see the Docker guide for the BuildKit CA secret setup.
Generated APIs include database-enforced single-use refresh-token rotation, duplicate-registration race handling, bounded authentication payloads, auth rate limiting, explicit production CORS, startup JWT validation, non-root Docker images and PostgreSQL-backed concurrency tests. The default rate-limit store is in-memory per process; multi-replica deployments need a shared Fastify rate-limit store.
The generated API exposes Swagger UI at /docs, health at /health and readiness at /ready.
Full results, methodology, reproduction commands and limitations are in the benchmark documentation. Measured v3.0.4 results include:
- Runtime: warm
--versionp50 was 5.7% slower than v3.0.0; warm--helpp50 was 1.4% faster. No consistent startup speedup was measured. - Security: scanning 100,000 tracked paths took 111.1 ms p50 / 141.7 ms p95. The bounded hostile-input corpus passed 1,290 cases.
- Transactions: applying 10,000 file changes took 6.27 s p50 vs. 1.98 s on v3.0.0. Tests with 8 and 32 concurrent writer processes lost no updates.
- Upgrades: planning a 10,000-file migration took 82.1 ms p50 vs. 46.9 ms on v3.0.0.
- Capabilities: a 10,000-node / 99,945-edge graph resolved in 9.19 ms p50. Ten BullMQ jobs completed at 2.00 ms p50 / 6.65 ms p95.
- Orchestration: two generated projects reached readiness in 19.96 s; two warm preview stages completed in 68.28 s.
- Generators: concurrent owned and cross-owner updates used two owner-scoped
UPDATEqueries with no pre-read; each keyset page used one boundedSELECT. - Complexity: service scheduling is O((V+E) log V), extension ordering O(V+E), and streaming hashing O(B) time with a bounded buffer.
- Release qualification: at 250,000 files, drift-scan p50 was 36.41 s vs. 2.53 s on v3.0.0 (14.41× slower on this host).
- Transactions (v3.0.5): 100, 1,000 and 10,000 file mutations measured 82.7 ms, 546.5 ms and 5.12 s p50; the 10,000-file p95 was 6.19 s. This separate Node 24.22.1 sample is not a direct comparison with the v3.0.4 host.
- Capability transactions (v3.0.6): one transaction installing 1, 10 and 100 synthetic file-only capabilities measured 20.5 ms, 20.9 ms and 96.6 ms p50.
- Transactions (v3.0.6): 100, 1,000 and 10,000 file mutations measured 110.2 ms, 727.2 ms and 6.06 s p50; the 10,000-file p95 was 6.28 s.
Version 3.0.7 adds an MIT license and third-party notices to generated APIs, deterministic dependency inventories, confidential vulnerability reporting, independent CLI/template dependency audits, pinned GitHub Actions, verified source archives, CycloneDX SBOMs and release artifact hashes. The CLI commands are unchanged; see the release notes.
Distribution: v3.0.7 is the current source release, with versioned package and integrity artifacts.
npm ci
npm run check
npm run release:check
npm run docker:template:smokerelease:check runs formatting, lint, strict typechecking, tests, bounded security fuzzing, reproducible distribution checks, package inspection, runtime dependency audit, SBOM validation, packed CLI smoke and a PostgreSQL-backed generated-project smoke. docker:template:smoke builds and checks the generated production container.
LaunchStack CLI is an open-source project built and maintained by Zivora Labs.
- Project page: Zivora Labs Open Source
- Lead maintainer: Williams Ashibuogwu
- License: MIT, maintained by Zivora Labs
To report vulnerabilities privately or ask license/compliance questions, contact williams@zivoralabs.xyz or use the security policy. See the contribution guide, governance, code of conduct and CLI interface reference.