CLI overview
The CloudGrid CLI ships as the npm package @cloudgrid-io/cli and installs a
single command: grid. It covers the full create-deploy-manage cycle.
npm install -g @cloudgrid-io/cligrid --versionRequires Node.js 18 or later. See Install for Homebrew.
Quick start
Section titled “Quick start”grid login # sign in via Google OAuthgrid new my-app # scaffold an appgrid plug # build, deploy, go liveCommand groups
Section titled “Command groups”| Group | Commands |
|---|---|
| Core lifecycle | new, plug, unplug, status, dev |
| Monitoring | follow, logs, open, info, versions, rollback, ssh |
| Collaboration | pickup, fork, remix, download, link, rename |
| Env and secrets | env, secrets |
| Visibility | visibility |
| Resource management | get, create, describe, delete |
| Wiring | wire |
| Scaffolding | scaffold, agent |
| Spaces | space |
| Admin and team | admin, admin brain, admin telemetry |
| Webhooks | hooks |
| Authentication | login, logout, whoami, use |
| Utilities | version, doctor, feedback, completion |
| Debug | debug call, debug ssh |
Global options
Section titled “Global options”These work on all commands:
| Option | Description |
|---|---|
-v, --verbose |
Show detailed output. |
-o, --output <format> |
Output format: json, yaml, table, csv. |
--json |
Alias for -o json (on commands that support it). |
--grid <slug> |
Override the active grid for this command. |
-V, --version |
Print the CLI version. |
-h, --help |
Show help for a command. |
Entity resolution
Section titled “Entity resolution”When a command targets an entity, the CLI resolves it in this order:
- No argument, inside a linked directory — reads
.cloudgrid/link.json(which holds the entity id). - A UUID — globally addressable and unambiguous.
org/slug— globally addressable.- A bare slug — searched across all your grid memberships. If the slug
matches entities in multiple grids the CLI errors; disambiguate with
org/slug.
The --grid <slug> flag scopes resolution to a specific grid.