@autonomy-cloud/create-cast-module
v1.23.0
Published
Command-line interface to scaffold apps for LATTICE — the governed organization where humans and agents collaborate.
Maintainers
Readme
The official scaffolding CLI for building apps on top of LATTICE — the governed organization where humans and agents collaborate. Sets up a ready-to-run project with @autonomy-cloud/cast-sdk.
Quick start
npx create-cast-module@latest my-lattice-module
cd my-lattice-module
yarn cast devThe scaffolder will:
- Create a new project with TypeScript, linting, tests, and a preconfigured
latticeCLI - Optionally start a local LATTICE server (Docker)
- Open the browser for OAuth authentication
Options
| Flag | Description |
| ------------------------------ | --------------------------------------- |
| --example <name> | Initialize from an example |
| --name <name> | Set the module name (skips the prompt) |
| --display-name <displayName> | Set the display name (skips the prompt) |
| --description <description> | Set the description (skips the prompt) |
| --skip-local-instance | Skip the local server setup prompt |
By default (no flags), a minimal module is generated with core files and an integration test. Use --example to start from a richer example:
npx create-cast-module@latest my-lattice-module --example hello-worldExamples are sourced from latticehq/lattice/packages/cast-modules/examples.
Documentation
Full documentation is available at docs.latticeruntime.com/developers/extend/modules:
- Getting Started — step-by-step setup, project structure, server management, CI
- Building Apps — entity definitions, API clients, testing
- Publishing — deploy, npm publish, marketplace
Troubleshooting
- Server not starting: check Docker is running (
docker info), then tryyarn cast server logs. - Auth not working: make sure you are logged in to LATTICE in the browser, then run
yarn cast remote add. - Types not generated: ensure
yarn cast devis running — it auto-generates the typed client.
