@anvilstack/cloud-cli
v0.1.1
Published
Command-line tools for Anvil Cloud Cells, local runtime, inspection, and preview deployment.
Readme
@anvilstack/cloud-cli
CLI package for Anvil Cloud.
The CLI binary is anvil-cloud.
This is the only public Anvil Cloud npm package during alpha. Runtime, client, builder, local, auth, control-plane, and AWS workspace packages are private implementation details until their external API contracts are deliberately stabilized.
Install
npm install --global @anvilstack/cli
npm install --global @anvilstack/cloud-cli
anvil cloud check --jsonThe umbrella anvil command is the intended user-facing entrypoint. It
dispatches to the installed Cloud product CLI.
Use the direct binary when testing this package itself or debugging wrapper dispatch:
anvil-cloud check --jsonWorkspace usage
From a checkout, build the workspace and run the CLI through the root script:
cd anvil-cloud
pnpm install --ignore-scripts
pnpm build
pnpm anvil-cloud --help
pnpm anvil-cloud new notesInside an example Cell, use the built entrypoint directly:
node ../../packages/cli/dist/index.js check --jsonInitial commands:
anvil-cloud new <name>anvil-cloud devanvil-cloud checkanvil-cloud buildanvil-cloud inspectanvil-cloud logsanvil-cloud db listanvil-cloud db dump <table>anvil-cloud deploy --preview
Every automation-oriented command must support --json.
See docs/specs/cli.md for the command contract.
