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-describing —
cf schemalets agents discover commands at runtime - Workflow helpers —
cf 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file confluence_cf-0.2.1.tar.gz.
File metadata
- Download URL: confluence_cf-0.2.1.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
844b26a758a9d370e11d24a1538b48059614db9f3906cd7c42d952937f2bbffc
|
|
| MD5 |
298d628afddaabfbc481bd95119916d7
|
|
| BLAKE2b-256 |
6c0f6898601f5219b5e89da88bec5d977307b159a9bc4882b61548b404d93966
|
Provenance
The following attestation bundles were made for confluence_cf-0.2.1.tar.gz:
Publisher:
release.yml on sofq/confluence-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
confluence_cf-0.2.1.tar.gz -
Subject digest:
844b26a758a9d370e11d24a1538b48059614db9f3906cd7c42d952937f2bbffc - Sigstore transparency entry: 1194402213
- Sigstore integration time:
-
Permalink:
sofq/confluence-cli@2dbcde4a6c012afcc0f1b7e6003caa48c3173d4f -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/sofq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2dbcde4a6c012afcc0f1b7e6003caa48c3173d4f -
Trigger Event:
push
-
Statement type:
File details
Details for the file confluence_cf-0.2.1-py3-none-any.whl.
File metadata
- Download URL: confluence_cf-0.2.1-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.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a8d31a85f22b6bff76b633f27d78311832b850842648b96531dfe44b405b20d
|
|
| MD5 |
cd99253c721840377203ff6aac7619af
|
|
| BLAKE2b-256 |
bccee5dab5c049c11d72d042217dd4dc19b07a186e416e7d1ff9f4fe1e628639
|
Provenance
The following attestation bundles were made for confluence_cf-0.2.1-py3-none-any.whl:
Publisher:
release.yml on sofq/confluence-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
confluence_cf-0.2.1-py3-none-any.whl -
Subject digest:
1a8d31a85f22b6bff76b633f27d78311832b850842648b96531dfe44b405b20d - Sigstore transparency entry: 1194402228
- Sigstore integration time:
-
Permalink:
sofq/confluence-cli@2dbcde4a6c012afcc0f1b7e6003caa48c3173d4f -
Branch / Tag:
refs/tags/v0.2.1 - Owner: https://github.com/sofq
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2dbcde4a6c012afcc0f1b7e6003caa48c3173d4f -
Trigger Event:
push
-
Statement type: