Practical overview
When it fits
Use bkt when a Bitbucket task needs a terminal workflow, a scriptable command interface, or a documented route for coding-agent workflows.
Who it is for
- Developers who manage Bitbucket repositories from a terminal.
- Teams scripting Bitbucket Cloud or Data Center workflows.
- Coding-agent builders seeking a documented CLI, agent skill and MCP server for Bitbucket work.
Documented uses
- Authenticate to a Bitbucket host and set an active workspace or project context.
- List and create pull requests through CLI commands.
- Use structured JSON or YAML command output in automation.
Requirements & limits
The repository is public and licensed under MIT. The README documents installation for macOS, Linux and Windows, among other methods; installing from source with Go requires Go 1.26 or later.
- Cloud login can use browser OAuth or an API token; Data Center authentication uses a Personal Access Token.
- Token scopes must match the intended operations, with additional permissions needed for repository administration and pipeline, variable or webhook tasks.
- Credentials are stored in the operating system keychain; Linux environments without a keychain require the documented insecure-store option.
- Inside a clone, repository and workspace or project details can be inferred from a Git remote when it points to the active context's host.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Set up bkt for Bitbucket Cloud
Install bkt, authenticate to Bitbucket Cloud, and select a workspace context for CLI work.
Before you start
- A supported installation route, such as Homebrew, WinGet, Scoop, Go 1.26+, Nix, or a release package.
- A Bitbucket Cloud account and access to the target workspace.
Steps
Install bkt using a method documented in the README.
Run
bkt auth login https://bitbucket.org --kind cloud --weband approve access in the browser.Create and activate a workspace context with
bkt context create cloud --host api.bitbucket.org --workspace myteam --set-active, replacingmyteamwith the workspace.
Expected outcome
bkt is authenticated to Bitbucket Cloud and has an active workspace context for subsequent commands.
Guide limitations
- The example assumes browser-based OAuth; API-token authentication is also documented.
- Token scopes depend on the operations you intend to perform.
List and create a pull request
Use the documented pull-request commands after setting an active Bitbucket context.
Before you start
- bkt installed and authenticated.
- An active Cloud or Data Center context.
- A source branch and target branch for creating a pull request.
Steps
List your pull requests with
bkt pr list --mine.Create a pull request with
bkt pr create --title "feat: cache" --source feature/cache --target main, substituting the title and branch names.
Expected outcome
The documented commands list the user's pull requests and submit a pull-request creation request between the specified branches.
Guide limitations
- The README does not specify required review settings or additional repository-specific conditions.
- The account token must have pull-request read and write permissions for these operations.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 27 November 2026
- Original website title
- avivsinai/bitbucket-cli · Official homepage title · retained in its source language

