cratestack-cli-0.3.1 is not a library.
cratestack-cli
Command-line tool for .cstack schema validation and client/Studio code generation.
Installation
Or from the workspace:
Commands
check — validate a schema
Flags:
--schema <PATH>— path to the.cstackfile (required)--format <human|json>— output format (defaulthuman)
On success the human formatter writes schema OK: <path>; the JSON formatter prints a { ok: true, ... } document. On error the human formatter renders a diagnostic and exits non-zero; the JSON formatter prints { ok: false, diagnostics: [...] } and exits 1.
generate-dart — Dart package
Flags:
--schema <PATH>(required)--out <PATH>(required)--library-name <NAME>(defaultcratestack_client)--base-path <PATH>(default/api)--template-dir <PATH>(optional)
generate-typescript (alias generate-ts)
Flags:
--schema <PATH>(required)--out <PATH>(required)--package-name <NAME>(defaultcratestack-client)--base-path <PATH>(default/api)--template-dir <PATH>(optional)
generate-studio — Studio scaffold
--schema and --service-url are repeatable and zipped pairwise; pass one of each per service.
Flags:
--schema <PATH>— repeatable, at least one (required)--service-url <URL>— repeatable, at least one (required)--out <PATH>(required)--name <NAME>(required)--context <KEY=VALUE>— repeatable, propagated to the studio config--mount-path <PATH>(default/studio)--profile <dev|prod>(defaultdev)--template-dir <PATH>(optional)
print-ir — dump parsed schema IR
Build Integration
See Also
- Quickstart
cratestack-client-dart— Dart package structurecratestack-client-typescript— TypeScript package structurecratestack-studio-generator— Studio scaffold internals
License
MIT