AB

avivsinai/bitbucket-cli

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

248 stars 质量 72 趋势 38MIT

带有类似 gh 的人体工学的 Bitbucket CLI

概览

为开发者、编码代理和自动化优先团队打造的Bitbucket云与数据中心工作流程。 bkt 是一个独立的 Bitbucket 命令行接口,面向 Bitbucket 数据中心 Bitbucket 云。它镜像 gh 的人体工学,并提供一致的 JSON/YAML 合同以实现自动化。 该项目(github.com/avivsinai/bitbucket-cli,二进制 bkt)与 Rust bkt 子进程缓存工具、Bitbucket Enterprise CLI 及其他同名 bitbucket-cli 包无关。 将 bkt 导入 Claude Code、Codex 及其他编码代理或 shell 脚本,它们继承结构化输出、可预测的标志和安全默认值——无需粘合代码。 这样会把 bkt 安装到 $GOPATH/bin(或默认是 $HOME/go/bin)。确保目录在你的 $PATH 里。 运行最新的母带,无需安装: 通过附加引用(例如 github:avivsinai/bitbucket-cli/v1.2.3)钉住特定标签或提交。 还没拿到尼克斯?看看尼克索斯。

概述(AI 翻译)

为开发者、编码代理和自动化优先团队打造的Bitbucket云与数据中心工作流程。

bkt 是 Bitbucket Cloud ** 和 Bitbucket Data Center 的一个命令行接口。它遵循 gh 的人体工学设计,为每个命令提供稳定的 JSON/YAML 输出合同,并附带代理技能和 MCP 服务器,使编码代理也能与 Bitbucket 合作。

该项目(github.com/avivsinai/bitbucket-cli,二进制bkt)与Rust的bkt子进程缓存工具、Bitbucket Enterprise CLI及其他名为bitbucket-cli的包无关。

快速开始

在克隆中,bkt 会从远程节点获取工作区或项目和仓库,当远程指向当前上下文的主机时。

安装

平台 指挥
macOS / Linux(自制核心) brew install bitbucket-cli
Windows(WinGet) winget install AvivSinai.Bitbucket-CLI
Windows(Scoop) scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket``scoop install bitbucket-cli
Go 1.26+ go install github.com/avivsinai/bitbucket-cli/cmd/bkt@latest
尼克斯(薄片) nix profile install github:avivsinai/bitbucket-cli

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

bkt – Bitbucket CLI

Bitbucket Cloud & Data Center workflows for developers, coding agents, and automation-first teams.

bkt is one command-line interface for Bitbucket Cloud and Bitbucket Data Center. It follows the ergonomics of gh, gives every command a stable JSON/YAML output contract, and ships an agent skill and an MCP server so coding agents can work with Bitbucket too.

This project (github.com/avivsinai/bitbucket-cli, binary bkt) is unrelated to the Rust bkt subprocess-caching tool, the Bitbucket Enterprise CLI, and other packages named bitbucket-cli.

Quick start

brew install bitbucket-cli

# Bitbucket Cloud: log in through your browser
bkt auth login https://bitbucket.org --kind cloud --web
bkt context create cloud --host api.bitbucket.org --workspace myteam --set-active

# Bitbucket Data Center: paste a Personal Access Token
bkt auth login https://bitbucket.example.com --web-token
bkt context create dc --host bitbucket.example.com --project ABC --set-active

bkt pr list --mine
bkt pr create --title "feat: cache" --source feature/cache --target main

Inside a clone, bkt takes the workspace or project and the repository from the git remote when the remote points at the active context’s host.

Install

Platform Command
macOS / Linux (Homebrew core) brew install bitbucket-cli
Windows (WinGet) winget install AvivSinai.Bitbucket-CLI
Windows (Scoop) scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket``scoop install bitbucket-cli
Go 1.26+ go install github.com/avivsinai/bitbucket-cli/cmd/bkt@latest
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add avivsinai/bitbucket-cli
新手?先看 mcpskill.org 教程 →