atlassian-cli by blitzer207/blitzer-skills
npx skills add https://github.com/blitzer207/blitzer-skills --skill atlassian-cli涵盖用于 Jira、Confluence 和 Bitbucket 日常操作的三个 CLI 工具:
| 工具 | 命令 | 用途 | 平台 |
|---|---|---|---|
| jira-cli (ankitpokhrel) | jira | 问题、史诗、冲刺 | Jira Cloud |
| confluence-cli (pchuri) | confluence | 页面、评论、附件 | Confluence Cloud |
| bitbucket-cli (avivsinai) | bkt | 仓库、PR、分支、流水线 | Bitbucket Cloud + Data Center |
详细命令参考,请查阅:
Covers three CLI tools for Jira , Confluence , and Bitbucket daily operations:
| Tool | Command | Purpose | Platform |
|---|---|---|---|
| jira-cli (ankitpokhrel) | jira | Issues, epics, sprints | Jira Cloud |
| confluence-cli (pchuri) | confluence | Pages, comments, attachments | Confluence Cloud |
| bitbucket-cli (avivsinai) | bkt | Repos, PRs, branches, pipelines | Bitbucket Cloud + Data Center |
For detailed command references, see:
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
references/jira-cli.md — 完整的 Jira CLI 命令参考references/confluence-cli.md — 完整的 Confluence CLI 命令参考references/bkt-commands.md — 完整的 Bitbucket CLI 命令参考# Windows 安装
# 1. 从 https://github.com/ankitpokhrel/jira-cli/releases 下载最新版本
# 2. 解压并将 jira.exe 添加到 PATH
# 3. 使用 `jira version` 验证
# 通过 npm 安装(需要 Node.js ≥16)
npm install -g confluence-cli
# 验证
confluence --version
# macOS/Linux — 通过 Homebrew
brew install avivsinai/tap/bitbucket-cli
# Windows — 通过 Scoop
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli
# Go
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@latest
# 验证
bkt --version
# 1. 获取 API 令牌:https://id.atlassian.com/manage-profile/security/api-tokens
export JIRA_API_TOKEN="your_token_here" # 添加到 ~/.zshrc 或 ~/.bashrc
# 2. 初始化配置(交互式向导)
jira init
# → 选择:Cloud
# → 输入:your-domain.atlassian.net ← 不带 https:// 前缀
# → 输入:你的邮箱
# → 输入:默认项目键(例如 DEV)
配置保存至:~/.config/.jira/.config.yml
# 1. 获取 API 令牌:https://id.atlassian.com/manage-profile/security/api-tokens
# 2. 运行交互式设置
confluence init
# → 协议: HTTPS
# → Confluence 域名: your-domain.atlassian.net ← 不带 https:// 前缀
# → REST API 路径: /wiki/rest/api
# → 认证方法: Basic (credentials)
# → 邮箱: your@email.com
# → API 令牌: your_token_here
配置保存至:~/.confluence-cli/config.json
# 1. 创建 API 令牌:https://id.atlassian.com/manage-profile/security/api-tokens
# 选择 "Bitbucket" 作为应用,所需范围:Account: Read
# 2. 登录
bkt auth login https://bitbucket.org --kind cloud --username your@email.com --token <api-token>
# 3. 创建上下文
bkt context create cloud-team --host bitbucket.org --workspace myworkspace --set-active
# 检查状态
bkt auth status
bkt auth login https://bitbucket.example.com --username alice --token <PAT>
bkt context create dc-prod --host bitbucket.example.com --project ABC --set-active
完整标志详情请参阅
references/jira-cli.md。
# --- 查询 ---
jira issue list # 列出问题(当前项目)
jira issue list -p PROJ # 指定项目
jira issue list -a$(jira me) # 分配给我的
jira issue list -s"In Progress" # 按状态
jira issue list --jql "project=DEV AND priority=High AND updatedDate > -7d"
jira issue view DEV-123 # 查看问题详情
jira issue view DEV-123 --plain # 纯文本输出
# --- 创建 ---
jira issue create -p DEV -t Bug -s "Fix login crash"
jira issue create -p DEV -t Story -s "User auth" -b "Description here" --priority High
jira issue create # 交互式向导
# --- 更新 ---
jira issue edit DEV-123 -s "New title" --no-input
jira issue assign DEV-123 myusername
jira issue assign DEV-123 x # 取消分配
# --- 状态转换 ---
jira issue move DEV-123 "In Progress"
jira issue move DEV-123 "Done"
# --- 评论 ---
jira issue comment add DEV-123 -m "Deployed to staging"
# --- 史诗与冲刺 ---
jira epic list -p DEV
jira epic create -p DEV -s "Q3 Auth Epic"
jira sprint list -p DEV
jira sprint add SPRINT_ID DEV-123 DEV-124
完整标志详情请参阅
references/confluence-cli.md。
# --- 读取与搜索 ---
confluence read 123456789 # 按 ID 读取页面
confluence read 123456789 --format markdown # 以 markdown 格式输出
confluence search "deployment guide" --limit 10
# --- 创建与更新 ---
confluence create --space DEV --title "My Page" --file page.md
confluence create --space DEV --title "Notes" --file notes.md --parent 98765432
confluence update 123456789 --file updated.md
confluence update 123456789 --title "New Title" --file content.md
# --- 删除 ---
confluence delete 123456789 # 移至回收站
# --- 评论 ---
confluence comments 123456789 # 列出评论
confluence comment 123456789 --content "LGTM!" # 添加页脚评论
# --- 附件 ---
confluence attachments 123456789 # 列出附件
confluence attachments 123456789 --download --dest ./downloads
confluence attach 123456789 --file diagram.png # 上传附件
# --- 导出 / 备份 ---
confluence export 123456789 --dest ./backup/
完整标志详情请参阅
references/bkt-commands.md。
# --- 仓库 ---
bkt repo list
bkt repo view my-repo
bkt repo clone my-repo --ssh
bkt repo create new-repo --description "My service"
# --- 拉取请求 ---
bkt pr list --state OPEN
bkt pr view 42
bkt pr create --title "feat: add cache" --source feature/cache --target main --reviewer alice
bkt pr approve 42
bkt pr comment 42 --text "LGTM"
bkt pr merge 42
bkt pr checks 42 --wait # 等待 CI 完成
# --- 分支 ---
bkt branch list
bkt branch create feature/my-feature --from main
bkt branch delete feature/old-stuff
# --- 流水线(仅限 Cloud) ---
bkt pipeline run --ref main --var ENV=staging
bkt pipeline list
bkt pipeline logs <uuid>
# --- 输出 ---
bkt pr list --json | jq '.pull_requests[0].title' # 用于脚本的 JSON
bkt pr list --yaml # YAML 输出
for issue in DEV-101 DEV-102 DEV-103; do
jira issue move "$issue" "Done"
echo "Closed $issue"
done
jira issue list -a$(jira me) -s"To Do" --plain --no-headers \
--columns KEY,SUMMARY,PRIORITY > my-issues.txt
confluence create --space TEAM --title "Sprint 42 Notes" \
--file sprint42.md --parent 98765432
confluence update $PAGE_ID --file README.md --minor
bkt pr create --title "fix: crash on login" --source fix/login --target main
PR_ID=$(bkt pr list --state OPEN --json | jq '.[0].id')
bkt pr checks $PR_ID --wait --timeout 10m
jira issue list --jql "project=DEV AND updatedDate > -1d ORDER BY updated DESC"
jira issue list --jql "assignee=currentUser() AND issuetype=Bug AND status != Done"
jira issue list --jql "project=DEV AND sprint in openSprints()"
| 问题 | 工具 | 解决方案 |
|---|---|---|
401 Unauthorized | jira | 检查 JIRA_API_TOKEN 是否已导出;对于 Cloud,使用邮箱作为用户名 |
jira: command not found | jira | 将 $GOPATH/bin 或 $HOME/go/bin 添加到 $PATH |
confluence: command not found | confluence | 运行 npm install -g confluence-cli;检查 Node ≥16 |
输入的域名包含 https:// | confluence | 重新运行 confluence init;仅输入 your-domain.atlassian.net |
403 Forbidden | confluence | API 令牌过期或错误;使用 curl -u email:token URL 测试 |
bkt: command not found | bkt | 重新安装;检查 $PATH 是否包含 Go bin 或 Scoop shims |
keyring timeout | bkt | 设置 BKT_KEYRING_TIMEOUT=2m 或 BKT_ALLOW_INSECURE_STORE=1 |
| 项目/工作空间错误 | 任意 | 使用显式标志:-p PROJECT、--workspace WORKSPACE、--context NAME |
| 页面未找到 | confluence | 从 URL 验证页面 ID:.../pages/PAGE_ID/... |
每周安装数
1
仓库
首次出现
1 天前
安全审计
安装于
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1
references/jira-cli.md — full Jira CLI command referencereferences/confluence-cli.md — full Confluence CLI command referencereferences/bkt-commands.md — full Bitbucket CLI command reference# Windows install
# 1. Download latest release from https://github.com/ankitpokhrel/jira-cli/releases
# 2. Unzip and add jira.exe to PATH
# 3. verify with `jira version`
# Via npm (requires Node.js ≥16)
npm install -g confluence-cli
# Verify
confluence --version
# macOS/Linux — via Homebrew
brew install avivsinai/tap/bitbucket-cli
# Windows — via Scoop
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli
# Go
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@latest
# Verify
bkt --version
# 1. Get API token: https://id.atlassian.com/manage-profile/security/api-tokens
export JIRA_API_TOKEN="your_token_here" # add to ~/.zshrc or ~/.bashrc
# 2. Initialize config (interactive wizard)
jira init
# → Select: Cloud
# → Enter: your-domain.atlassian.net ← no https:// prefix
# → Enter: your email
# → Enter: default project key (e.g. DEV)
Config saved to: ~/.config/.jira/.config.yml
# 1. Get API token: https://id.atlassian.com/manage-profile/security/api-tokens
# 2. Run interactive setup
confluence init
# → Protocol: HTTPS
# → Confluence domain: your-domain.atlassian.net ← no https:// prefix
# → REST API path: /wiki/rest/api
# → Auth method: Basic (credentials)
# → Email: your@email.com
# → API token: your_token_here
Config saved to: ~/.confluence-cli/config.json
# 1. Create API token: https://id.atlassian.com/manage-profile/security/api-tokens
# Select "Bitbucket" as application, required scope: Account: Read
# 2. Login
bkt auth login https://bitbucket.org --kind cloud --username your@email.com --token <api-token>
# 3. Create context
bkt context create cloud-team --host bitbucket.org --workspace myworkspace --set-active
# Check status
bkt auth status
bkt auth login https://bitbucket.example.com --username alice --token <PAT>
bkt context create dc-prod --host bitbucket.example.com --project ABC --set-active
See
references/jira-cli.mdfor full flag details.
# --- QUERY ---
jira issue list # list issues (current project)
jira issue list -p PROJ # specific project
jira issue list -a$(jira me) # assigned to me
jira issue list -s"In Progress" # by status
jira issue list --jql "project=DEV AND priority=High AND updatedDate > -7d"
jira issue view DEV-123 # view issue detail
jira issue view DEV-123 --plain # plain text output
# --- CREATE ---
jira issue create -p DEV -t Bug -s "Fix login crash"
jira issue create -p DEV -t Story -s "User auth" -b "Description here" --priority High
jira issue create # interactive wizard
# --- UPDATE ---
jira issue edit DEV-123 -s "New title" --no-input
jira issue assign DEV-123 myusername
jira issue assign DEV-123 x # unassign
# --- TRANSITIONS ---
jira issue move DEV-123 "In Progress"
jira issue move DEV-123 "Done"
# --- COMMENTS ---
jira issue comment add DEV-123 -m "Deployed to staging"
# --- EPICS & SPRINTS ---
jira epic list -p DEV
jira epic create -p DEV -s "Q3 Auth Epic"
jira sprint list -p DEV
jira sprint add SPRINT_ID DEV-123 DEV-124
See
references/confluence-cli.mdfor full flag details.
# --- READ & SEARCH ---
confluence read 123456789 # read page by ID
confluence read 123456789 --format markdown # output as markdown
confluence search "deployment guide" --limit 10
# --- CREATE & UPDATE ---
confluence create --space DEV --title "My Page" --file page.md
confluence create --space DEV --title "Notes" --file notes.md --parent 98765432
confluence update 123456789 --file updated.md
confluence update 123456789 --title "New Title" --file content.md
# --- DELETE ---
confluence delete 123456789 # move to trash
# --- COMMENTS ---
confluence comments 123456789 # list comments
confluence comment 123456789 --content "LGTM!" # add footer comment
# --- ATTACHMENTS ---
confluence attachments 123456789 # list attachments
confluence attachments 123456789 --download --dest ./downloads
confluence attach 123456789 --file diagram.png # upload attachment
# --- EXPORT / BACKUP ---
confluence export 123456789 --dest ./backup/
See
references/bkt-commands.mdfor full flag details.
# --- REPOS ---
bkt repo list
bkt repo view my-repo
bkt repo clone my-repo --ssh
bkt repo create new-repo --description "My service"
# --- PULL REQUESTS ---
bkt pr list --state OPEN
bkt pr view 42
bkt pr create --title "feat: add cache" --source feature/cache --target main --reviewer alice
bkt pr approve 42
bkt pr comment 42 --text "LGTM"
bkt pr merge 42
bkt pr checks 42 --wait # wait for CI to complete
# --- BRANCHES ---
bkt branch list
bkt branch create feature/my-feature --from main
bkt branch delete feature/old-stuff
# --- PIPELINES (Cloud only) ---
bkt pipeline run --ref main --var ENV=staging
bkt pipeline list
bkt pipeline logs <uuid>
# --- OUTPUT ---
bkt pr list --json | jq '.pull_requests[0].title' # JSON for scripting
bkt pr list --yaml # YAML output
for issue in DEV-101 DEV-102 DEV-103; do
jira issue move "$issue" "Done"
echo "Closed $issue"
done
jira issue list -a$(jira me) -s"To Do" --plain --no-headers \
--columns KEY,SUMMARY,PRIORITY > my-issues.txt
confluence create --space TEAM --title "Sprint 42 Notes" \
--file sprint42.md --parent 98765432
confluence update $PAGE_ID --file README.md --minor
bkt pr create --title "fix: crash on login" --source fix/login --target main
PR_ID=$(bkt pr list --state OPEN --json | jq '.[0].id')
bkt pr checks $PR_ID --wait --timeout 10m
jira issue list --jql "project=DEV AND updatedDate > -1d ORDER BY updated DESC"
jira issue list --jql "assignee=currentUser() AND issuetype=Bug AND status != Done"
jira issue list --jql "project=DEV AND sprint in openSprints()"
| Problem | Tool | Solution |
|---|---|---|
401 Unauthorized | jira | Check JIRA_API_TOKEN is exported; use email as username for Cloud |
jira: command not found | jira | Add $GOPATH/bin or $HOME/go/bin to $PATH |
confluence: command not found | confluence | Run npm install -g confluence-cli; check Node ≥16 |
Domain entered with https:// | confluence | Re-run confluence init; enter only your-domain.atlassian.net |
403 Forbidden | confluence | API token expired or wrong; test with curl -u email:token URL |
bkt: command not found | bkt | Re-install; check $PATH includes Go bin or Scoop shims |
keyring timeout | bkt | Set BKT_KEYRING_TIMEOUT=2m or BKT_ALLOW_INSECURE_STORE=1 |
| Wrong project/workspace | any | Use explicit flags: -p PROJECT, --workspace WORKSPACE, --context NAME |
| Page not found | confluence | Verify page ID from URL: .../pages/PAGE_ID/... |
Weekly Installs
1
Repository
First Seen
1 day ago
Security Audits
Installed on
amp1
cline1
opencode1
cursor1
kimi-cli1
codex1
Azure 升级评估与自动化工具 - 轻松迁移 Functions 计划、托管层级和 SKU
79,900 周安装