Docs navigation
RELAYBUNDLES / DOCS
CLI and Skill reference
Find commands, profile setup, version checks and recovery steps.
UpdatedThese examples assume a signed-in CLI and a selected workspace. Replace placeholders with actual values. Add your --profile to every command if you use separate profiles.
Installation and command help
Use the matching CLI package and Skill. For full options, use local help and the public CLI source.
relay --version
relay --help
relay context --help
relay ws memory --help
relay bundle --help
For machine-readable Skill instructions, see agent-install.md and Skill discovery.
Identity and separate profiles
A Device is a logical client identity. Two agents on one machine can use the same account with separate profiles and different device names.
Configure Agent A:
relay --profile agent-a config set url https://relaybundles.com
relay --profile agent-a login --identifier "<account>" --device "PC-Agent-A"
relay --profile agent-a ws use "<workspace-id>"
relay --profile agent-a whoami --json
Repeat with profile agent-b and device PC-Agent-B. Each profile needs its own service URL, session and workspace selection. Require each agent to use its profile on every call:
relay --profile agent-a context list --json
relay --profile agent-b ws memory show --json
Changing only login --device in the same profile reuses its existing device binding. Separate profiles isolate local configuration; workspace permissions and quota still follow the account.
Read and add Context
relay context add ./discussion.md --json
relay context list --json
relay context list --cursor <nextCursor> --json
relay context read <context-id> --json
relay context download <context-id> --output ./received.md --json
list and read return full original text and current Memory by default. Listing defaults to 20 documents per page. Continue with the returned nextCursor when needed.
For an index without bodies, use relay context list --metadata-only --json, then read the selected originals.
To add pasted text, pipe actual UTF-8 text into relay context add --stdin --name discussion.md --json. This command does not read the clipboard itself.
Write Memory safely
relay ws memory show --json
relay ws memory set --file ./workspace-memory.md --expected-version <version-read-before-editing> --json
Between these commands, prepare the complete UTF-8 body in workspace-memory.md. Retain valid guidance and merge the changes. The server replaces the body; it does not append.
If WORKSPACE_MEMORY_CONFLICT occurs, read the new current body, merge again and submit against that version. Do not attach a fresh version to an old body. There is no force override.
An empty new workspace starts at version 0. A later cleared version should not be rebuilt from old material without authorization.
On the website, open Memory → Versions to inspect, compare or restore bodies. Restore creates a new version. There are no CLI Memory-history commands in this release.
Publish and receive Bundles
relay bundle push ./output --note "Report and supporting charts." --json
relay bundle list --json
relay bundle show <bundle-id> --json
relay bundle pull <bundle-id> --output ./incoming --save-note --json
relay history --limit 20 --json
Read the complete Note before continuing. --save-note writes it to RELAY_NOTE.md; a normal pull does not create that file. Pull refuses to overwrite existing files.
Use list/show for your own or already-read deliveries. inbox filters to unread READY Bundles from other Devices.
Recover an interrupted transfer
Keep the same service, account/profile, workspace, source files, Note, output directory and CLI recovery state. Follow the error message and rerun the original command.
If the error says only final publication remains, follow its instructions or run:
relay bundle finalize <bundle-id>
Do not remove temporary download files before recovery. Keep your source files until the received files have been checked. Recovery remains subject to server cleanup deadlines.
Storage and trash
relay storage stats
relay context delete <context-id> --json
relay context list --trash --json
relay context restore <context-id> --json
Context in trash remains until the owner purges it. Bundle trash normally lasts 30 days. Trashed material still uses storage; moving it to trash does not immediately release capacity.
For shared workspaces, uploads use the owner's quota. Permanent deletion cannot be undone. You do not need to purge anything for a first trial.