This is the index. It shows the whole leed command tree, the options that apply everywhere, and where each command’s own flags are written up. Every command in the tree accepts --help, at any depth — leed site commit --help prints that command’s synopsis and options — so this page exists to answer the other question: which command, and where is it documented.
The command tree
Every group and leaf that ships. * marks the ones hidden from --help. For the live list, with every option, run leed schema --json; to find a command by what you want to do, run leed cli search "what you want to do".
leed
├── auth
│ ├── login
│ ├── logout
│ ├── status
│ ├── rotate
│ └── reset
├── login alias of `leed auth login`
├── setup
├── site
│ ├── init
│ ├── build
│ ├── validate
│ ├── commit
│ ├── push
│ ├── list
│ ├── eject
│ ├── vscode
│ ├── upload *
│ └── notify-cms *
├── import
│ ├── openapi
│ ├── markdown
│ ├── html
│ ├── status
│ ├── apply
│ └── clean
├── page
│ ├── sync-state
│ ├── review
│ ├── search
│ ├── get
│ ├── create
│ ├── update
│ ├── publish
│ ├── schedule
│ ├── stamp
│ ├── lock
│ ├── frontmatter get | set
│ └── meta get | set
├── asset
│ ├── list | get | set
│ ├── export
│ └── upload
├── persona list | get | create | set
├── journey list | create | set | delete | reorder
├── campaign
│ ├── list | get | create | set
│ ├── audience get | set
│ ├── brief get | set
│ ├── deliverable list | create | set | approve | reject | reschedule | done | accept-review | reorder
│ └── run start | status | answer | approve | cancel
├── plan
│ └── calendar
├── settings
│ ├── pagetype list | get | create | set
│ ├── label list | get | create | set
│ ├── autolink list | get | create | set | delete | reorder
│ ├── searchindex list | get | create | set
│ ├── company get | set
│ ├── form list | get | create | set | publish | delete
│ ├── shortcode list | get | create | set
│ ├── user list | get | set
│ ├── oidctrust list | create | delete
│ ├── path list | resolve | create | delete
│ ├── menu list | get | create | set | add | remove | move | delete | reorder | set-menu
│ ├── brokenlinks list
│ ├── pending
│ └── publish
├── deployments
│ ├── status
│ ├── promote
│ └── retry
├── contacts
│ ├── export
│ └── import
├── know
│ ├── views
│ ├── show
│ ├── run
│ └── gap show | link | dismiss | reopen
├── feedback
│ └── blocked
├── mcp
│ ├── add
│ └── docs
├── schema
├── cli
│ └── search
├── self-update
├── completion *
│ ├── install *
│ └── uninstall *
├── completion-server *
└── __credential * git’s credential helper for the content repositoryGlobal options
These are declared on the root program, so every command accepts them however deeply nested it is.
| Flag | Type | Default | What it does |
|---|---|---|---|
-v, --version | boolean | — | Print the CLI version and exit. The old -V is gone |
--verbose | boolean | false | Exactly the same as -n leed:*. Long form only |
-n, --noise <string> | string | *:error | Which logger channels print, as a debug-style filter |
--json | boolean | false | Emit one machine-readable JSON document on stdout instead of formatted text |
-h, --help | boolean | — | Print help for the command it follows |
Every command that changes something also takes --dry-run, which reports what it would do and changes nothing — leed site commit, push and validate --reset, the settings, asset, page, persona, journey, campaign, contacts and import verbs, and leed mcp add among them. leed schema --json says, per command, whether it has one.
--json has its own page: the envelope, the seventeen error codes, the exit classes and the rules for consuming them are on machine-readable output.
Reading the logger filter
Channels are named leed:<area>:<level> — leed:app:error, leed:site:build:info, leed:auth:debug — and -n takes the same wildcard patterns the debug package uses. The default, *:error, matches every :error channel from every library that uses debug, which is why a quiet run still tells you when something breaks. --verbose is a shorthand and nothing more: it is precisely -n leed:*, every level of every Leed channel. Pass both and they combine, as leed:*,<your filter>.
Every leed:* channel writes to stderr, in both human and JSON mode. They are diagnostics, not a command’s answer, so leed site list > sites.txt captures the table and none of the logging.
Eleventy’s internals are a separate matter, because Eleventy loads its own copy of debug and reads the raw DEBUG variable:
DEBUG=Eleventy* leed site buildAn inherited DEBUG is merged into the CLI’s own filter rather than replacing it. And once the namespaces are registered, the CLI deletes DEBUG from the environment whenever no Eleventy channel ended up enabled — a deliberate performance workaround, because Eleventy checks that variable to decide whether to run character-set detection on every template it reads. The practical consequence is that DEBUG=* does not behave the way you would expect from other tools. Use -n for Leed channels and DEBUG=Eleventy* for Eleventy’s.
leed auth
Five subcommands managing the sessions the CLI holds — one per environment and company — plus the GitLab token your site checkout depends on. None of them needs a site checkout except rotate and reset, which are scoped to one site. Outside a checkout, login and logout need -e (or a --company logged in to exactly one environment); there is no default company or environment.
| Command | Purpose | Needs a site checkout? | Detail |
|---|---|---|---|
leed auth login | Sign in via the browser device flow, or send a magic link | No | leed auth |
leed auth logout | Sign out of one company’s session, or all of an environment’s with --all-companies | No | leed auth |
leed auth status | Report every stored session, and the site’s GitLab token | No, but reports more inside one | leed auth |
leed auth rotate | Reissue this site’s GitLab token, keeping your CMS session | Yes | leed auth |
leed auth reset | Reissue the token and revoke your CMS session | Yes | leed auth |
What the session actually is, where it lives and how it stays alive is the subject of CLI authentication.
leed login
leed loginA top-level alias for leed auth login, with identical flags and identical behavior. It reports its own name — login, not auth.login — in its --json document, so a consumer can match the command line it actually ran.
leed setup
leed setup --env production
leed setup --env production --company example.com
leed setup --env production --check --jsonSigns in to one environment and sets your site up on this machine. It is what the one-line installer hands off to, and it is safe to run again: a saved login is reused, a site already set up is kept, and an offer you declined is not repeated.
| Flag | What it does |
|---|---|
-e, --env <name> | The environment to sign in to and set up. Required, here or as ENV_NAME |
--dir <folder> | Folder to set sites up in. Default ~/leed, asked for at a terminal |
--company <company> | The saved login to reuse, by companyId or domain. Without it, saved logins are offered at a terminal and an unattended run refuses with invalid_arguments |
--new-login | Sign in again even when a login is saved, to add another company |
--email [email] | Email a sign-in link and stop; run leed setup again once the link has signed in your browser |
--check | Report what setup would still do, and sign in, renew, clone and write nothing |
What each step does is on installing the Leed CLI.
leed site
Run these inside your site’s checkout — the site folder, raw-content/, or any folder below it — or name the site from anywhere with --site <name|domain|companyId>, as leed site list shows it. Outside a checkout without --site, a leed site command refuses and lists the registered sites; it never picks one for you. -e, --env chooses between two registered sites of the same company in different environments.
| Command | Purpose | Hidden? | Detail |
|---|---|---|---|
leed site init | Clone the site repository and install the project tooling, or create a sandbox with --sandbox | No | leed site init |
leed site build | Build the site, optionally serving and watching it | No | leed site build |
leed site validate | Check every modified file against the repository rules | No | leed site validate, commit and push |
leed site commit | Stage everything and commit through the gate chain | No | leed site validate, commit and push |
leed site push | Rebase, push, and notify the CMS | No | leed site validate, commit and push |
leed site list | List the sites set up on this machine, from sites.json, with each one’s checkouts. Offline, from anywhere | No | files and environment |
leed site eject | List the Leed templates you can take ownership of, or take one | No | leed site eject |
leed site vscode | Write the VS Code workspace and tasks for this site, overwriting both | No | leed site init |
leed site upload | Upload a built worker version and report the build result | Yes | This page, below |
leed site notify-cms | Post a committed change set to the CMS | Yes | leed site validate, commit and push |
leed site generate, leed site import and leed site create-page-type are gone: importing content is the leed import group below, and a page type is created with leed settings pagetype create.
leed site list used to list the CMS’s page types; that is now leed settings pagetype list. leed site itself declares three hidden options — -l, --location, -c, --customer and --ci — which exist so a CI build can point the CLI at a checkout without a sites.json entry. They read BUILD_SITE_LOCATION, BUILD_CUSTOMER and CI respectively, and are documented alongside every other variable the CLI reads on files and environment.
leed schema
leed schema --json
leed schema site.list --json
leed cli search "publish a form"The CLI describing itself, in stages. leed schema is the index — every command in one line with whether it mutates, is idempotent, reaches the network and has a --dry-run, plus the shared options, envelope, error codes and exit codes described once. leed schema <group> narrows the index to one group, and leed schema <command> returns one command’s document: its arguments, its options, the JSON Schema of its result and the next steps it can name. A name is accepted dotted (site.list) or as an argv path (site list), and --command still works as an alias. It is built from the live command tree of the binary running it, so it cannot describe a version other than the one you have.
leed cli search is the way in when you do not know the name: it matches your own words against every command’s name, description, options and positional arguments, so page id finds the commands that take a page id. Both are documented under discovering the CLI.
leed import
Content into the CMS, from whichever source it is in: stage a set for review, build it, then upload it. Run inside your site’s checkout.
| Command | Purpose |
|---|---|
leed import openapi <spec> | Stage a page set from an OpenAPI spec |
leed import markdown <dir> | Stage a page set from a directory of markdown files; nested directories become nested navigation folders |
leed import html <dir> | Convert a directory of HTML files to markdown in place, then stage it |
leed import status | Report what is staged, and what the CMS’s pre-write pass makes of it |
leed import apply | Upload the reviewed set into the CMS |
leed import clean | Discard a staged set, removing exactly what staging wrote |
Every verb takes --page-type-id. The workflow and its guards are on importing an OpenAPI spec, and the flags on OpenAPI commands.
leed page
Page content from the command line. Every verb takes --env and --company.
| Command | Purpose |
|---|---|
leed page sync-state --page-type-id <id> | Every CMS-managed page in a page type: path, status, source id, who last changed it, and what it references |
leed page search <query> --section <section> | Search the company’s pages by content within one section — site, documentation or internal — the same search the MCP tool search_internal runs |
leed page get <pageId> | Print a page’s markdown body; with --json, its metadata and the block anchors update --block takes |
leed page review <pageId> | A page’s comment threads and pending suggestions, per block |
leed page create | Create a page from a piped or named markdown document |
leed page update <pageId> | Replace the whole body, or one block with --block <dataId> under compare-and-swap; --suggest lands it as a tracked suggestion |
leed page publish <pageId> | Schedule a page to publish now |
leed page schedule <pageId...> --at <instant> | Schedule one or more pages to publish at one ISO 8601 instant |
leed page stamp <pageId...> --source-id <sha> | Mark pages current by setting their source id, without touching the body |
leed page lock <pageId> | Lock an internal page’s current revision, the internal stand-in for publishing |
leed page frontmatter get / set | Read or replace a page’s custom frontmatter |
leed page meta get / set <pageId> | Read or change a page’s metadata: title, summary, keywords, labels, authors, social card, feature image, journey stage and planned date |
create and update take --source-id <sha> to record the commit the content was checked against in the same write. If the CMS takes the body but not the tag, the result is a partial success that names the leed page stamp to run.
leed page create --gap <kind>:<gapKey> links the new page to a Search & gaps item in Know. A failed link is a partial success: the page exists, the exit is non-zero, and warnings carries the leed know gap link that finishes it. Do not run create again.
leed page create also takes --planned-date <date> and --journey-id <id> (a stage from leed journey list), so a new page lands on the Plan calendar and in its journey stage in the same write.
A page of an internal page type is never published: leed page publish and leed page schedule are refused with internal_page_not_publishable. Its revision is locked instead, with leed page lock <pageId>, Lock revision in the editor, or lock_page over the Operator MCP. Locking needs the Content Publisher role and works only on an internal page: any other page is refused with invalid_arguments, and one already locked with conflict. Revise the page in the editor, or send leed page meta set <pageId> --status IN_REVISION, to edit it again.
leed page meta set <pageId> changes metadata as the MCP tool update_page_metadata does: --title, --summary, --keywords <json>, --labels <json>, --authors <json>, --og-card <json>, --feature-image <json>, --journey-id, --planned-date and --status IN_REVISION, with --clear <field> and --from-file <path>. The JSON lists replace the stored list and the objects are sent whole. A change to a PUBLISHED page moves it to IN_REVISION, and a LOCKED page needs --status IN_REVISION first. Custom frontmatter stays with leed page frontmatter set, and the source id with leed page stamp.
leed page search needs --section. --page-type-id <id> narrows it to one page type within the section and is repeatable; --mode is freetext, vector or hybrid (the default); --limit is 1–50, default 10. The query is 2–200 characters. --section internal searches internal pages, which is how a campaign reads the internal docs it names as context; see Internal Content.
leed asset
| Command | Purpose |
|---|---|
leed asset upload | Upload a local file, or a prepared folder, to the asset manager. Deduplicates, and returns a ready-to-paste Leed Markdown reference. --alt and --alt-from keep your own alt text. Must run inside a site folder |
leed asset list, get, set | Find, inspect and retag existing assets |
leed asset export | Download originals into a folder, resumably |
leed persona and leed journey
The records a campaign is aimed at: the company’s buyer personas and its journey stages. Neither needs a site checkout. Every verb takes --env and --company, every write takes --dry-run, and the field flags are generated from the record’s own schema, with --from-file <path> for a whole JSON patch that the flags are layered over.
| Command | Purpose |
|---|---|
leed persona list | The company’s buyer personas, each with its title keywords |
leed persona get <personaId> | One persona, field by field |
leed persona create --name <name> | Create a persona. --summary, --goals, --pains, --triggers, --objections, --preferred-content, --kpis and --keywords <json> are optional |
leed persona set <personaId> | Change a persona: an omitted flag is left alone, --clear <field> empties one, and --keywords replaces the whole set |
leed journey list | The journey stages, in stage order |
leed journey create --name <name> | Add a stage at the end of the list, with an optional --description |
leed journey set <journeyId> | Rename a stage or change its description |
leed journey delete <journeyId> | Delete a stage, after showing what the CMS would remove; records that name it keep its id. Asks first, and needs --yes under --json or with no terminal |
leed journey reorder <journeyId...> | Put the stages in a new order: every current id, each once |
A persona’s --keywords are job-title words that tag a contact with that persona when one appears in the contact’s title, as a whole word in any letter case. There is no leed persona delete. The journey commands work on every plan.
leed campaign
Engage campaigns from the command line: their key elements, audience, brief and deliverables, and the step runs Leed carries out for them. No site checkout is needed. Campaigns need the Growth plan: below it, every leed campaign command fails with permission_denied (exit 5) and a message naming upgrade_required. There is no delete for a campaign or a deliverable.
| Command | Purpose |
|---|---|
leed campaign list | Every campaign, each with whether it is ready to run |
leed campaign get <campaignId> | One campaign: its key elements, its audience and its readiness |
leed campaign create --name <name> | Create a campaign; only --name is required |
leed campaign set <campaignId> | Change key elements: an omitted flag is left alone, and --clear <field> empties one |
leed campaign audience get <campaignId> | The personas and accounts the campaign is aimed at |
leed campaign audience set <campaignId> | --persona-id <id> or --account-id <id>, each repeatable, replaces that list; a list the call does not name is kept. --clear personas or --clear accounts empties one |
leed campaign brief get <campaignId> | The brief: its narrative, messages, question map and research, with coverage and staleness. --sections narrows it to a comma list of those four |
leed campaign brief set <campaignId> --base-revision <n> --file <path> | Write sections of the brief from a JSON file, guarded on the revision you read |
create and set share one set of key-element flags: --name; --status (draft, scheduled or active); --goal (attract-initial-traffic, drive-demos, brand-awareness, thought-leadership or custom, with --goal-detail for a custom goal); --business-stage (launching, new-product or growth); --kpis <json>; --launch-date, --start-date and --end-date, as YYYY-MM-DD in the campaign’s timezone; --timezone (an IANA name, the company’s by default); --owner-id (the creator by default); --posts-page-type-id; --channels <json>; --author-ids <json>; --voice-notes; --constraints; --context-sources <json>; and --subject and --preview for an email campaign. --from-file <path> takes a whole campaign patch. The JSON lists replace the stored list. --channels '[]' means posts only, while --clear channels means not decided yet. --context-sources takes the whole object with all three lists, and {"pageTypeIds":[],"pageIds":[],"urls":[],"none":true} records that the campaign uses no extra context. A campaign is ready to run once it has a goal (and, for a custom goal, its detail), a business stage, at least one persona in its audience, at least one KPI, a launch date, a timezone, an owner, a posts page type, channels and context sources; list and get report what is missing. Readiness gates nothing in the CMS itself: the campaign skills and step runs check it before they start.
The file brief set reads holds any of narrative, messages, questions, research and appendResearch. A section it names replaces the stored one, and appendResearch adds one research run with its sources and findings. Pass --base-revision 0 before the first write. A brief that changed since the revision you read is refused with conflict and nothing is written: read it again with brief get. --written-by agent marks agent-written work; person is the alternative.
leed campaign deliverable
| Command | Purpose |
|---|---|
leed campaign deliverable list <campaignId> | The campaign’s deliverables in plan order, with each page’s status |
leed campaign deliverable create <campaignId> | Add a deliverable to the plan, as a draft |
leed campaign deliverable set <campaignId> <itemId> | Change a deliverable. An edit that would move or unschedule its scheduled page asks first, and needs --yes under --json |
leed campaign deliverable approve <campaignId> <itemId> | Approve it; a new-page or republish deliverable’s page is scheduled for its date |
leed campaign deliverable reject <campaignId> <itemId> --reason <text> | Reject it, with a reason of 1–500 characters; an approved page deliverable’s page is unscheduled |
leed campaign deliverable reschedule <campaignId> <itemId> --scheduled-date <date> | Move it to a new date; an approved page deliverable’s scheduled page moves with it |
leed campaign deliverable done <campaignId> <itemId> | Mark an approved social or event deliverable done; --undo reverses it |
leed campaign deliverable accept-review <campaignId> <itemId> | Accept its persona review as it stands, with an optional --note of up to 500 characters |
leed campaign deliverable reorder <campaignId> <itemId...> | Put the deliverables in a new plan order: every id, each once |
create and set take the deliverable’s fields as flags. --type is new-page, republish or social (whose target is --page-id), deploy or site-update (--deployment-id), email, or event. The others are --title, --scheduled-date (YYYY-MM-DD for 00:00 UTC that day, or an ISO 8601 instant with a zone), --sequence, --detail, --assignee-id, --ref (the plan’s own id for the item, unique within the campaign), --persona-id, --journey-id, --question-ids <json> and --review <json>. A social item needs --channel (x, linkedin, bluesky or discord) and --account, and carries its text in --copy. --site-path marks an unmanaged page, a .hbs file in the site checkout, which ships with the site and never through the CMS schedule; --nav.menu-id, --nav.parent-item-id, --nav.label and --nav.menu-item-id place a page in a menu. --written-by agent makes the CMS refuse an agent’s write that fails a campaign check. --clear <field> and --from-file <path> work as they do on campaign set.
approve, reject and reschedule show the CMS’s preview first (the deliverable, its date and what happens to its page) and the question defaults to No. Under --json, or with no terminal, pass --yes; --dry-run returns the preview and changes nothing. A preview that lists a refusal is reported as that refusal, without asking.
leed campaign run
Runs a campaign step in Leed itself, instead of in your AI tool, and answers, approves or cancels the run. It needs the Content Publisher role as well as the Growth plan. What each step does is on Campaign Steps.
| Command | Purpose |
|---|---|
leed campaign run start <campaignId> <step> | Start one step: setup, plan, draft, review or schedule |
leed campaign run status <runId> | The run’s status, the question it is waiting on, or its proposal |
leed campaign run answer <runId> "<text>" | Answer the question a waiting run asked, in 1–4,000 characters |
leed campaign run approve <runId> | Apply the run’s proposal; --drop <n>, repeatable, leaves out an item by its number. Asks first, and needs --yes under --json |
leed campaign run cancel <runId> | Cancel the run wherever it is, including while it waits for approval; nothing is applied |
start, status and answer take --wait, which follows the run until it needs an answer, needs approval or ends, for up to --timeout <seconds> (600 by default). Research runs only in your AI tool, as /leed:campaign-research, so start refuses research and says why. A campaign holds one active run at a time, and plan, draft and schedule need a campaign that is ready to run. To turn a proposal down, cancel the run.
leed plan
leed plan calendar --from 2026-12-01 --to 2026-12-31The Plan calendar between two dates: the planned and scheduled pages, the deployments and the campaign deliverables. --from and --to are both required, each a YYYY-MM-DD date or an ISO 8601 instant with a zone; a bare --from starts at 00:00 UTC and a bare --to ends at 23:59:59 UTC, so the range is inclusive. It works on every plan; below Growth it lists pages and deployments and no deliverables. It takes --env and --company and needs no site checkout.
leed settings
CMS settings, one noun at a time: pagetype, label, autolink, searchindex, company, form, shortcode, user, oidctrust, path, menu and brokenlinks, each with the verbs shown in the tree above. Ids are positional — leed settings searchindex get <searchIndexId> — and field flags are generated from the setting’s own schema. Changes are staged until published: leed settings pending lists what is unpublished and leed settings publish [ids] | --all publishes it, one unit at a time, exiting non-zero if any unit failed. A user’s role can only be changed by an Administrator, with leed settings user set --role, and oidctrust create needs --yes.
leed settings menu create --name <name> makes an empty menu and prints its menuId and first revision, ready for add --base-revision <revision>. --description and --expanded true|false are optional, and --dry-run writes nothing. Menu names are unique and matched exactly: a name already in use is refused as a conflict that names the existing menu, never a second menu. leed settings menu delete <menuId> removes a whole menu without a prompt, and refuses a menu that a documentation set uses as its left navigation, because that set’s page paths come from it.
leed settings pagetype create --type takes documentation, api, posts or internal. An internal page type holds content that is never published, such as a handbook or runbooks: create it with only --name and --slug, because every other setting is fixed by the CMS. The slug is stored as internal/<slug>, a navigation menu of the same name is created and bound to it, and no search index is made. It needs the Growth plan or above (upgrade_required otherwise), and neither it nor its menu ever appears in leed settings pending. See Internal Content.
leed settings shortcode create --campaign-id <id> ties a new short link to an Engage campaign, so its clicks count toward that campaign. Like the rest of a short link it is set at creation only, and the CMS refuses an id that is not a campaign in the company.
leed deployments, leed contacts, leed feedback and leed mcp
| Command | Purpose |
|---|---|
leed deployments status | The recent preview and public deployments, and whether the preview can be promoted |
leed deployments promote | Promote the preview site to public. Asks first |
leed deployments retry | Re-run the build for a failed deployment. Does not ask: it publishes nothing new |
leed contacts export <file> | Export contacts to CSV or JSON, with --format |
leed contacts import <file> | Create or update contacts in bulk from CSV or JSON |
leed feedback blocked --ray <id> | Report a request Cloudflare’s firewall blocked (request_blocked, exit 5), so Leed can fix the false positive. The failure’s own hint is the command to run, values filled in |
leed mcp add --cms | Register this company’s CMS MCP server, bound to it at https://app.leed.ai/mcp/<companyId>. --scope user registers it with Claude Code through claude mcp add; --scope project writes the site’s .mcp.json. Outside a checkout, name the site with --site, or the company with --company and -e |
leed mcp add --docs | Register the Leed documentation MCP server with Claude Code, always at user scope |
leed mcp docs | Report whether the documentation server is set up, or record with --decline that you do not want it |
leed know
Know analytics from the command line, under your own sign-in and role. No site checkout is needed: outside one, pass --company and -e.
| Command | Purpose |
|---|---|
leed know views | Every Know view with its filters, sections and plan feature, and your saved views |
leed know show <view> | Read one Know view, by default over the last 30 days; sections naming people go only to a 0600 file with --out |
leed know run <id|name> | Run a saved view, by id or exact name |
leed know gap show|link|dismiss|reopen | Read a What to write next item’s evidence, or record a decision on it; dismiss takes an optional --reason, and the decisions take --dry-run |
Every flag, the people-file rules and worked examples are on leed know commands.
Maintenance commands
leed self-updateChecks npm for a newer @leed-ai/cli on your environment’s dist-tag and installs it, bypassing the 24-hour throttle the automatic check obeys. With nothing to do it prints “Already up-to-date, no updates required.”; otherwise it prints “Update complete!” once bun install -g has finished. The automatic update path — which installs rather than merely notifying, and how to suppress it in a script — is described under installing the Leed CLI.
leed completion install
leed completion uninstallShell tab completion for bash, zsh and fish, detected from SHELL. The candidate list is generated from the live command tree, so it never goes stale as commands and flags change. Install prints “Shell completion installed. Restart your terminal to activate.” Both commands are hidden from --help and both are fully supported.
Commands you will not run yourself
leed site upload and leed site notify-cms exist for the build pipeline. upload uploads a built worker version and reports the build result back to the CMS; notify-cms posts a committed change set to POST /api/site/pushed, and is what leed site push calls in-process at the end of a successful push. upload also works locally if you have a reason to run it. Both retry the CMS call with exponential backoff on timeouts and transport errors, and both exit with the CLI’s shared exit classes — including upload’s non-zero exit with ok: true when the worker was uploaded but the callback was not delivered. See CLI troubleshooting and exit codes for the full table.
completion-server is invoked by the shell hook that leed completion install writes, on every Tab press. It is outside the --json envelope contract: its stdout is the shell’s candidate list, in a format the shell defines, whatever --json or LEED_JSON say. __credential is the other one — git runs it as the credential helper for your content repository, and it answers git, not a person.
Quick reference
Every command that appears in --help, in one place.
| Command | Purpose |
|---|---|
leed login | Sign in (shorthand for leed auth login) |
leed auth login | Sign in via the browser device flow |
leed auth login --email you@example.com | Send a magic-link sign-in email |
leed auth logout | Sign out of one company’s session |
leed auth status | Session and GitLab token health |
leed auth rotate | Reissue this site’s GitLab token |
leed auth reset | Reissue the token and revoke your CMS session |
leed setup --env <env> | Sign in and set your site up on this machine |
leed site init | One-time site setup on this machine |
leed site init --sandbox | A local sandbox site, with no Leed account |
leed site build | Build the site locally |
leed site build --serve | Build, serve on localhost:8080 and rebuild on change |
leed site validate | Check your changes are allowed to be committed |
leed site validate --reset | Restore every file you were not allowed to change |
leed site commit -m "..." | Commit through the gate chain; stages files for you |
leed site push | Rebase, push, and trigger your preview site’s rebuild |
leed site list | List the sites set up on this machine |
leed site eject | List ejectable Leed templates, or take ownership of one |
leed site vscode | Write the VS Code workspace and tasks |
leed import openapi / markdown / html | Stage a page set for review |
leed import apply | Upload a reviewed page set into the CMS |
leed page get / update / stamp | Read, edit or mark current one page |
leed page search <query> --section <section> | Search pages by content, internal pages included |
leed page meta get / set | Read or change a page’s metadata |
leed page lock <pageId> | Lock an internal page’s revision |
leed asset upload | Upload a local file and get its Markdown reference |
leed persona list | The company’s buyer personas |
leed journey list | The journey stages, in order |
leed campaign list / get | Campaigns and whether each is ready to run |
leed campaign deliverable list | A campaign’s deliverables, in plan order |
leed campaign run start | Run a campaign step in Leed |
leed plan calendar --from <date> --to <date> | The Plan calendar between two dates |
leed settings pending / publish | List and publish unpublished settings changes |
leed deployments status | Preview and public deployment state |
leed know show <view> | Read a Know view |
leed know gap show | Read a What to write next item |
leed feedback blocked | Report a request Cloudflare’s firewall blocked |
leed mcp add --cms --docs | Register the Leed MCP servers with your agent |
leed schema | Describe the CLI: commands, options and result schemas |
leed cli search | Find a command by task |
leed self-update | Update the CLI now, past the 24-hour throttle |
leed completion install | Install shell tab completion |
leed completion uninstall | Remove shell tab completion |
Workflow context for these commands is in local development and validate, commit and push; if a command has failed and you are here looking for the message, start at CLI troubleshooting and exit codes.