CLI
Installation
# Homebrew.
brew install --cask mozilla-ai/tap/cq
# Go install.
go install github.com/mozilla-ai/cq/cli@latest
# From source.
git clone https://github.com/mozilla-ai/cq.git
cd cq/cli
make buildUsage
# Sign in interactively via your identity provider (control-plane).
cq auth providers
cq auth login github
cq auth status
cq auth logout
# Search for relevant knowledge.
cq query --domain api --language go --format json
# Propose a new knowledge unit.
cq propose --domain api --domain go \
--summary "Use retries for flaky APIs" \
--detail "Exponential backoff with jitter prevents thundering herd." \
--action "Wrap HTTP calls in a retry loop."
# Confirm a unit proved correct (boosts confidence by 10%).
cq confirm <unit_id>
# Flag a unit as problematic (reduces confidence by 15%).
cq flag <unit_id> --reason stale
cq flag <unit_id> --reason duplicate --duplicate-of <other_id>
# Show store status.
cq status
cq status --format json
# Print the agent protocol prompt (for frameworks without the cq plugin).
cq prompt
# Start the MCP server on stdio.
cq mcpConfiguration
Variable
Description
Default
Authentication
Authentication vs API keys
Credential storage
Platform
Backend
Knowledge tiers
Development
License
Last updated