Part of atlassian-cli

Confluence CLI

Manage pages, spaces, and exports from the terminal. CQL search, bulk backup, markdown sync, and attachment handling.

Confluence Features

Everything you need to manage Confluence from the command line

Space & Page Management

Create, update, move, and delete pages and spaces. Manage page hierarchies, labels, and permissions from the terminal.

CQL Search

Search pages and blog posts with full CQL support. Filter by space, type, label, contributor, and last modified date.

Bulk Export & Backup

Export entire spaces with pages, blog posts, and attachments. Create timestamped backups with manifest metadata.

Attachment Handling

List, upload, download, and delete attachments. Bulk download all attachments from a page or space backup.

Blog Post Management

Create, update, and export blog posts. Manage blog content alongside pages in automated documentation pipelines.

Page Analytics

Retrieve page view counts, contributor history, and version metadata. Track content freshness and engagement.

Real Commands

Actual CLI commands from production runbooks

Backup Space with Attachments

# Export all pages from a space
atlassian-cli confluence bulk export \
  --profile prod \
  --cql "space = DOCS AND type = page" \
  --output pages.json \
  --format json

# Get space metadata
atlassian-cli confluence space get \
  --profile prod \
  DOCS \
  --output json

# List and download attachments
atlassian-cli confluence attachment list \
  --profile prod \
  123456 \
  --output json

Sync Markdown to Confluence

# Search for existing page by title
atlassian-cli confluence search cql \
  --output json \
  "space = DOCS AND title = \"API Reference\""

# Create a new page in a space
atlassian-cli confluence page create \
  --profile prod \
  --space DOCS \
  --title "API Reference"

# Update page content from file
atlassian-cli confluence page update \
  --profile prod \
  123456 \
  --title "API Reference" \
  --body content.html

# Add labels for organization
atlassian-cli confluence page add-label \
  --profile prod \
  123456 \
  "auto-generated" "documentation"

Quick Start

Install and start managing Confluence in under a minute

1. Install

# Homebrew (macOS & Linux)
brew install omar16100/atlassian-cli/atlassian-cli

# Or via Cargo
cargo install atlassian-cli

2. Authenticate

# Add your Confluence instance
atlassian-cli auth login \
  --profile work \
  --base-url your-domain.atlassian.net \
  --email you@company.com

# Verify connection
atlassian-cli auth test --profile work

3. Start using

# Search your Confluence space
atlassian-cli confluence search cql \
  --profile work \
  "space = DOCS AND type = page"
Copied!