Skip to main content

Agent-friendly Confluence CLI with structured JSON output and jq filtering

Project description

confluence-cf

Confluence CLI built for AI agents — pure JSON output, semantic exit codes, 200+ auto-generated commands, and built-in jq filtering.

Give your AI agent (Claude Code, Cursor, Copilot, or custom bots) reliable, token-efficient access to Confluence Cloud.

Install

pip install confluence-cf
# or
uv tool install confluence-cf

Why cf?

# Full Confluence response: ~8,000 tokens
cf pages get --id 12345

# With cf's filtering: ~50 tokens
cf pages get --id 12345 --fields id,title --jq '{id: .id, title: .title}'
  • All output is JSON — stdout for data, stderr for errors, always
  • Semantic exit codes — 0=ok, 2=auth, 3=not_found, 5=rate_limited — agents can branch without parsing
  • 200+ commands from the official Confluence OpenAPI spec, synced daily
  • Batch operations — N API calls in one process via cf batch
  • Self-describingcf schema lets agents discover commands at runtime
  • Workflow helperscf workflow move, cf workflow copy, cf workflow archive

Quick start

# Configure
cf configure --base-url https://yoursite.atlassian.net --token YOUR_API_TOKEN

# Search pages
cf search search-content --cql "space = DEV AND type = page" \
  --jq '.results[] | {id, title}'

# Export a page tree
cf export --id 12345 --tree

# Batch operations
echo '[
  {"command":"pages get","args":{"id":"12345"},"jq":".title"},
  {"command":"pages get","args":{"id":"67890"},"jq":".title"}
]' | cf batch

Also available via

  • Homebrew: brew install sofq/tap/cf
  • npm: npm install -g confluence-cf
  • Scoop: scoop bucket add sofq https://github.com/sofq/scoop-bucket && scoop install cf
  • Docker: docker run --rm ghcr.io/sofq/cf version
  • Go: go install github.com/sofq/confluence-cli@latest

Documentation

Full docs, Claude Code skill, and source at github.com/sofq/confluence-cli.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

confluence_cf-1.2.2.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

confluence_cf-1.2.2-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file confluence_cf-1.2.2.tar.gz.

File metadata

  • Download URL: confluence_cf-1.2.2.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for confluence_cf-1.2.2.tar.gz
Algorithm Hash digest
SHA256 6fe9f7a8e1cb76fdbba3df6b0643119f55cbce92c69f2d58d51b4b275525dc48
MD5 02e5a0f90d00a0d39a8555ca692da6f5
BLAKE2b-256 f015095886ab8b45ec6c99fe7aa00263f7cf43bae81118e75e3b4e658c47b3df

See more details on using hashes here.

Provenance

The following attestation bundles were made for confluence_cf-1.2.2.tar.gz:

Publisher: release.yml on sofq/confluence-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file confluence_cf-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: confluence_cf-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for confluence_cf-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 39b8aae0597d6094a835d31f8926924c3cd059b8789eb7c841705c640c356add
MD5 08a6721d230bf58cc6de4bf17de20c4d
BLAKE2b-256 9bb032190588845756cb762592983303009d516a6af9d647e4a2a5b95a6f26e3

See more details on using hashes here.

Provenance

The following attestation bundles were made for confluence_cf-1.2.2-py3-none-any.whl:

Publisher: release.yml on sofq/confluence-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page