Confluence CLI for AI Agents

CLIs are eating MCPs. The industry is converging on the very same idea. MCPs for all their merit can be token hungry, slow, and unreliable for complex tool chaining. However, coding agents have become incredibly good at working with CLIs, and in fact they are far more comfortable working with CLI tools than MCP. With Composio's Universal CLI, your coding agents can talk to over 1000+ SaaS applications. With Confluence, agents can create a project documentation page in marketing space, add 'urgent' label to q3 planning page, publish team meeting summary as a blog post, and more — all without worrying about authentication. This guide walks you through Composio Universal CLI and explains how you can connect it with coding agents like Claude Code, Codex, OpenCode, etc, for end-to-end Confluence automation.

Confluence logoConfluence
Oauth2S2s Oauth2Api Key

Confluence is Atlassian's team collaboration and knowledge management platform. It helps your team organize, share, and update documents and project content in one secure workspace.

62 Tools23 Triggers

Introduction

CLIs are eating MCPs. The industry is converging on the very same idea. MCPs for all their merit can be token hungry, slow, and unreliable for complex tool chaining. However, coding agents have become incredibly good at working with CLIs, and in fact they are far more comfortable working with CLI tools than MCP.

With Composio's Universal CLI, your coding agents can talk to over 1000+ SaaS applications. With Confluence, agents can create a project documentation page in marketing space, add 'urgent' label to q3 planning page, publish team meeting summary as a blog post, and more — all without worrying about authentication.

This guide walks you through Composio Universal CLI and explains how you can connect it with coding agents like Claude Code, Codex, OpenCode, etc, for end-to-end Confluence automation.

Also integrate Confluence with

What is Universal CLI and why use it?

The idea behind building the universal CLI is to give agents a single command interface to interact with all your external applications. Here's what you'll get with it:

  • Agent-friendly: Coding agents like Claude Code, Codex, and OpenCode can use CLI tools natively — no MCP setup required.
  • Authentication handled: Connect once via OAuth or API Key, and all CLI commands work with your credentials automatically.
  • Tool discovery: Search, inspect, and execute 20,000+ tools across 1000+ apps from one interface.
  • Trigger support: Use triggers to listen for events across your apps, powered by real-time webhooks or polling under the hood.
  • Type generation: Generate typed schemas for autocomplete and type safety in your projects.

Prerequisites

Install the Composio CLI, authenticate, and initialize your project:

bash
# Install the Composio CLI
curl -fsSL https://composio.dev/install | bash

# Authenticate with Composio
composio login

During login you'll be redirected to sign in page, finish the complete flow and you're all set.

Composio CLI authentication flow

Connecting Confluence to Coding Agents via Universal CLI

Once it is installed, it's essentially done. Claude Code, Codex, OpenCode, OpenClaw, or any other agent will be able to access the CLI. A few steps to give agents access to your apps.

  1. Launch your Coding Agent — Claude Code, Codex, OpenCode, anything you prefer.
  2. Prompt it to "Authenticate with Confluence"
  3. Complete the authentication and authorization flow and your Confluence integration is all set.
  4. Start asking anything you want.

Universal CLI Commands for Confluence

You can also manually execute CLI commands to interact with your Confluence.

Connect your Confluence account

Link your Confluence account and verify the connection:

bash
# Connect your Confluence account (opens OAuth flow)
composio connected-accounts link confluence

# Verify the connection
composio connected-accounts list --toolkits confluence

Discover Confluence tools

Search and inspect available Confluence tools:

bash
# List all available Confluence tools
composio tools list --toolkit confluence

# Search for Confluence tools by action
composio tools search "confluence"

# Inspect a tool's input schema
composio tools info CONFLUENCE_ADD_CONTENT_LABEL

Common Confluence Actions

Add Content LabelTool to add labels to a piece of content

bash
composio tools execute CONFLUENCE_ADD_CONTENT_LABEL \
  --id "12345678-90ab-cdef-1234-567890abcdef" \
  --labels "<array>"

Get Space by IDTool to retrieve a confluence space by its id

bash
composio tools execute CONFLUENCE_CONFLUENCE_GET_SPACE_BY_ID \
  --id "6278fe1e-d18f-4b2c-8a1a-2c3d4e5f6g7h"

Create BlogpostTool to create a new confluence blog post

