Loading...
Loading...
Use when running the CloudCannon CLI — logging in, listing or creating sites, reading and writing files on a hosted site, triggering and inspecting builds, changing a site's build configuration, reading form submissions, or finding out which command and flags exist for a task.
npx skill4agent add cloudcannon/agent-skills cloudcannon-cli@cloudcannon/clicloudcannon.config.ymlcloudcannon-configurationconfigurevalidatecloudcannon devcloudcannon-dev-server/__apicloudcannon-sdksite.copysite.deletecloudcannon-visual-editingcloudcannon-snippetssites files commitsites rebuildsites update-build-configlistgetprint-*| Half | Commands | Credentials | Acts on |
|---|---|---|---|
| Local | | None | Files in the working directory |
| Local | | None | A built output directory |
| Remote | | Required | Live sites over the API |
sites files getnpm i -g @cloudcannon/clinpx @cloudcannon/cli <command># What commands exist, and what flags does one take
npx @cloudcannon/cli --help
npx @cloudcannon/cli sites files commit --help
# Local: generate and check a configuration
npx @cloudcannon/cli configure generate --auto --initial-site-settings
npx @cloudcannon/cli validate
# Remote: authenticate, then read
npx @cloudcannon/cli login
npx @cloudcannon/cli sites list| File | Covers |
|---|---|
| SKILL.md (this file) | Routing, the local/remote split, the live-site rule |
| commands.md | The full command surface, and querying |
| authentication.md | Credential methods, their precedence, where they are stored, CI setup |
| editing-sessions.md | |
| troubleshooting.md | Symptom → cause → fix |
| Excuse | Reality |
|---|---|
| "I'll write out the flags for this command from memory." | Flags change between releases. Query |
| "Build settings can only be changed in the dashboard." | |
| "I uploaded the file, so the site has it." | An upload lands in an editing session, not the repository. It is not live until committed. See editing-sessions.md. |
| "The command printed nothing, so it failed." | Read commands print JSON to stdout and nothing else. An empty result is an empty array, not an error — check the exit code. |
" | It accepts a name, ID, UUID, or domain. |