Confluence CLI Setup Confluence can be configured headlessly with `kosmokrator integrations:configure confluence`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure confluence --set api_token=" $CONFLUENCE_API_TOKEN " --set base_url=" $CONFLUENCE_BASE_URL " --enable --read allow --write ask --json
kosmokrator integrations:doctor confluence --json
kosmokrator integrations:status --json Credentials
Authentication type: API token api_token. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call Confluence Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call confluence.confluence_create_page '{
"space_key": "example_space_key",
"title": "example_title",
"body": "example_body",
"parent_id": "example_parent_id",
"type": "example_type"
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:confluence confluence_create_page '{
"space_key": "example_space_key",
"title": "example_title",
"body": "example_body",
"parent_id": "example_parent_id",
"type": "example_type"
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs confluence --json
kosmo integrations:docs confluence.confluence_create_page --json
kosmo integrations:schema confluence.confluence_create_page --json
kosmo integrations:search "Confluence" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to Confluence.
confluence.confluence_create_page Write write Create a new page in a Confluence space. Requires space_key, title, and body (HTML). Optionally specify a parent page ID.
space_key, title, body, parent_id, type kosmo integrations:call confluence.confluence_create_page '{"space_key":"example_space_key","title":"example_title","body":"example_body","parent_id":"example_parent_id","type":"example_type"}' --json copy kosmo integrations:confluence confluence_create_page '{"space_key":"example_space_key","title":"example_title","body":"example_body","parent_id":"example_parent_id","type":"example_type"}' --json copy
confluence.confluence_get_page Read read Get details for a specific Confluence page by ID. Returns title, body, version, space, and other metadata.
page_id, expand kosmo integrations:call confluence.confluence_get_page '{"page_id":"example_page_id","expand":"example_expand"}' --json copy kosmo integrations:confluence confluence_get_page '{"page_id":"example_page_id","expand":"example_expand"}' --json copy
confluence.confluence_update_page Write write Update an existing Confluence page. Requires page_id, title, body, and the new version number (current version + 1).
page_id, title, body, version, status kosmo integrations:call confluence.confluence_update_page '{"page_id":"example_page_id","title":"example_title","body":"example_body","version":1,"status":"example_status"}' --json copy kosmo integrations:confluence confluence_update_page '{"page_id":"example_page_id","title":"example_title","body":"example_body","version":1,"status":"example_status"}' --json copy
confluence.confluence_delete_page Write write Delete a Confluence page by its ID. This action moves the page to the trash.
page_id kosmo integrations:call confluence.confluence_delete_page '{"page_id":"example_page_id"}' --json copy kosmo integrations:confluence confluence_delete_page '{"page_id":"example_page_id"}' --json copy
confluence.confluence_search_pages Read read Search for Confluence content using CQL (Confluence Query Language). Examples: 'title = "My Page"', 'space = "DEV" and type = "page"'.
cql, limit, start, expand kosmo integrations:call confluence.confluence_search_pages '{"cql":"example_cql","limit":1,"start":1,"expand":"example_expand"}' --json copy kosmo integrations:confluence confluence_search_pages '{"cql":"example_cql","limit":1,"start":1,"expand":"example_expand"}' --json copy
confluence.confluence_get_page_ancestors Read read Get the ancestor (parent) pages of a Confluence page by its ID. Returns the full ancestor hierarchy.
page_id kosmo integrations:call confluence.confluence_get_page_ancestors '{"page_id":"example_page_id"}' --json copy kosmo integrations:confluence confluence_get_page_ancestors '{"page_id":"example_page_id"}' --json copy
confluence.confluence_get_page_children Read read Get the child pages of a Confluence page by its ID. Supports pagination and property expansion.
page_id, limit, start, expand kosmo integrations:call confluence.confluence_get_page_children '{"page_id":"example_page_id","limit":1,"start":1,"expand":"example_expand"}' --json copy kosmo integrations:confluence confluence_get_page_children '{"page_id":"example_page_id","limit":1,"start":1,"expand":"example_expand"}' --json copy
confluence.confluence_get_spaces Read read List Confluence spaces accessible to the authenticated user. Supports pagination and filtering by type and status.
limit, start, type, status kosmo integrations:call confluence.confluence_get_spaces '{"limit":1,"start":1,"type":"example_type","status":"example_status"}' --json copy kosmo integrations:confluence confluence_get_spaces '{"limit":1,"start":1,"type":"example_type","status":"example_status"}' --json copy
confluence.confluence_get_space Read read Get details for a specific Confluence space by its key.
space_key kosmo integrations:call confluence.confluence_get_space '{"space_key":"example_space_key"}' --json copy kosmo integrations:confluence confluence_get_space '{"space_key":"example_space_key"}' --json copy
confluence.confluence_get_labels Read read Get the labels attached to a Confluence page by its ID.
page_id kosmo integrations:call confluence.confluence_get_labels '{"page_id":"example_page_id"}' --json copy kosmo integrations:confluence confluence_get_labels '{"page_id":"example_page_id"}' --json copy
confluence.confluence_add_labels Write write Add one or more labels to a Confluence page. Labels are provided as an array of name strings.
page_id, labels kosmo integrations:call confluence.confluence_add_labels '{"page_id":"example_page_id","labels":"example_labels"}' --json copy kosmo integrations:confluence confluence_add_labels '{"page_id":"example_page_id","labels":"example_labels"}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Write write
Schema command kosmo integrations:schema confluence.confluence_create_page --json
Operation Read read
Schema command kosmo integrations:schema confluence.confluence_get_page --json
Operation Write write
Schema command kosmo integrations:schema confluence.confluence_update_page --json
Operation Write write
Schema command kosmo integrations:schema confluence.confluence_delete_page --json
Operation Read read
Schema command kosmo integrations:schema confluence.confluence_search_pages --json
Operation Read read
Schema command kosmo integrations:schema confluence.confluence_get_page_ancestors --json
Operation Read read
Schema command kosmo integrations:schema confluence.confluence_get_page_children --json
Operation Write write
Schema command kosmo integrations:schema confluence.confluence_add_comment --json
Operation Read read
Schema command kosmo integrations:schema confluence.confluence_get_spaces --json
Operation Read read
Schema command kosmo integrations:schema confluence.confluence_get_space --json
Operation Read read
Schema command kosmo integrations:schema confluence.confluence_get_labels --json
Operation Write write
Schema command kosmo integrations:schema confluence.confluence_add_labels --json Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.