bash
composio tools execute CONFLUENCE_CREATE_BLOGPOST \
  --body "<object>" \
  --title "Quarterly Update" \
  --status "current" \
  --spaceId "5f8e8a1d0a7b9c"

Create Blogpost PropertyTool to create a property on a specified blog post

bash
composio tools execute CONFLUENCE_CREATE_BLOGPOST_PROPERTY \
  --id "6278fe1e-d18f-4b2c-8a1a-2c3d4e5f6g7h" \
  --key "customMeta" \
  --value '{"exampleKey":"exampleValue"}'

Set up Confluence Triggers

Listen for events in real time using triggers:

New Attachment AddedTriggers when a new attachment is uploaded to a Confluence page

bash
# Find your connected account ID
composio connected-accounts list --toolkits confluence

# Create a trigger
composio triggers create CONFLUENCE_ATTACHMENT_ADDED_TRIGGER \
  --connected-account-id <your-connected-account-id> \
  --trigger-config '{
  "limit": 25,
  "interval": 2,
  "mediaType": "image/jpeg"
}'

# Listen for trigger events in real time
composio triggers listen --toolkits confluence --table

Blog Post Added to LabelTriggers when a new blog post is added to a specific label in Confluence

bash
# Find your connected account ID
composio connected-accounts list --toolkits confluence

# Create a trigger
composio triggers create CONFLUENCE_BLOG_POST_ADDED_TO_LABEL_TRIGGER \
  --connected-account-id <your-connected-account-id> \
  --trigger-config '{
  "limit": 25,
  "interval": 2,
  "label_id": "50888706"
}'

# Listen for trigger events in real time
composio triggers listen --toolkits confluence --table

Blogpost Inline Comment AddedTriggers when a new inline comment is added to a Confluence blog post

bash
# Find your connected account ID
composio connected-accounts list --toolkits confluence

# Create a trigger
composio triggers create CONFLUENCE_BLOGPOST_INLINE_COMMENT_ADDED_TRIGGER \
  --connected-account-id <your-connected-account-id> \
  --trigger-config '{
  "interval": 2,
  "body_format": "storage",
  "blog_post_id": "123456789"
}'

# Listen for trigger events in real time
composio triggers listen --toolkits confluence --table

Generate Type Definitions

Generate typed schemas for Confluence tools to get autocomplete and type safety in your project:

bash
# Auto-detect language
composio generate --toolkits confluence

# TypeScript
composio ts generate --toolkits confluence

# Python
composio py generate --toolkits confluence

Tips & Tricks

  • Always inspect a tool's input schema before executing: composio tools info <TOOL_NAME>
  • Pipe output with jq for better readability: composio tools execute TOOL_NAME -d '{}' | jq
  • Set COMPOSIO_API_KEY as an environment variable for CI/CD pipelines
  • Use composio dev logs tools to inspect execution logs and debug issues

Next Steps

  • Try asking your coding agent to perform various Confluence operations
  • Explore cross-app workflows by connecting more toolkits
  • Set up triggers for real-time automation
  • Use composio generate for typed schemas in your projects
TOOLS & TRIGGERS

Supported Tools and Triggers

Every Confluence action and event your agent gets out of the box.

Add Content Label

Tool to add labels to a piece of content.

CQL Search

Searches for content in Confluence using Confluence Query Language (CQL).

Create Blogpost

Tool to create a new Confluence blog post.

Create Blogpost Property

Tool to create a property on a specified blog post.

Create Whiteboard Property

Tool to create a new content property on a whiteboard.

Create Footer Comment

Tool to create a footer comment on a Confluence page, blog post, attachment, or custom content.

Create Page

Tool to create a new Confluence page in a specified space.

Create Page Property

Tool to create a property on a Confluence page.

Create Private Space

Tool to create a private Confluence space.

Create Space

Tool to create a new Confluence space.

Create Space Property

Tool to create a new property on a Confluence space.

Create Whiteboard

Tool to create a new Confluence whiteboard.

Delete Blogpost Property

Tool to delete a blog post property.

Delete Page Content Property

Tool to delete a content property from a page by property ID.

Delete Whiteboard Content Property

Tool to delete a content property from a whiteboard by property ID.

Delete Page

Tool to delete a Confluence page.

Delete Space

Tool to delete a Confluence space by its key.

Delete Space Property

Tool to delete a space property.

Download Attachment

Downloads an attachment from a Confluence page and returns a publicly accessible S3 URL.

Get Attachment Labels

Tool to list labels on an attachment.

