cloudcannon/agent-skills

cloudcannon-cli

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 fla…

View source

How to use

  1. Copy the installation command and review the source package before installing it in your own agent environment.
  2. Check the source document for required tools, credentials and supported hosts.
  3. Describe your input and desired deliverable; review the output against the source material.
npx skills add https://github.com/cloudcannon/agent-skills --skill cloudcannon-cli

Before you start

  • Installation does not include a model subscription, API allowance or permission to access your files.
  • Repository stars and installation counts describe activity, not an independent quality or security test.
Original skill document

Rendered from the source repository. Headings, examples, code, tables, links, and referenced images are preserved.

The CloudCannon CLI

@cloudcannon/cli has two halves. The local half reads and writes files in the working directory and needs no account. The remote half talks to the CloudCannon API, needs credentials, and acts on live sites.

When to use

  • Finding out whether a command exists for a task, and what its flags are
  • Authenticating, or setting the CLI up in CI
  • Listing, inspecting, or creating sites and organisations
  • Reading or changing files on a hosted site, and committing those changes
  • Triggering a rebuild, or reading build and sync logs
  • Changing an existing site's build configuration
  • Listing form submissions

When not to use

  • Deciding what belongs in `cloudcannon.config.yml` — that is `cloudcannon-configuration`. This skill runs configure and validate; that skill owns what their output should say.
  • Running the site locally in CloudCannon — cloudcannon dev is covered end to end by `cloudcannon-dev-server`, including the rebuild loop and the /__api surface.
  • Calling the CloudCannon API from code — that is `cloudcannon-sdk`. It also owns the surface no command reaches: DAMs, backups, sync history and pulls, site scans, screenshots, provider connections, site.copy, site.delete.
  • Authoring editable regions or snippets — `cloudcannon-visual-editing` and `cloudcannon-snippets`.

The rule that costs the most

MUST confirm with the user before any command that writes to a hosted site.

Why: the remote half is not a sandbox. sites files commit pushes to the site's real git repository, sites rebuild starts a real build, and sites update-build-config changes how every future build runs. None of them prompt, and none are undone by re-running the command.

The read-only remote commands — every list, every get, every print-* — are safe to run unprompted.

Local and remote

HalfCommandsCredentialsActs on
Localconfigure detect-*, configure generate, validateNoneFiles in the working directory
LocaldevNoneA built output directory
Remoteorgs, sites, builds, inboxes, login/logoutRequiredLive sites over the API

MUST NOT assume a command is local because it reads rather than writes. sites files get reads, but reads it over the API from a hosted site.

Requirements

Node 24 or newer (the current LTS). Install globally with npm i -g @cloudcannon/cli, or invoke with npx @cloudcannon/cli <command>.

Quick start

sh
# 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

Contents

FileCovers
SKILL.md (this file)Routing, the local/remote split, the live-site rule
commands.mdThe full command surface, and querying documentation.json for exact flags
authentication.mdCredential methods, their precedence, where they are stored, CI setup
editing-sessions.mdsites files — the staged-changes model, committing, discarding
troubleshooting.mdSymptom → cause → fix

Common mistakes

ExcuseReality
"I'll write out the flags for this command from memory."Flags change between releases. Query documentation.json or run --help. See commands.md.
"Build settings can only be changed in the dashboard."sites update-build-config changes them for an existing site. See commands.md § Changing build configuration.
"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.
"--site needs the UUID."It accepts a name, ID, UUID, or domain.
from this repository

More skills

All skills
cloudcannon
Community

brainstorming

Structured design dialogue before CloudCannon work that has more than one sensible answer — a migration's editability tradeoffs, how to model a collection or page builder, restructuring content or config, or an ambiguous "make this work with CloudCannon". Explores intent and constraints, then presents a design for approval before implementation. Not for single well-defined tasks, clear bug fixes, or a detailed spec.

1h installs
7
GitHub stars
9
Updated
Oct 28
cloudcannon
Community

cloudcannon-bookshop

Use when a CloudCannon site uses Bookshop — .bookshop.yml files, @bookshop/ packages, bookshopname keys, bookshop:live, or partial "bookshop" calls or {% bookshop %} tags. Covers how Bookshop works, maintaining a site that stays on it, and migrating it to editable regions.

1h installs
7
GitHub stars
9
Updated
Oct 28
cloudcannon
Community

cloudcannon-configuration

Use when configuring a site for CloudCannon for any of the following. Download the JSON schemas before writing any configuration (see the top of SKILL.md). - Setting up cloudcannon.config.yml or .cloudcannon/initial-site-settings.json - Generating a baseline with the CloudCannon CLI - Adding or modifying Collections, Inputs, Structures, or Select Data - Setting up Structures for Array and Object Inputs - Configuring Collection URLs - Troubleshooting missing fields or Input types

1h installs
7
GitHub stars
9
Updated
Oct 28
cloudcannon
Community

cloudcannon-dev-server

Use when running a CloudCannon site locally with cloudcannon dev — starting the local editing loop so the user can edit in the CloudCannon editor and see the site rebuild, choosing the build command per SSG, and reading the /api surface the server exposes.

1h installs
7
GitHub stars
9
Updated
Oct 28