Integrations & APIs
Quiver CLI
Read and change your Quiver workspace from a terminal or CI job, with stable JSON output, guarded actions, documented exit codes, and a GitHub Action.
quiver is the command-line client for Quiver. Use it from a terminal, a shell script, or a CI job to read your workspace and make changes. Its --json output and exit codes are stable, so scripts can depend on them. The source is in built-for-devs/quiver-cli under the MIT license.
Most commands call one Quiver MCP tool, so the CLI and the MCP server agree on what a change does. Four rules hold throughout:
- One command, one tool. Most commands map to a single MCP tool. The
contentcommands also read and write local markdown files.quiver tools callreaches any tool that has no dedicated command. - Guarded actions refuse to run unattended. Permanent deletes, immediate context changes, takedowns, and model-spending actions prompt on a terminal. Without a terminal, or with
--json, they refuse unless you pass--yes. - Context changes are proposals.
quiver context proposesends a complete new value for review in the Quiver UI. Nothing applies until a person approves it. - The CLI cannot publish. New content is created as a draft. Publishing happens in the Quiver UI.
Install#
From a release archive#
Each release publishes archives for macOS, Linux, and Windows, on amd64 and arm64, plus a checksums.txt file. The v0.1.1 archives are:
| Platform | Archive |
|---|---|
| macOS, Intel | quiver_darwin_amd64.tar.gz |
| macOS, Apple silicon | quiver_darwin_arm64.tar.gz |
| Linux, x86-64 | quiver_linux_amd64.tar.gz |
| Linux, arm64 | quiver_linux_arm64.tar.gz |
| Windows, x86-64 | quiver_windows_amd64.zip |
| Windows, arm64 | quiver_windows_arm64.zip |
The archive names contain no version number, so the releases/latest/download/ URLs always point at the newest release. This example installs on macOS with Apple silicon and checks the archive against checksums.txt before extracting it:
curl -fsSLO https://github.com/built-for-devs/quiver-cli/releases/latest/download/quiver_darwin_arm64.tar.gz
curl -fsSLO https://github.com/built-for-devs/quiver-cli/releases/latest/download/checksums.txt
grep ' quiver_darwin_arm64.tar.gz$' checksums.txt | shasum -a 256 --check --strict
tar -xzf quiver_darwin_arm64.tar.gz quiver
sudo mv quiver /usr/local/bin/quiver
quiver --versionOn Windows, extract quiver.exe from the .zip archive and put it on your PATH.
The binaries are not notarized. If macOS blocks a binary that you downloaded in a browser, remove the quarantine flag with xattr -d com.apple.quarantine /usr/local/bin/quiver.
With Go#
From a clone of the repository, make build writes ./quiver. With Go installed, you can also run:
go install github.com/built-for-devs/quiver-cli@latestThe module's last path element names the binary, so this installs a file called quiver-cli. Rename it to quiver to match the examples on this page. The Go build also has no release version stamp, so quiver --version prints dev. Go must be the version listed in the module's go.mod.
Connect to a hosted workspace#
Create a token. A workspace admin opens Settings → API tokens, enters a name under Create a token, keeps MCP access checked (the
mcpscope), and selects Create token. Copy theqvr_...token right away. It is shown once.Set the workspace. The slug is the subdomain of your workspace URL,
https://<slug>.quivergtm.dev. Forhttps://acme.quivergtm.dev, it isacme:quiver config set workspace acmeLog in. Run the command, then paste the token at the prompt and press Enter:
quiver auth login --token -The terminal echoes the paste. To keep the token off the screen, pipe it instead, from your secret manager or, on macOS after copying the token, with
pbpaste | quiver auth login --token -.The token must start with
qvr_. Unless you pass--no-verify,auth logincontacts the server before saving, and it saves nothing if the server rejects the token. The token is written to the config file,~/.quiver/configby default. SetQUIVER_CONFIGto use another path. That file holds your token, so keep it private and never commit it.Check the connection.
quiver auth whoami quiver context showauth whoamiverifies the token and shows the endpoint, the workspace, and where the token came from.context showis a read-only check of the workspace.
Connect in CI#
In CI, skip auth login and set the environment variables from your CI secret store:
export QUIVER_TOKEN=qvr_your_token_here
export QUIVER_WORKSPACE=acmeCommands that work offline, such as quiver content check, need no token at all.
Connect to a self-hosted Quiver#
For a self-hosted Quiver (see Deployment and billing for the open-source edition), point the CLI at the full MCP endpoint and give it the server's bearer secret. A workspace slug is not needed:
export QUIVER_API_URL=https://quiver.example.com/api/mcp
export QUIVER_TOKEN=your-mcp-auth-secret
quiver tools lsQUIVER_TOKEN must match the server's MCP_AUTH_SECRET. auth login only stores qvr_ tokens, so use environment variables for a self-hosted secret. Some dedicated commands need tools that only Quiver Hosted exposes. quiver tools ls lists the tools your server supports.
If a self-hosted connection returns 401 Unauthorized, do not run quiver auth login. Check that QUIVER_API_URL ends in /api/mcp and that QUIVER_TOKEN matches MCP_AUTH_SECRET.
Settings#
Each setting resolves from the first source that provides it, in this order: command-line flag, environment variable, config file.
| Setting | Flag | Environment variable | Config key | Purpose |
|---|---|---|---|---|
| Token | QUIVER_TOKEN | Hosted qvr_ token, or the self-hosted secret. Written by auth login. | ||
| Workspace | -w, --workspace | QUIVER_WORKSPACE | workspace | The workspace slug. |
| API URL | --api-url | QUIVER_API_URL | api_url | Endpoint override, for example a local dev server. Without it, the URL comes from the workspace slug. |
| Config file | QUIVER_CONFIG | Config file path. Defaults to ~/.quiver/config. |
--timeout sets the request timeout (default 30s). Use quiver config ls to see each effective setting, where it came from, and the masked token. quiver config get <key> prints one value, and quiver config path prints the config file path.
Commands#
Run quiver <command> --help for the flags and examples of any command.
| Command | Subcommands | Covers |
|---|---|---|
quiver dashboard | Workspace summary | |
quiver context | show, history, propose, apply, restore | Product marketing context. See Editing context. |
quiver campaign | ls, get, create, update, status <id> <state>, delete | Campaigns |
quiver artifact | ls, get, save, update, status <id> <state>, archive, delete | Artifacts |
quiver content | ls, calendar, get, metrics, log-metrics, distribute, archive, delete, pull, push, check | Content library. See Content as files. |
quiver research | ls, get, add, update, delete, quotes, linear, quote update, quote delete | Research entries and quotes |
quiver perf | log, ls, queue, proposals, proposal <id> | Performance log and close-the-loop proposals |
quiver task | ls, add, update, done | Tasks, hosted workspaces only |
quiver session | ls, get, delete | Agent sessions |
quiver competitor | ls, get, intel, add, update, remove, scan, cadence | Competitors and competitive intel |
quiver tools | ls, describe <tool>, call <tool> | Raw MCP tools, and their argument schemas |
quiver auth | login, logout, whoami | Credentials |
quiver config | ls, get, set, path | CLI settings |
quiver completion | bash, fish, powershell, zsh | Shell completion scripts |
Arguments that name a record accept an ID or a name, and so do --campaign and --artifact:
quiver campaign get "Q3 launch"
quiver campaign create --name "Q3 launch" --goal "500 signups" --channel linkedin,newsletter --start 2026-10-01
quiver artifact save --title "Launch email" --type email_sequence --campaign "Q3 launch" -f email.md
quiver perf log --campaign "Q3 launch" -m signups=42 -m opens=1200 --worked "subject line B"Enum flags such as --status, --type, and --channel are checked locally, before any request is sent. Run quiver completion --help to install shell completion, which also completes their values.
To call a tool that has no dedicated command, run quiver tools describe <tool> to see its input schema, then quiver tools call <tool> with -a key=value pairs or a --args JSON object:
quiver tools describe list_tasks
quiver tools call list_tasks -a status=todoEditing context#
Context changes are made one field at a time, and each change replaces the whole field. Export the field, edit it, and propose the complete new value for review:
quiver context show --field messagingPillars > pillars.yaml # lists and objects print as YAML
$EDITOR pillars.yaml
quiver context propose messagingPillars -f pillars.yaml -r "Acme call feedback"- Text fields, such as
positioningStatement, print and propose as plain text. For a short text value, pass--value "..."instead of-f. Pass exactly one of the two. --rationale(-r) is required because the reviewer reads it.--sourcerecords what prompted the change, for example--source "customer call with Acme 2026-04-11".- Use
--jsonwithcontext show --fieldto get the raw JSON value.
The editable fields are positioningStatement, productCategory, businessModel, icpDefinition, coreProblem, messagingPillars, keyDifferentiators, competitiveLandscape, whyAlternativesFallShort, customerLanguage, proofPoints, activeHypotheses, brandVoice, wordsToUse, and wordsToAvoid.
quiver context apply <field> replaces a field immediately, with no review step. It requires -m/--message, which is recorded in the version history, and it is guarded. Prefer propose unless you are certain of the change. quiver context history lists versions, and quiver context restore <version> restores one by its number or its ID. Restore is also guarded.
Content as files#
content pull writes content as markdown, with SEO and Open Graph metadata in YAML frontmatter. content push syncs edits back. Quiver stays the source of truth.
quiver content pull --all --dir posts
$EDITOR posts/launch-post.md
quiver content check posts/ # offline validation, for CI
quiver content push posts/ --dry-run
quiver content push posts/- With one slug and no
--diror-o,pullwrites to stdout.-owrites one file.--alllists every item and needs--dir, which writes each item to<dir>/<slug>.md. - Keys are written in a fixed order, so repeated pulls produce identical files.
- The
quiver:block records the server state at pull time. Do not edit it. pushvalidates the frontmatter, fetches the server copy, and sends only the fields that changed. Files that match the server are left alone, sopushis safe to run on every merge.- Removing a field from a file clears it on the server.
- If an item changed on the server after you pulled it,
pushstops with exit code7. Pull again to merge, or pass--forceto overwrite the server copy. - A file remembers the piece it came from (
quiver.id), sopushalways updates that piece. Slugs cannot be renamed from the CLI. - New slugs are created as drafts.
content check validates files without contacting the server. It exits with 5 if any file has errors. With --strict, warnings also fail the check.
Guardrails#
These commands prompt for confirmation on a terminal. Without a terminal, or with --json, they refuse to run unless you pass --yes (-y). A refusal exits with code 2.
- Changing context immediately:
context apply,context restore, andperf proposal --approve. - Permanent deletes:
campaign delete,artifact delete,content delete,research delete,research quote delete, andsession delete. - Removing a competitor from tracking:
competitor remove. - Taking content off the public site:
content archive. A published piece is taken down. - Spending model tokens:
competitor scan, andcompetitor cadencewith any value other thanoff.
context propose is not guarded. It only proposes a change, and nothing applies until someone approves it in the Quiver UI.
Output and exit codes#
--json output is the stable contract for scripts. Human-readable output can change between versions.
With --json, errors go to stderr as a JSON object, and stdout stays empty for commands that fail before they produce a result:
{"error": {"code": 4, "kind": "not_found", "message": "..."}}The exception is content check and content push. They print one result per file on stdout, including the failed ones, and then exit with the code of the first failure.
| Code | Kind | Meaning |
|---|---|---|
| 0 | ok | Success |
| 1 | error | Unexpected failure |
| 2 | usage | Bad flags or arguments, missing configuration, or a refused guarded action |
| 3 | auth | Missing, invalid, or under-scoped token |
| 4 | not_found | The resource does not exist |
| 5 | validation | The server rejected the input, or content check found problems |
| 6 | unavailable | Network error, timeout, or server 5xx |
| 7 | conflict | The item changed on the server after it was pulled |
GitHub Action#
This repository is also a GitHub Action. It installs a checksum-verified release binary, runs any quiver command, writes the results to the job summary, and annotates errors on the affected files. It runs on Linux and macOS runners only. On a Windows runner it fails with an error.
- uses: built-for-devs/quiver-cli@v0
with:
args: content push posts
workspace: acme
token: ${{ secrets.QUIVER_TOKEN }}
commit-state: "true"| Input | Default | Description |
|---|---|---|
args | required | Arguments for quiver, for example content check posts/. --json is added automatically. The value is split on whitespace, so paths cannot contain spaces. |
workspace | Workspace slug. | |
token | API token with the mcp scope. Pass it from a secret. Not needed for offline commands such as content check. | |
api-url | Endpoint override. | |
version | latest | Release tag, latest, or source. source builds the action's own checkout and needs Go, for testing unreleased changes. |
fail-on-error | true | Fail the step on a non-zero exit. Set "false" to branch on exit-code instead. |
commit-state | false | Commit files that the command modified back to the current branch. |
commit-message | Sync Quiver state [skip ci] | Message for that commit. |
The outputs are exit-code, json (the path to the --json output file), and committed. The exit code is also exported as QUIVER_EXIT_CODE for later steps. To act on a specific code, such as 7 for a conflict, without failing the job, set fail-on-error: "false" and branch on exit-code.
For a content repository, pull requests can run content check and a content push --dry-run preview, and merges to main can run content push. The complete workflow is in examples/quiver-content.yml.
On the push job, set commit-state: "true". push records each post's new server version in its file. Without committing that change back, the next merge of the same post fails with a false conflict. The job needs permissions: contents: write, and branch protection must allow github-actions[bot] to push.
Related#
- MCP server setup, for connecting agents and editors
- Content and changelog, for how content is drafted, reviewed, and published
- Public Content API, for reading published content from your site