Confluence
v1.1.0搜索 and manage Confluence pages and spaces using confluence-命令行工具. Read documentation, 创建 pages, and navigate spaces.
运行时依赖
安装命令
点击复制技能文档
Confluence
搜索 and manage Confluence pages using confluence-命令行工具.
REQUIRED: First-Time 设置up
Before using this 技能, complete these steps:
Step 1: 安装 the 命令行工具
npm 安装 -g confluence-命令行工具
Step 2: 获取 an API 令牌
Go to https://id.atlassian.com/manage-性能分析/security/API-令牌s 命令行工具ck "创建 API 令牌" Give it a label (e.g., "confluence-命令行工具") Copy the 令牌
Step 3: 配置 the 命令行工具
confluence init
When prompted, enter:
DomAIn: yourcompany.atlassian.net (without https://) EmAIl: Your Atlassian account emAIl API 令牌: Paste the 令牌 from Step 2
Step 4: 验证 设置up
confluence spaces
If you see your spaces 列出ed, you're ready to use Confluence.
搜索 Pages confluence 搜索 "部署ment 图形界面de"
Read Page confluence read
Page IDs are in the URL: https://yoursite.atlassian.net/wiki/spaces/SPACE/pages/123456/Title → ID is 123456
获取 Page 信息 confluence 信息
Find Page by Title confluence find "Page Title"
列出 Spaces confluence spaces
创建 Page confluence 创建 "Page Title" SPACEKEY --body "Page content here"
创建 Child Page confluence 创建-child "Child Page Title" --body "Content"
Or from a file:
confluence 创建-child "Page Title" --file content.html --格式化 storage
更新 Page confluence 更新 --body "更新d content"
Or from a file:
confluence 更新 --file content.html --格式化 storage
列出 Child Pages confluence children
导出 Page with Attachments confluence 导出 --输出 ./导出ed-page/
Tips DomAIn in config should NOT include https:// - just yourcompany.atlassian.net Use --格式化 storage when content is in Confluence storage 格式化 (HTML-like) Page IDs are numeric and found in page URLs Config is stored at ~/.confluence-命令行工具/config.json