Use the Cloud CLI (`cld`) to work with a user's Cloud content from a terminal. Use this skill whenever an agent needs to use installed Cloud app commands, sign in or select a Cloud profile, choose safe CLI input/output, inspect Cloud API documentation, or complete Assistant, Contacts, FAQ, Files, Grids, Mail, Notebooks, Pulse, Spaces, or Tools workflows for the user.
Resources
2Install
npx skillscat add k2b-dev/cloud/cloud-cli Install via the SkillsCat registry.
Cloud CLI
Cloud is a remote workspace platform, or Cloud OS, made of focused apps for work and daily operations. Each Cloud instance can publish a different set of apps to each user.
Use cld to work with the user's Cloud content from a terminal. It handles sign-in, the selected Cloud instance, command discovery, and structured output.
Start
- On a new machine, sign in with
cld login --server <Cloud URL>. On a machine without a browser, such as a server reached over SSH, usecld login --server <Cloud URL> --device. Inspect or switch profiles withcld profile listandcld profile use <name>. Read Sign-in and profiles for details. - Run
cld apps list --jsonbefore choosing an app command. It shows the live Cloud apps available to the current user; use--search <text>to narrow the list. - Run
cld helpto discover the installed CLI modules, thencld <app> referenceandcld <app> helporcld <app> <command> --helpfor an unfamiliar operation. Help never runs a command, socld logout --helporcld profile set --helpis safe too. Every app module, built-in or third-party, is acldplugin served by the Cloud;cld plugins listshows what the Cloud serves, what is installed, and what needs an update. A missing module saysrun cld plugins install <name>; do that when the task needs it. - Use the default profile unless the task names another instance; pass
--profile <name>only when needed.
How every cld module is organized
Modules share one command shape, so you can guess the basics before reading a reference; cld <app> help confirms it.
- Verbs:
lslists,showorstatshows metadata,catprints content,addorwritecreates,setoreditchanges,mvmoves or renames,cpcopies,rmdeletes. Secondary resources sit in a plural group withlist,add,update, anddelete, such ascomments list. - Addresses: a resource argument takes its ID,
<container>:<path>(container by ID or exact name), or, where the module keeps a local copy, a file path inside it. An ambiguous name fails with every candidate aspath (id); retry with one of the IDs. Nothing is guessed. - Flags:
--jsonon every command,--yesfor destructive or irreversible actions,--from <file|->for content,--out <path>for downloads. A command exits0only when it did everything; otherwise1.
Each module's reference (cld <app> reference) remains authoritative for its exact commands and JSON shapes.
Agent workflow
- Stay on the user's selected profile unless they name another Cloud instance.
- When you operate a headless box (SSH, container, CI runner) and
cldis not signed in, runcld login --server <Cloud URL> --deviceand relay the printed URL and code to the user; they approve it in their own browser. Never ask the user for a password or token instead. - When a profile was written by
cld admin agents create, you act as that agent account, not as the user:cld auth statusshowsclient-credentials. You see only what the agent was granted; ask the user to grant access instead of switching to their profile. - Read before changing content. Use IDs returned by list or get commands when a name is not unique.
- Use
--jsonwhenever the next action depends on one complete response. Use--jsonlfor supported list commands when processing items as a stream. Keep normal output for simple inspection. - Pass structured or multiline content through a command's file or stdin option instead of trying to escape it in a shell argument.
- Do not delete content, revoke access, or perform another destructive action without an explicit user request. Check command help for any required confirmation first.
- A plugin the user's Cloud serves may be installed with
cld plugins install <name>when the task needs it. Install or remove a package plugin (path,.tgz,npm:) only when the user asks for that exact package or path; it runs unsandboxed with the user's Cloud credentials, so confirm the package, version, and source shown bycld plugins installbefore you pass--yes.
References
Every module ships its own reference with the plugin. Run cld <module> reference for the module of the current task and read it before the first command; it links further files, which cld <module> reference <file> prints. Follow those links only when the operation needs the deeper API; do not preload every file.
- Read Sign-in and profiles to sign in with a browser or a device code, keep several Cloud instances in profiles or remove one, store refresh tokens in fd0, and run as an agent account whose profile holds OAuth client credentials.
- Read CLI plugins to list, install, update, or remove
cldplugins and to print their references. - Run
cld apps referenceandcld account referencefor the two modules every Cloud serves,cld capabilities referencefor generic typed Queries and Actions, andcld api-docs referencefor the live HTTP APIs. - Administrators run
cld admin reference,cld accounts reference,cld oauth reference, andcld ipa-hosts referencefor the matching task.
Installed modules
cld keeps this table current: every profile, the modules installed for it, their versions, and the folder with that version's references. Read the reference folder of the profile you operate; cld <module> reference [file] prints the same files.
No module is installed for any profile yet. cld plugins install --all installs the modules of the current profile's Cloud and fills this table.