Symbol CLI
Read, search and write capsules from a terminal with the symbol command, on any Symbol server, with the same write rules as the Symbol MCP.
What It Is
The Symbol CLI is a command named symbol for working with your capsules from a terminal. It lists, reads and searches capsules, reads a Type's guidance, and creates and edits capsules and log entries. It works the same for a person typing commands and for an agent running them, and the server applies the same write rules to it as to the Symbol MCP: guidance first, valid field values, and only the scopes you approved.
It talks to whichever Symbol server you point it at, including a local development server, and it has no built-in server, so it never writes to production unless you choose it.
Getting the CLI
There are two ways to get the symbol command, and a third for people working on Symbol itself. Each one gives you the same commands.
With the Symbol desktop app
On macOS and Windows, the Symbol desktop app carries the CLI and the Node.js it runs on, so there is nothing else to install.
- In the app, open Settings, then Symbol CLI.
- Choose Add to terminal.
- Open a new terminal window and run
symbol --help.
The CLI signs in on its own with symbol login, so you do not need to be signed in to the app. It updates when the app does. Remove from terminal undoes exactly what Add to terminal changed.
Download
The download needs Node.js 20.6 or later and npm, which comes with Node.js. Get symbol-cli.tgz and its checksum file symbol-cli.tgz.sha256, check that they match, then install the file with npm.
The October 21, 2026 Node.js security release fixes vulnerabilities in Node.js 22, 24 and 26, patched in 22.23.4, 24.22.1 and 26.12.1. Node.js 20 gets no fix. Run the downloaded CLI on 22.23.4 or a later 22 release, 24.22.1 or a later 24 release, or 26.12.1 or a later 26 release. The CLI the desktop app carries runs on a patched release once you update the Symbol app, which installs the Node.js it runs on.
On macOS or Linux:
curl -fLO https://symbol.chat/download/symbol-cli.tgz
curl -fLO https://symbol.chat/download/symbol-cli.tgz.sha256
shasum -a 256 -c symbol-cli.tgz.sha256
npm install -g ./symbol-cli.tgzOn Windows, in PowerShell:
Invoke-WebRequest https://symbol.chat/download/symbol-cli.tgz -OutFile symbol-cli.tgz
Invoke-WebRequest https://symbol.chat/download/symbol-cli.tgz.sha256 -OutFile symbol-cli.tgz.sha256
$expected = (Get-Content symbol-cli.tgz.sha256).Split(" ")[0]
(Get-FileHash symbol-cli.tgz -Algorithm SHA256).Hash -eq $expected
npm install -g ./symbol-cli.tgzshasum prints symbol-cli.tgz: OK and the PowerShell check prints True when the file is the one Symbol published. If it does not, do not install it: download both files again.
To update, download and install again. To remove it, run npm uninstall -g @symbol/cli.
From a checkout, for developers
If you work on Symbol, you can run the CLI straight from a checkout of the repository. It has no third-party dependencies. From the repository root:
node packages/cli/bin/symbol.mjs --helpOr, after npm ci at the root, through the workspace bin:
npx symbol --helpThe rest of this page writes symbol for any of these.
Versions
symbol --version prints the version. A CLI from the desktop app or the download prints a version such as 0.2.0+3f9c1a0b7e2d: the part after + is a build id, taken from a fingerprint of the CLI file itself. Two copies with the same build id are the same program, byte for byte. A new build id under the same version means something inside the CLI changed, such as a library it carries, even though no command changed. A CLI run from a checkout prints the version alone, with no build id.
To see which copy ran, use symbol --version --json. Its channel is app, download or checkout, and its build is the build id, or null for a checkout.
Choosing a Server
Every command talks to one server, chosen in this order:
--server <name|url>on the command- the
SYMBOL_SERVERenvironment variable - the default saved by
symbol server use
With none of these, the command stops with exit code 2 and tells you how to pick one.
| Command | What it does |
|---|---|
symbol server add <name> <url> | Save a server under a short name, such as staging |
symbol server use <name|url> | Make a saved name or a URL the default |
symbol server list | List saved servers; the default is marked |
symbol server remove <name> | Forget a saved name |
A server URL must use https://. Plain http:// is accepted only for localhost, names ending in .localhost, 127.0.0.1 and [::1], because a token sent over plain http to another machine can be read on the way.
Signing In
Start the sign-in
symbol login --server https://symbol.chatThe CLI prints a web address and an eight-character code such as BCDF-GHJK, then waits. It never asks for your password.
Approve it in a browser
Open the address in any browser where you are signed in to Symbol, on this machine or another one (a phone works), and enter the code. Check that the code matches the one your terminal shows, choose the workspaces the CLI may use, and approve. Only approve a code you started yourself.
Check who you are
symbol whoamiThis prints the account, the server, the scopes you approved, and the entry this sign-in has in Connected Apps:
account: ana@example.com
server: https://symbol.chat
credential: oauth
scopes: read create update
connected app: Symbol CLI (on "ana-laptop")symbol login flags:
| Flag | Meaning |
|---|---|
--scopes <list> | Comma-separated scopes to request: read, create, update and, only when you ask for it, delete. The default is read,create,update. |
--device-name <name> | Name this sign-in in Connected Apps. The default is this machine's hostname. |
--open | Also open the approval page in a browser on this machine. |
--with-token | Store an API key instead of using a code (see below). |
The first successful sign-in also saves that server as your default.
A sign-in can delete only when you ask for it and approve it: symbol login --scopes read,create,update,delete. The approval page lists deletion among the permissions before you approve, and it lets you delete only what your own account may already delete. A sign-in made without it never gains it later, so sign in again to add it.
Each sign-in is its own entry under Settings → Connected Apps, named after the device, for example "Symbol CLI (on "ana-laptop")", with its own Last used date and request count. symbol login and symbol whoami print that entry name, so you can tell which entry belongs to which machine. Each sign-in keeps only the workspaces you approved for it, whatever you approve for another one.
The device name defaults to this machine's hostname. It is shown in your Connected Apps and to Symbol support. Pass --device-name to choose another.
Revoking an entry signs out that sign-in alone, and symbol logout removes its own entry. Signing in again in the same CLI home, for the same server, replaces the earlier sign-in, so one machine keeps one entry.
With an API key
For CI or an agent that already holds a key, pipe the key in on stdin. The CLI never takes a key as a command argument, where it would land in your shell history.
symbol login --with-token --server https://symbol.chat < key.txtYou can also set SYMBOL_TOKEN in the environment. It overrides the stored sign-in for that run and is never written to disk.
Prefer symbol login over an organization API key. A code sign-in acts as
you, limited to the scopes and workspaces you approved, and you can revoke it
in Connected Apps.
Signing out
symbol logoutsymbol logout revokes the stored tokens on the server and forgets them. If the server cannot be reached, the CLI still forgets them and exits 1, warning that the token may stay live until it expires. For a stored API key, logout only forgets it: the key stays valid until you revoke it in Settings.
The CLI keeps its files in ~/.symbol/cli (config.json, credentials.json and state.json). The credentials and state files are readable only by your user. Set SYMBOL_CLI_HOME to use a different directory.
Commands
Every command accepts these global flags:
| Flag | Meaning |
|---|---|
--server <name|url> | Server to talk to |
--workspace <name|id> | Workspace: personal, a workspace id, or an exact workspace name |
--json | Write one JSON document to stdout |
--help | Show help for the command |
--version | Print the CLI version |
symbol --help lists every command, and symbol <command> --help lists every flag of that command.
Workspaces
symbol workspace list--workspace takes personal, a workspace id, or the workspace's exact name (letter case does not matter). A partial name such as Acme for "Acme Research" is refused with exit 2 and the list of your real workspaces, so a write never lands in a workspace you did not mean.
Types
symbol type list
symbol type show notessymbol type list lists your Types. symbol type show <type> prints a Type's guidance and its fields, and remembers the guidance token that writes to that Type need (see Write Rules below). A Type can be named by its slug, its exact name, or its id.
Listing and reading capsules
symbol capsule list --type notes --limit 20
symbol capsule list --collection reading --cursor <cursor>
symbol capsule list --stale-reason dependency_changed
symbol capsule get @notes/3
symbol capsule get @notes/launch-plansymbol capsule list flags:
| Flag | Meaning |
|---|---|
--type <type> | Only capsules of this Type |
--collection <collection> | Only capsules in this collection (its alias, its id, or its name together with --type) |
--project <project> | Only capsules in this project (exact name, slug or id) |
--limit <n> | Page size, 1 to 100 |
--cursor <cursor> | Continue from the cursor the previous page printed |
--archived | List archived capsules instead of active ones |
--stale | Only capsules that are stale for any reason |
--stale-reason <age|dependency_changed> | Only capsules stale for this reason: age (not updated within their Type's time) or dependency_changed (a capsule they link to changed) |
The STALE column says why each capsule is stale: age, 2 changed (two capsules it links to changed), or both.
symbol capsule get takes @type/3, @type/<alias> or a capsule id, and prints the title, reference, Type, field values and body. A stale capsule also gets one stale: line per reason, and one that needs review prints the symbol capsule confirm command to run once you have checked it (see Reviewing a capsule below).
Searching
symbol search "launch plan"
symbol search budget --type notes --sort newestsymbol search returns the same capsules in the same order as the search page in the web app.
| Flag | Meaning |
|---|---|
--type <type> | Only capsules of this Type |
--limit <n> | How many capsules to return (default 20, as on the web) |
--offset <n> | Skip this many results, for the next page |
--sort <best|newest|oldest> | Result order (default best) |
Creating a capsule
symbol type show notes
symbol capsule create --type notes --title "Launch plan" \
--summary "What ships on Friday and who owns it." \
--content-file plan.md --field status=draft --tag launch| Flag | Meaning |
|---|---|
--type <type> | Type to create the capsule in (required) |
--title <title> | Capsule title (required) |
--summary <summary> | One or two sentences saying what the capsule is about (required) |
--content-file <path|-> | Read the body from a file, or from stdin with - |
--field <name=value> | Set a field value; repeat for more fields |
--fields-file <path|-> | Read field values from a JSON object |
--slug <alias> | A short alias, so the capsule is also @type/<alias> |
--tag <tag> | Add a tag; repeat for more |
--collection <collection> | Add the new capsule to a collection |
--project <project> | Attach the new capsule to a project |
--guidance-token <token> | Send this guidance token instead of the remembered one |
--field values are read by the Type's field schema: numbers and true or false become numbers and booleans, and a value that starts with [ or { is read as JSON, for lists. The server checks every value and refuses invalid ones with its own message.
Editing a capsule
symbol capsule edit @notes/3 --replace "Friday" --with "Monday" \
--summary "Launch moved to Monday."
symbol capsule edit @notes/3 --field status=final| Flag | Meaning |
|---|---|
--title <title> | New title |
--summary <summary> | New summary (the server asks for one when the body changes) |
--content-file <path|-> | Replace the whole body |
--field <name=value> | Change a field value; repeat for more |
--fields-file <path|-> | Read field values to change from a JSON object |
--replace <old> | Exact text to replace; it must appear exactly once across the body and the text fields |
--with <new> | The replacement for the --replace in the same position |
--guidance-token <token> | Send this guidance token instead of the remembered one |
symbol capsule edit reads the capsule fresh before writing, and the server refuses the write if someone else changed the capsule in between. If any --replace text is missing or appears more than once, nothing is written.
After an edit that changes what the capsule says, the CLI prints what changed and the capsules that link to it, which are now flagged for review.
Reviewing a capsule
When a capsule you link to changes, your capsule is flagged for review until you update it or confirm it is still valid. Dependency review explains how it works.
symbol capsule review @notes/3
symbol capsule get @notes/3
symbol capsule confirm @notes/3 --note "Checked the new price; the summary still holds." \
--receipt <receipt>
symbol settings dependency-review offsymbol capsule review lists the capsules this one links to that changed since it was last reviewed or updated, and how many more changed that you cannot read. --cursor <cursor> continues a long list.
symbol capsule confirm takes the capsule and two flags:
| Flag | Meaning |
|---|---|
--note <text> | What you checked, in a sentence (1 to 500 characters, required) |
--receipt <receipt> | The receipt symbol capsule get printed for this capsule (required) |
Read the capsule with symbol capsule get first: that read prints the receipt. A receipt works once, for 24 hours, for your account on this sign-in, and only while the capsule and the capsules it links to are unchanged. When the server refuses one, the CLI tells you to read the capsule again and confirm with the new receipt. Confirming needs edit access to the capsule.
symbol settings dependency-review shows whether dependency review is on for your account; on and off change it. It changes only your account: other people keep seeing their own reviews.
Seeing your read usage
symbol settings read-usage
symbol settings read-usage --window 7d --json
symbol settings read-usage --detail --window 7dsymbol settings read-usage shows how many reads your account made in the last 24 hours, or the last 7 days with --window 7d: the total, how many were answered from a local copy and how many by the server, and each client's share. Windows end with the current hour, which is still counting. --json adds the hour-by-hour rows.
A read is one successful request for a capsule, a list or a page of results, so a list that returns nothing counts as one read, and name lookups and background sync count as none. Server counts are responses Symbol produced, which is not proof they reached you. Local counts are reported by your computers when they next connect, so a computer that has been offline is behind. Hours before counting began show as unknown, not zero. To see another account's usage, sign in as that account.
--detail shows where those reads came from, hour by hour. Each row names the client, the source (local or server), the operation (such as capsule.get or search), the assistant app, the tool that started the read, and whether the read was requested by that tool or made automatically for it, such as each linked capsule fetched with a capsule. A server read from a Bridge also says why it did not come from the local copy: not_in_copy, stale_copy, server_first, cursor_requires_server, pinned_continuation, attachment_bytes or skill_bytes. A table of requested and automatic reads per tool shows how much one tool call turned into. --json writes the same breakdown as one document.
The output has three sections. Reads are the rows that add up to the totals above. Extra round trips are guidance checks and review receipts a Bridge made for a read; they are listed apart and never counted as reads. Unattributed is the part of each hour's total with no breakdown: hours from before the breakdown was recorded, and reads from an older Bridge or the Symbol app, which report totals only. For any hour, reads plus unattributed equal that hour's total.
App and tool names are what each program declared about itself. Symbol never verifies them and they grant nothing. A program that declares nothing shows as unknown. For a read made with an API key and no declaration, the row shows the kind of credential, the HTTP library it used and a slot number from 0 to 255. Under Credential slots each slot lists the keys of yours that match it now, with the time of that lookup. These are leads, not answers: a slot can be shared by several keys, and a deleted key's slot can be reused by a newer one, so a key listed there did not necessarily make the reads.
The breakdown is read as one fixed report across several pages, so reads counted while it is being fetched never shift it. If the report expires part way, the command starts it again once.
Appending to a log
symbol type show standup
symbol log append --type standup --field mood=good --field hours=6
symbol log append @projects/atlas --field note="Shipped the beta"symbol log append takes an owner capsule (a capsule whose Type keeps a log) or --type <log type> for a dated log. An entry is its field values: there is no body.
| Flag | Meaning |
|---|---|
--type <log type> | Append to this log Type instead of an owner capsule |
--field <name=value> | Set an entry field; repeat for more |
--fields-file <path|-> | Read entry fields from a JSON object |
--guidance-token <token> | Send this guidance token instead of the remembered one |
--guidance-check <check> | Offline only: a check from symbol offline check |
--guidance-quote <quote> | Offline only: the words that check asks for |
symbol log edit <owner-ref> <entry-number> replaces the values of one of your entries, with the same --field and --fields-file flags. symbol log delete <owner-ref> <entry-number> deletes one. The other entries keep their numbers.
Working without a connection
What works offline, and what happens to a queued change when Symbol is back, is in Working offline.
When Symbol cannot be reached, symbol capsule create, symbol capsule edit, symbol log append, symbol log edit and symbol log delete keep the change on this device instead of failing. Field values and exact-text edits are checked first with the server's own messages. The result says the change is queued and that Symbol has not checked it yet:
{ "status": "queued", "checked_by_server": false, "operation_id": "...", "local_handle": null, "local_ref": null, "message": "Queued on this device. Symbol has not checked this change yet." }The command exits 0 and its JSON is that object, so a script can tell a queued change from an applied one by checked_by_server. A change that needs a fresh read of its Type's guidance has status needs_guidance and is not sent until you answer it.
A command that reaches Symbol sends what is waiting, and a running Bridge sends it without any command. To see where things stand:
| Command | What it does |
|---|---|
symbol offline list [--status <status>] | List changes on this device and their state |
symbol offline status <operation-id> | Show one change, and why it was refused if it was |
symbol offline discard <operation-id> | Discard a change. One that may have reached Symbol is checked first, and an applied change cannot be discarded |
symbol offline sync | Send what is queued now |
symbol offline check <type> | Print a Type's cached guidance and one unused check |
symbol offline answer <operation-id> --guidance-check <check> --guidance-quote <quote> | Answer a change waiting on guidance |
A change Symbol refused stays on this device with its reason, and you can fix it and send it again. Nothing is sent until you ask, and the refused change and its receipt are kept:
| Command | What it does |
|---|---|
symbol offline recover <operation-id> | Reopen a refused, blocked or discarded change as a draft. A change Symbol already saved is never reopened, and one whose result is not known yet is checked with Symbol first |
symbol offline draft <draft-id> | Show the reopened draft. Fix it with --title, --summary, --content-file <path|->, --field <name=value>, --fields-file <path|-> and, for a new log entry, --entry-at <time> |
symbol offline resend <draft-id> | Send the fixed draft again as a new change linked to the one it replaces. A log entry deletion needs --confirm-delete. --capsule <ref>, --entry-operation <operation-id> and --entry <entry-id> point it at what replaced the capsule or entry it was for; --guidance-check and --guidance-quote answer its Type's guidance |
symbol offline drop-draft <draft-id> | Throw the draft away and keep the change it came from |
The new change is checked again against the Type, your access and its guidance, here and by Symbol when it arrives, and an edit is still compared with the version you first edited. Work that depended on the refused change is listed as needing repair too; it is never pointed at the new change unless you say so.
symbol type show <type> --offline-checks keeps checks on this device for guided writes you make later without a connection. Run symbol whoami once while connected so this device knows which account's queue to use.
Creating a capsule in an encrypted Type needs a key this CLI does not hold, so it is refused with nothing queued. Tags, collections and new API keys need a connection too.
Exporting a capsule into a file
symbol capsule export turns a capsule into one flat document, such as a CLAUDE.md or AGENTS.md for a coding assistant. A pointer reference (~@notes/3) becomes that capsule's summary followed by its reference in a code span, and an inline reference (@notes/3) becomes that capsule's body. What each reference exports as, and why some stay as they are, is on the Instruction files page.
symbol capsule export @notes/index # print the export with its refresh markers
symbol capsule export @notes/index --bare # print it without markers
symbol capsule export @notes/index CLAUDE.md # create CLAUDE.md, or refresh its section
symbol capsule export @notes/index CLAUDE.md --checksymbol capsule export takes @type/3, @type/<alias> or a capsule id, and an optional file. With no file it prints the export. Redirected into a file or a pipe, the printed export is exactly the bytes a file run writes. With a file, the export goes between two marker lines that carry the capsule's id:
<!-- symbol:export begin id=<capsule id> (generated from Symbol; edit the capsule, not this section) -->
...the export...
<!-- symbol:export end id=<capsule id> -->A later run replaces only the lines between the markers. Everything you add above or below them stays exactly as it is, byte for byte, and a file saved with Windows line endings keeps them. One file can hold sections from several capsules.
| Flag | Meaning |
|---|---|
--bare | Leave out the markers: for a new file, a whole-file --replace, or the printed export |
--replace | Overwrite the whole file with the export |
--append | Add a blank line and a marked section at the end of a file that has none, keeping every existing byte |
--check | Write nothing. Exit 0 when the file matches a fresh export, 3 when it is out of date |
--replace, --append and --check cannot be combined, each needs a file, and --bare cannot be combined with --append. What happens depends on the file:
| The file | No flag | --replace | --append | --check |
|---|---|---|---|---|
| does not exist | created | created | created | exit 3 |
| has a section for the capsule | the section is refreshed | whole file replaced | refused, exit 2 | exit 0 or 3 |
| has no section for the capsule | refused, exit 1 (unmarked_file) | whole file replaced | section added at the end | refused, exit 1 (with --bare: the whole file is compared, exit 0 or 3) |
| has conflicting markers | refused, exit 1 (marker_conflict) | whole file replaced | refused, exit 1 | refused, exit 1 |
A refused file is never changed. The refusal for a file with no section names --replace and --append, so you choose whether the file is yours or Symbol's. Markers conflict when a begin marker has no end, an end comes before its begin, or the same capsule has two sections. A run that would not change the file leaves it alone, and a write goes to a temporary file that replaces the original, keeping its permissions. A symbolic link is written through to the file it points to.
References that could not be expanded stay in the file as a code span, and the CLI lists them on stderr, for example 2 references were not expanded: `@notes/3` unavailable, `@notes/9` deleted. Warnings, such as an archived capsule or one with no summary, are listed the same way. Neither changes the exit code. With --json, a file run prints { "file", "action", "report" }, where action is created, updated, unchanged, replaced, appended, up_to_date, out_of_date or missing, and a run with no file prints the server's whole answer. If the export holds text shaped like encrypted content (v1: followed by two encoded parts), --json with no file refuses with export_redacted rather than print it blanked. Run it without --json, or give a file.
--check tells "out of date" (exit 3) apart from "could not check" (exit 1, for example when the server cannot be reached), so a hook can act on each. A Git pre-commit hook that stops a commit while CLAUDE.md is behind its capsule:
#!/bin/sh
symbol capsule export @notes/index CLAUDE.md --check
case $? in
0) exit 0 ;;
3) echo 'CLAUDE.md is out of date: run "symbol capsule export @notes/index CLAUDE.md"'; exit 1 ;;
*) echo 'Could not check CLAUDE.md against Symbol; committing anyway.'; exit 0 ;;
esacAn encrypted capsule cannot be exported: the command stops with exit 1 and the encrypted message below. A pointer to an encrypted capsule still exports its summary, because summaries are not encrypted. An inline reference to one stays as a reference and is listed as encrypted.
API Keys
You can create, list and revoke your personal API keys from the terminal, for example to give a CI job or an agent its own narrower key.
symbol key create --name ci --scopes read --expires 30d --save ./ci-key
symbol key list
symbol key revoke <id>When the CLI asks for approval in your browser
A code sign-in (symbol login) is a connected app. Symbol never lets a connected app create a key, because a key it created could outlive the sign-in. Revoking a key needs the delete scope, which the CLI's sign-in can never hold. So with a code sign-in, symbol key create and symbol key revoke both first say why, then ask you to approve the change in a browser:
Your CLI sign-in is a connected app, and Symbol does not let a connected app create or revoke keys. Approve this in your browser instead.
To approve this, open https://symbol.chat/approve-key in a browser where you are signed in to Symbol,
and check that it shows the code BCDF-GHJKOpen the address in a browser where you are signed in to the same account, check that the code matches, read what is being asked (the key's name, scopes, workspaces and expiry, and which app and device asked), and choose Approve or Deny. Only approve a request you started yourself. A request lasts 10 minutes, and only the account that made it can approve it.
The new key goes only to the terminal that asked: the server seals its secret to a key that exists only in that terminal's memory, and the browser never sees it. A key whose terminal never collected it cannot be used and does not appear in your key list.
With an API key sign-in (symbol login --with-token, or SYMBOL_TOKEN), symbol key create also asks for approval in your browser. Symbol creates API keys only in a signed-in browser where you have confirmed it's you, so the server refuses a key that asks for another key directly, even a weaker one, and the CLI prints that refusal and then asks for browser approval as above. Revoking with a key that has the delete scope still happens directly, with no browser.
When the server refuses a revoke only because your key lacks delete, or a create because your key lacks the create scope itself, the CLI also prints the refusal and asks for browser approval. Any other refusal, such as an expiry more than a year away, an unknown workspace or an unknown key id, is printed and the command exits 1 with no approval request, because approving would not change the answer. A name that is already taken is refused when you approve.
Confirming it's you
Approving a key request asks you to confirm it's you, the same way creating a key in Settings does: with your authenticator app or a backup code if you use two-step sign-in, otherwise with your password, or with a code emailed to you if you sign in only with Google. After you confirm, Symbol does not ask again on that browser for 10 minutes. If you cancel, nothing is approved and the request keeps waiting, so you can approve it again before it expires. Denying a request never asks.
For an agent that must never wait on a browser, pass --no-approval: the CLI prints the refusal (or the connected app line above) and exits 1 instead of asking.
A key name stays taken after the key is revoked. If a create says the name is in use and symbol key list does not show it, the name belongs to a revoked key or to one that was approved but never collected: choose another name.
Keeping the secret
The secret is shown once and cannot be shown again.
--save <path>writes it to a new file that only your user can read (mode 0600), and prints only the key's id, name, preview and expiry. It never overwrites a file: if the path exists, the command stops before anything is created.- Without
--save, when stdout is a pipe or a file, the secret alone is written to stdout, sosymbol key create ... > ci-keyholds just the key. - In a terminal, the secret is printed once, with a line on stderr saying it is shown once.
- With
--json, the secret is thekeyfield of the JSON document (and is left out when you also pass--save).
The secret is never written to stderr, so a log that captures stderr never holds it.
symbol key create
| Flag | Meaning |
|---|---|
--name <name> | Name of the key, shown in Settings and in symbol key list (required) |
--scopes <list> | Comma-separated scopes for the key: read, create, update, delete, share (required) |
--expires <30d|date> | When the key expires: a number of days such as 30d, or a date such as 2027-01-31 (midnight UTC at the start of that day), at most a year away (required) |
--workspace <ws> | Limit the key to a workspace: personal, a workspace id, or its exact name. Repeat for more. Without it, the key reaches every workspace; the approval page shows which |
--save <path> | Write the secret to this new file instead of printing it |
--open | If approval is needed, also open the approval page in a browser on this machine |
--no-approval | Never ask for browser approval: print the refusal and exit 1 |
symbol key list
Lists your keys with their id, name, preview, scopes, expiry and last use. It never shows a secret. It needs only the read scope, so it works with a code sign-in and with any personal API key.
symbol key revoke
symbol key revoke <id> revokes the key with that id (from symbol key list). A revoked key is refused from then on. It takes --open and --no-approval, with the same meaning as for symbol key create.
Two Copies on One Machine
You can have more than one copy of the CLI: one that comes with the Symbol desktop app, one you downloaded, and one in a checkout. The one your shell runs is the first symbol on your PATH. The desktop app adds its copy to the end of PATH, so a copy you installed yourself, for example with npm, runs first. symbol --version --json shows which copy answered in its channel field: app, download or checkout.
All copies share ~/.symbol/cli, so a sign-in made with one works in the others. config.json and credentials.json record the version of their format. When an older copy finds a file written by a newer copy, it still reads what it understands, but it never writes that file, so it cannot drop the newer copy's settings. A command that would write it (signing in or out, renewing a sign-in, saving a server) stops with exit code 1 and this message:
This sign-in was saved by a newer Symbol CLI. Update this copy, or set SYMBOL_CLI_HOME to keep them apart.Update the older copy, or give each copy its own directory with SYMBOL_CLI_HOME. When a copy writes these files, it keeps any settings it does not recognise.
Write Rules
The CLI declares itself to the server as an assistant client, so the server applies the same rules as for the Symbol MCP, for people and agents alike:
- Read the Type first. Run
symbol type show <type>before writing to a Type that has guidance. The CLI remembers the guidance token it returns and sends it withcapsule create,capsule editandlog append. Without it, the server refuses the write and the CLI adds a line telling you which command to run. - Field values are checked against the Type's fields.
- Scopes apply. A sign-in approved for
readonly cannot write. - A summary is expected when a body changes.
The CLI never decides these on its own: it relays the server's answer, with the same reason the MCP gets.
Encrypted Capsules
The CLI cannot decrypt end-to-end encrypted capsules. symbol capsule get on one stops with exit code 1 and the message "This capsule is end-to-end encrypted. The CLI cannot decrypt it. Open it in the web app or in Symbol Bridge." In lists and search results, an encrypted capsule appears with its title and "encrypted": true, never with its encrypted body.
To read encrypted capsules from an assistant, use Symbol Bridge.
JSON Output
A write queued without a connection prints its queued receipt instead and exits 0: see Working without a connection.
With --json, a command writes exactly one JSON document to stdout: the server's response for data commands, or a small object for local commands such as symbol server list. Errors go to stderr as one JSON object:
{"error":{"code":"guidance_token_required","message":"...","status":422}}Without --json, errors read error: <reason> (<code>, HTTP <status>). Either way, a failed command writes nothing to stdout, so a pipe never receives half a result. An out-of-date --check (exit 3) is a result, not a failure, so it prints its answer to stdout.
Exit Codes
| Code | Meaning |
|---|---|
0 | Success |
1 | The server refused the request, or it failed |
2 | Usage error: a wrong flag, a missing argument, an unknown or partial name, or no server chosen |
3 | Out of date: symbol capsule export --check found the file differs from a fresh export |
4 | Not signed in, or the server refused the token. Run symbol login. |
When a sign-in expires, the CLI renews it once on its own. If the server refuses the renewal (for example because you revoked the grant in Connected Apps), the CLI forgets the sign-in and exits 4 with Signed out: run "symbol login".
If the server warns that this version of the API is being retired, the CLI prints one warning naming the date. If the server no longer serves it, commands exit 1 asking you to update the CLI.