Get Attachments

Tool to retrieve attachments of a Confluence page.

Get Audit Logs

Tool to retrieve Confluence audit records.

Get Blogpost by ID

Tool to retrieve a specific Confluence blog post by its ID.

Get Blogpost Labels

Tool to retrieve labels of a specific Confluence blog post by ID.

Get Blogpost Like Count

Tool to get like count for a Confluence blog post.

Get Blogpost Operations

Tool to retrieve permitted operations for a Confluence blog post.

Get Blog Posts

Tool to retrieve a list of blog posts.

Get Blog Posts For Label

Tool to list all blog posts under a specific label.

Get Blogpost Version Details

Tool to retrieve details for a specific version of a blog post.

Get Blogpost Versions

Tool to retrieve all versions of a specific blog post.

Get Child Pages

Tool to list all direct child pages of a given Confluence page.

Get Blog Post Content Properties

Tool to retrieve all content properties on a blog post.

Get Page Content Properties

Tool to retrieve all content properties on a page.

Get Content Restrictions

Tool to retrieve restrictions on a Confluence content item.

Get Current User

Tool to get information about the currently authenticated user — always scoped to the account tied to the configured connection, not arbitrary users.

Get Inline Comments for Blog Post

Tool to retrieve inline comments for a Confluence blog post.

Get Labels

Tool to retrieve all labels in a Confluence site; use for label discovery when you need to list or page through labels.

Get Page Labels

Tool to retrieve labels of a specific Confluence page by ID.

Get Labels for Space

Tool to list labels on a space.

Get Labels for Space Content

Tool to list labels on all content in a space.

Get Page Ancestors

Tool to retrieve all ancestors for a given Confluence page by its ID.

Get Page by ID

Tool to retrieve a Confluence page by its ID.

Get Page Footer Comments

Tool to retrieve footer (non-inline) comments for a Confluence page.

Get Page Inline Comments

Tool to retrieve inline comments for a Confluence page.

Get Page Like Count

Tool to get like count for a Confluence page.

Get Pages

Tool to retrieve a paginated list of Confluence pages.

Get Page Versions

Tool to retrieve all versions of a specific Confluence page.

Get Space by ID

Tool to retrieve a Confluence space by its ID.

Get Space Contents

Tool to retrieve content in a Confluence space.

Get Space Properties

Tool to get properties of a Confluence space.

Get Spaces

Tool to retrieve a paginated list of Confluence spaces with optional filtering.

Get Tasks

Tool to list Confluence tasks (action items) with filtering by assignee, creator, space, page, blog post, status, and dates.

Get Anonymous User

Tool to retrieve information about the anonymous user.

Search Content

Searches for content by filtering pages from the Confluence v2 API with intelligent ranking.

Search Users

Searches for users using user-specific queries from the Confluence Query Language (CQL).

Update Blogpost

Tool to update a Confluence blog post's title or content.

Update Blogpost Property

Tool to update a property of a specified blog post.

Update Page Content Property

Tool to update a content property on a Confluence page.

Update Whiteboard Content Property

Tool to update a content property on a whiteboard.

Update Page

Tool to update an existing Confluence page, replacing the entire page content.

Update Space Property

Tool to update a space property.

Update Task

Tool to update a Confluence task status.

FAQ

Frequently asked questions

The Composio Universal CLI is a single command-line interface that lets coding agents and developers interact with 1000+ SaaS applications. It handles authentication, tool discovery, action execution, and trigger setup — all from the terminal, without needing to configure MCP servers.

Any coding agent that can run shell commands works with the Composio CLI — including Claude Code, Codex, OpenCode, OpenClaw, and others. Once the CLI is installed, agents automatically discover and use the composio commands to interact with Confluence and other connected apps.

MCP servers require configuration and can be token-heavy for complex workflows. The CLI gives agents a direct, lightweight interface — no server setup needed. Agents simply call composio commands like any other shell tool. It's faster to set up, more reliable for multi-step tool chaining, and works natively with how coding agents already operate.

All sensitive data such as tokens, keys, and configuration is fully encrypted at rest and in transit. Composio is SOC 2 Type 2 compliant and follows strict security practices so your Confluence data and credentials are handled as safely as possible. You can also bring your own OAuth credentials for full control.

Start with Confluence.It takes 30 seconds.

Managed auth, hosted MCP servers, and every Confluence tool your agent needs.Free to start.

Start building