The Quiver command line. Read and change your workspace from a terminal, a script or CI, with stable JSON and exit codes.
Quiver Hosted · Releases · GitHub Action · MIT
quiver is the command-line client for Quiver, the workspace where your positioning, research, content and performance live. It is for marketers and DevRel engineers who script against Quiver, and for CI jobs that keep a git-managed content library in sync with it.
Install · Quick start · Configuration · Commands · Content sync · GitHub Action · Troubleshooting
Download a release (no Go required). Choose an archive and download checksums.txt from the same GitHub release.
| OS | Intel / AMD 64-bit | ARM 64-bit |
|---|---|---|
| macOS | quiver_darwin_amd64.tar.gz |
quiver_darwin_arm64.tar.gz |
| Linux | quiver_linux_amd64.tar.gz |
quiver_linux_arm64.tar.gz |
| Windows | quiver_windows_amd64.zip |
quiver_windows_arm64.zip |
Before extracting, compare the archive's SHA-256 hash against its entry in checksums.txt. Use shasum -a 256 <archive> on macOS, sha256sum <archive> on Linux, or Get-FileHash <archive> -Algorithm SHA256 in PowerShell.
Build from source. Use the Go version specified in go.mod or later.
git clone https://github.com/built-for-devs/quiver-cli.git
cd quiver-cli
go build -o quiver .On Windows, use go build -o quiver.exe . instead. Move the binary to a directory on your PATH, then run quiver --version. To run it directly from the current directory, use ./quiver (PowerShell: .\quiver.exe).
Install with Go. Run go install github.com/built-for-devs/quiver-cli@latest, or make install from a clone; either way the binary is named quiver-cli, not quiver.
For Quiver Hosted, open your workspace and create a token with the mcp scope under Settings → API tokens. Replace your-workspace below with the lowercase subdomain of your workspace URL.
quiver config set workspace your-workspace
quiver auth login --token -
quiver auth whoami
quiver context showAt the login prompt, paste the token and press Enter. The CLI reads it from standard input without echoing it in a terminal, so it stays out of your shell history. You can also pipe it from a secret manager. auth whoami checks the connection and shows the effective endpoint; context show reads the workspace context without changing it.
Login saves the token in the local config file in plaintext. Do not share or commit the file. quiver auth logout removes the saved token; it does not revoke the token on the server or unset QUIVER_TOKEN.
Skip auth login. Set QUIVER_TOKEN from your CI secret store and QUIVER_WORKSPACE to the hosted workspace slug. Offline commands such as content check do not need credentials.
For a self-hosted Quiver, set QUIVER_API_URL to the full URL ending in /api/mcp, and set QUIVER_TOKEN to the server's MCP_AUTH_SECRET. No workspace slug is needed. Because auth login accepts only hosted tokens, use the environment variables for a self-hosted secret. Start with quiver tools ls to see which tools your server supports. Some dedicated commands need tools that only Quiver Hosted exposes.
| Setting | Flag | Environment variable | Config key |
|---|---|---|---|
| Workspace slug | --workspace, -w |
QUIVER_WORKSPACE |
workspace |
| Full MCP endpoint | --api-url |
QUIVER_API_URL |
api_url |
| Bearer credential | none | QUIVER_TOKEN |
none (the token comes from quiver auth login or QUIVER_TOKEN) |
| Config file path | none | QUIVER_CONFIG |
none (defaults to ~/.quiver/config) |
Each setting uses the first nonempty value from the flag, environment, or config file, in that order. If no API URL is set, the CLI derives https://<workspace>.quivergtm.dev/api/mcp from the workspace slug. An explicit URL takes priority over that derived URL, even if you pass --workspace.
Use quiver config path to locate the file and quiver config ls to see the effective settings, their sources, and the masked token. quiver config set accepts workspace and api_url; pass an empty string to clear a stored value (for example, quiver config set api_url "").
quiver dashboard
quiver context show [--field <field>] | history | propose <field> | apply <field> | restore <version>
quiver campaign ls | get | create | update | status <id> <state> | delete
quiver artifact ls | get | save | update | status <id> <state> | archive | delete
quiver content ls | calendar | get | metrics | log-metrics | distribute | archive | delete
pull | push | check
quiver research ls | get | add | update | delete | quotes | linear <id-or-title>
quote update | quote delete
quiver perf log | ls | queue | proposals | proposal <id> (--approve or --reject)
quiver task ls | add | update | done <id-or-title> (hosted workspaces only)
quiver session ls | get | delete
quiver competitor ls | get | intel | add | update | remove | scan | cadence <off|monthly|weekly>
quiver tools ls | describe <tool> | call <tool>
quiver auth login | logout | whoami
quiver config ls | get | set | path
quiver completion bash | fish | powershell | zsh
quiver <command> --help shows the arguments and flags for each command. Global flags include --json for machine-readable output and --timeout for the request timeout (default 30s).
Use names, titles, or slugs only where help lists them as alternatives to IDs. For example, quiver campaign get "Q3 launch" looks up a campaign by name, while quiver campaign status requires its ID. Commands validate enum values where allowed values are defined. Run quiver completion <shell> --help for shell-specific installation instructions.
Most workspace commands map to one MCP tool. Commands that need to read existing state or sync files can make several calls. To discover the tools available on your server and call one directly:
quiver tools ls
quiver tools describe get_campaign
quiver tools call get_campaign --arg 'name=Q3 launch' --json--arg is repeatable, and --args accepts a JSON object. Prefer dedicated commands for writes: raw calls do not use their CLI confirmation prompts.
context propose submits a complete replacement for one field without applying it. Export the field, edit it, and submit it for review:
quiver context show --field messagingPillars > pillars.yaml # lists and objects as YAML
$EDITOR pillars.yaml
quiver context propose messagingPillars -f pillars.yaml -r "Acme call feedback"Text fields, such as positioningStatement, are exported and proposed as plain text. --rationale is required, and --source records what prompted the change. Review the proposal in the Quiver UI, or list proposals with quiver perf proposals and use quiver perf proposal <id> with --approve or --reject. Approval applies the change and is guarded.
content pull writes content as Markdown, with SEO and Open Graph metadata in YAML frontmatter. content push syncs edits back. For a starting point for a new draft, see the example Markdown file.
quiver content pull launch-post --dir posts # replace launch-post with an existing slug
$EDITOR posts/launch-post.md
quiver content check posts/ --strict
quiver content push posts/ --dry-run
quiver content push posts/- Use
pull --all --dir poststo export the library. Pull writes over the target files: save local edits before pulling again. - Leave the
quiver:block intact. It records the server version for conflict detection and ties a file to the original item by ID. Slugs cannot be renamed from the CLI. content checkvalidates files offline;--strictalso fails on warnings.push --dry-runreads current server state but writes neither to Quiver nor to your files.pushsends only changed fields. Removing an optional synced field clears it on the server. A successful push can refresh the localquiver:block even if no server update was needed. Commit the refreshed state along with your edits.- If local edits conflict with newer server state, the result for that file is a conflict (code 7). Other files can still be pushed: there is no batch rollback. Pull a fresh copy, merge your local edits, and retry. Use
--forceonly when you intend to bypass that conflict check. - New slugs are created as drafts.
content distributerecords an existing distribution URL; publishing happens in the Quiver UI.
context propose is the default way to change workspace context. These commands prompt on a terminal, and refuse to run without --yes when there is no terminal or when --json is set:
- Changing context immediately:
context apply,context restore,perf proposal --approve. - Deleting records or removing a tracked competitor:
campaign delete,artifact delete,content delete,research delete,research quote delete,session delete,competitor remove. - Taking content off the public site:
content archive. - Spending model tokens:
competitor scan, andcompetitor cadencewith any value other thanoff.
--json output and exit codes are the scripting contract. Human output may change between versions. With --json, results go to stdout and errors go to stderr as {"error": {"code": 4, "kind": "not_found", "message": "..."}}. Once file processing produces results, content check and content push can emit those results to stdout even when the command exits nonzero. For a batch push, the exit code comes from the first failed file.
| Code | Kind | Meaning |
|---|---|---|
| 0 | ok | success |
| 1 | error | unexpected failure |
| 2 | usage | bad flags or arguments, missing config, or a refused guarded action |
| 3 | auth | missing, invalid, or under-scoped token |
| 4 | not_found | the resource, tool, or MCP endpoint was not found |
| 5 | validation | the server rejected the input, or content check failed |
| 6 | unavailable | network error, timeout, or server 5xx |
| 7 | conflict | the remote changed, disappeared, or has no matching local base |
Add the composite action to a job after checkout. On x64 or ARM64 Linux and macOS runners, it installs a checksum-verified release binary unless version: source is set, which builds from source. It adds --json and summarizes results. Content checks and pushes can annotate individual files. Self-hosted runners need Bash, gh, jq, shasum, and tar for release installs and reporting.
For an offline check on a pull request:
- uses: actions/checkout@v7
- name: Check content metadata
id: quiver
uses: built-for-devs/quiver-cli@v0
with:
args: content check posts --strictFor a full sync, copy the example workflow. It checks Markdown on pull requests, shows an authenticated dry run on same-repository pull requests, and pushes on updates to main. Keep token-backed previews restricted to code you trust; fork pull requests only run the offline check. Store the token in GitHub Actions secrets, not in workflow YAML or args.
The uses ref selects the action code; the version input selects the CLI binary independently. For reproducible jobs, pin the action to a commit SHA and the CLI to a release tag such as v0.1.1.
| Input | Default | Description |
|---|---|---|
args |
required | One line of whitespace-separated arguments. Shell quoting is not interpreted; use paths and values without spaces. --json is added automatically. |
workspace |
Workspace slug. | |
token |
Hosted API token with the mcp scope, or a self-hosted MCP bearer secret. Not needed for offline commands. |
|
api-url |
Endpoint override. | |
version |
latest |
Release tag, latest, or source to build from the action's own checkout (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 and push tracked changes, including refreshed quiver: blocks, back to the current branch. |
commit-message |
Sync Quiver state [skip ci] |
Message for that commit. |
| Output | Description |
|---|---|
exit-code |
CLI exit code, also available as QUIVER_EXIT_CODE in later steps. |
json |
Path on the runner to the CLI's stdout, not the JSON itself. It can be empty on error; see the job summary for errors. |
committed |
"true" if the commit step pushed changes, "false" if it ran but detected no changes. Unset if it was skipped. |
Set fail-on-error: "false" to handle a CLI error in a later step using steps.quiver.outputs.exit-code (for the step ID above). This does not suppress action installation or Git errors.
Use commit-state: "true" in the push job to keep the repository's conflict-detection state current. Start from a clean checkout of a writable branch with credentials and grant the job permissions: contents: write. Branch rules must allow the checkout credential to push. This step is not limited to content files and can run after a partial CLI failure, so successful files keep their refreshed state.
| Symptom | What to check |
|---|---|
quiver: command not found |
Put the extracted or built binary on PATH, or run it by path. go install . and make install install it as quiver-cli (quiver-cli.exe on Windows). |
| Wrong workspace or endpoint | Run quiver config ls. Clear an unintended QUIVER_API_URL or stored api_url before switching workspaces by slug. |
| Auth error (3) | Run quiver auth whoami and check the token source in quiver config ls. On Hosted, use a token for the target workspace with the mcp scope. For self-hosted Quiver, check the /api/mcp URL and use its MCP_AUTH_SECRET. |
| Tool or endpoint not found (4) | Verify the endpoint, then use quiver tools ls to see whether your server offers the tool. |
| Content validation failed (5) | Run quiver content check <path> and fix the reported fields. |
| Request unavailable (6) | Check that the endpoint is reachable. For a slow request, try a longer timeout, for example --timeout 60s. |
| Content conflict (7) | Save your local edits before pulling the latest server copy. Merge onto the fresh file without replacing its quiver: block. |
See CONTRIBUTING.md for development, tests, and release instructions.
Report security issues privately. See SECURITY.md.