zenstack/packages/cli
github-actions[bot] df9b35ea64
[CI] Bump version 3.5.6 (#2560)
Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com>
2026-04-06 13:14:51 -07:00
..
bin fix: remove shebang from npm bin scripts for better compatibility (#75) 2025-07-04 21:09:24 +02:00
scripts chore: fix telemetry token (#236) 2025-09-03 23:56:51 -07:00
src update 2026-03-24 19:09:43 -07:00
test fix: a few small fixes (#2487) 2026-03-23 16:58:26 -07:00
eslint.config.js chore: upgrade eslint (#36) 2025-06-21 23:26:56 +08:00
package.json [CI] Bump version 3.5.6 (#2560) 2026-04-06 13:14:51 -07:00
README.md docs: add README.md to all public packages 2026-03-22 21:51:13 -07:00
tsconfig.json feat: cli plugin support (#181) 2025-08-17 16:35:07 +08:00
tsup.config.ts fix(studio): add option to skip validation for computed fields when start proxy (#2429) 2026-03-01 20:13:03 -08:00
vitest.config.ts chore: unify vitest config and minor fixes in CLI (#133) 2025-08-04 16:43:02 +08:00

@zenstackhq/cli

The command-line interface for ZenStack. Provides commands for initializing projects, generating TypeScript code from ZModel schemas, managing database migrations, and etc.

Key Commands

  • zenstack init — Initialize ZenStack in an existing project
  • zenstack generate — Compile ZModel schema to TypeScript
  • zenstack db push — Sync schema to the database
  • zenstack db pull — Pull database schema changes into ZModel
  • zenstack migrate dev — Create and apply database migrations
  • zenstack migrate deploy — Deploy migrations to production
  • zenstack format — Format ZModel schema files
  • zenstack proxy|studio — Start a database proxy server for using studio

Installation

npm install -D @zenstackhq/cli

Learn More