CLI Overview
ctk provides a traditional command-line interface alongside its MCP server mode.
All CLI commands support a --json flag for raw JSON output.
Global Flags
Section titled “Global Flags”| Flag | Description |
|---|---|
--json | Output raw JSON instead of formatted tables |
--version | Print the ctk version |
--help | Show help for any command |
Commands
Section titled “Commands” ctk auth Login, status, logout, and environment variable config
ctk mcp Start the MCP server (stdio or HTTP)
ctk spaces List and get Confluence spaces
ctk pages Full page lifecycle: get, list, create, update, diff, comment
ctk folders List, get, and navigate Confluence folders
ctk search Search with CQL or quick text
ctk labels List, add, and remove labels on pages
ctk attachments List and download page attachments
ctk users Get current user and search users
ctk comments List footer and inline comments on pages
Output Modes
Section titled “Output Modes”By default, ctk outputs human-readable formatted tables. Use --json for raw JSON:
# Formatted table outputctk spaces list
# Raw JSON outputctk spaces list --json