mirror of
https://github.com/zenstackhq/zenstack
synced 2026-05-24 10:08:55 +00:00
|
|
||
|---|---|---|
| .. | ||
| bin | ||
| scripts | ||
| src | ||
| test | ||
| eslint.config.js | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
@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 projectzenstack generate— Compile ZModel schema to TypeScriptzenstack db push— Sync schema to the databasezenstack db pull— Pull database schema changes into ZModelzenstack migrate dev— Create and apply database migrationszenstack migrate deploy— Deploy migrations to productionzenstack format— Format ZModel schema fileszenstack proxy|studio— Start a database proxy server for using studio
Installation
npm install -D @zenstackhq/cli