Agent skill · magnus919
confluence-cli
Interact with Atlassian Confluence from the terminal: list spaces, browse
What it needs
About 3k tokens when loaded.
What this skill does
confluence-cli — Confluence Wiki from the Terminal Interact with Atlassian Confluence Cloud via the REST API. List spaces, browse pages, view page content with body, search with CQL, and create pages. Setup 1. Generate an API token at id.atlassian.com/manage/api-tokens 2. Set environment variables: --help and --dry-run work without credentials. Essential Commands me — Current user profile spaces — List spaces pages — List pages Filters by space key. Resolves the key to an internal ID automatically. view — View a page by ID Shows title, status, version, author, timestamps, and HTML body (stripped to plain text for display). The full HTML body is available in --json output up to 5000 chars. search — Search with CQL CQL (Confluence Query Language) is Confluence's search syntax. Common patterns: text~"keyword" — full-text search space=KEY — filter by space type=page — filter by content type creator=currentuser() — your content label="name" — by label Combine with AND: space=DEV AND text~"deploy" create — Create a page Creates pages in Confluence Cloud (v2 API). The body is HTML using Confluence's storage format. For simple pages, basic HTML tags work (<p>, <ul>, <h2>, etc.). Global Flags All flags work in any position: Known Gotchas Authentication uses HTTP Basic Auth with email + API token. Same credentials as Jira, but stored under different env var names. Two API versions — The CLI uses v2 API for most operations (spaces, pages, create) and the legacy rest API for me and search (CQL). This is transparent to the user. Space keys must be resolved to IDs — The v2 API requires numeric space IDs for filtering. The CLI resolves keys automatically, which costs one extra API call on pages --space and create --space. Page body is HTML — The Confluence storage format uses HTML. The CLI strips HTML tags for display and returns raw HTML in --json output (up to 5000 chars). Creating pages with rich formatting requires valid HTML. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills magnus919/confluence-cli