The Quiver command line. Read and change your workspace from a terminal, a script or CI, with stable JSON and exit codes.
Quiver · 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.
Each command calls one tool that the Quiver MCP server exposes, so the CLI and the server agree on what a change does. Four rules hold:
- One command, one tool. Most commands call a single Quiver MCP tool. The
contentcommands also read and write local markdown files. - 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. Build from a source checkout with Go 1.27.4 or later:
make build ./quiver --version
Or download the archive for your OS and architecture from Releases, extract it, and move
quiver(Windows:quiver.exe) onto yourPATH. Archives are published for macOS, Linux and Windows on amd64 and arm64, withchecksums.txt. -
Create a token. In Quiver, go to Settings → API tokens and create a token with the
mcpscope. -
Connect to your workspace.
quiver config set workspace your-workspace quiver auth login --token - # reads the token from stdin quiver auth whoami quiver context show
Replace
your-workspacewith the lowercase slug from your workspace URL. At the prompt, paste the token and press Enter. The paste is echoed on screen, so to keep the token off the screen, pipe it from your secret manager, or on macOS runpbpaste | quiver auth login --token -after copying the token. The token is stored in the config file. Do not share or commit that file.
auth whoami verifies the connection and shows the effective endpoint. context show is a read-only check of the workspace.
The CLI reuses workspace API tokens that have the mcp scope. The workspace slug selects the endpoint, https://<workspace>.quivergtm.dev/api/mcp. auth login accepts only hosted qvr_ tokens.
In CI, skip auth login and set QUIVER_TOKEN and QUIVER_WORKSPACE from your CI secret store.
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.
On a self-hosted 401 Unauthorized, ignore the CLI's suggestion to run quiver auth login. Check that QUIVER_API_URL points to your deployment's /api/mcp, and that QUIVER_TOKEN matches its MCP_AUTH_SECRET.
| Variable | Purpose |
|---|---|
QUIVER_TOKEN |
Hosted qvr_ API token, or the self-hosted MCP bearer secret |
QUIVER_WORKSPACE |
Workspace slug |
QUIVER_API_URL |
Endpoint override, for example a local dev server |
QUIVER_CONFIG |
Config file path (default ~/.quiver/config) |
For each setting, precedence is flag, then environment variable, then config file. An explicit API URL overrides the one derived from the workspace slug. If the CLI reaches the wrong server, run quiver config ls. It shows each effective setting, where it came from, and masks the token.
quiver dashboard
quiver context show [--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 <entry-id>
quote update | quote delete
quiver perf log | ls | queue | proposals | proposal <id> --approve|--reject
quiver task ls | add | update | done <id> (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 flags and examples for each command. quiver tools call reaches any tool that has no dedicated command.
Arguments that name a record accept an ID or a name, so quiver campaign get "Q3 launch" and --campaign "Q3 launch" work as well as UUIDs. Enum flags such as --status, --type and --channel are checked locally. They tab-complete once shell completion is installed (quiver completion --help).
Context changes are made one field at a time, and each replaces the whole field. Export the field, edit it, and propose the complete new value for review in the Quiver UI:
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.
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/- 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. pushsends only changed fields and skips unchanged files, so it is safe to run on every merge.- If an item changed on the server since you pulled it,
pushstops with exit code 7. Pull again, or pass--forceto overwrite. - A file remembers the piece it came from (
quiver.id), sopushalways updates that piece. Slugs cannot be renamed from the CLI. - Removing a field from a file clears it on the server.
- New slugs are created as drafts.
content check runs without a token, so it works in pull request checks.
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. - Permanent deletes:
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 is the stable contract. Human output may change between versions. With --json, errors are written to stderr as {"error": {"code": 4, "kind": "not_found", "message": "..."}}. For most commands stdout stays empty on error. content check and content push are the exception: they print a result for each file to stdout, then exit non-zero.
| 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 does not exist |
| 5 | validation | the server rejected the input, or content check failed |
| 6 | unavailable | network error, timeout, or server 5xx |
| 7 | conflict | the remote changed since the local copy was pulled |
This repo is also a GitHub Action. It installs a checksum-verified release binary, runs any quiver command, shows the results in the job summary, and annotates errors on the affected files. It runs on Linux and macOS runners. It does not support Windows runners.
- uses: built-for-devs/quiver-cli@v0
with:
args: content push posts
workspace: your-workspace
token: ${{ secrets.QUIVER_TOKEN }}
commit-state: "true"| Input | Default | Description |
|---|---|---|
args |
required | quiver arguments. --json is added automatically. |
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 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 files the command modified back to the current branch. |
commit-message |
Sync Quiver state [skip ci] |
Message for that commit. |
Outputs: exit-code, json (path to the --json output) 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.
examples/quiver-content.yml is a complete workflow for a content repo. Pull requests run content check and a push --dry-run preview. Merges to main run content push.
Use commit-state: "true" on the push job. push records each post's new server version in its file. Without committing that back, the next merge of the same post fails with a false conflict. The push job needs permissions: contents: write, and branch protection must allow github-actions[bot] to push.
Tag a version and push the tag:
git tag v1.0.0 && git push origin v1.0.0The release workflow builds the archives with GoReleaser, publishes them with checksums.txt, and moves the major tag (v0 until 1.0, then v1) to the latest stable release, so built-for-devs/quiver-cli@v0 picks up the release. Tags with a suffix, such as v0.2.0-rc.1, are marked as prereleases and do not move the major tag.
make snapshot builds the same archives locally into dist/. It needs GoReleaser.
Requires Go 1.27.4 or later (see go.mod).
make test
make lint # gofmt and go vet
make lint-actions # actionlint over the workflows and examples
make build # writes ./quiverTool argument keys and enums live in cmd/commands.go, and the content field table lives in internal/content/doc.go. Tests check them against a snapshot of the live tool schemas in cmd/testdata/tools.json. The test server rejects calls that the real server would reject. When the server's tools change, refresh the snapshot and fix whatever fails:
quiver tools ls --json | jq '[.[] | {name, inputSchema}] | sort_by(.name)' > cmd/testdata/tools.json
make testcmd/ commands, flags, guards, and the root command
internal/client/ MCP client
internal/config/ settings, precedence and the config file
internal/content/ markdown content: frontmatter, checks, pull and push
internal/apperr/ exit codes and typed errors
internal/output/ human and JSON output
action.yml the composite GitHub Action
examples/ a sample content repo workflow
Read CONTRIBUTING.md first.
Report security issues privately. See SECURITY.md.