OpenViSTAI · Agents · Blockchain · Crypto
Menu
Developer Tools

bkt

bkt is an open-source Go command-line interface for Bitbucket Cloud and Bitbucket Data Center. It supports developer workflows such as authenticating, choosing a workspace or project context, and listing or creating pull requests, with stable JSON and YAML output contracts for automation.

Independent OpenViST project profile, based on linked sources.

bkt — Teams working across Bitbucket Cloud and Data Center with one CLI
OpenViST project illustration. See the linked sources for product details.
Understand the project

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.
Before you choose

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.

Source-based practical guide

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

  1. Install bkt using a method documented in the README.

  2. Run bkt auth login https://bitbucket.org --kind cloud --web and approve access in the browser.

  3. Create and activate a workspace context with bkt context create cloud --host api.bitbucket.org --workspace myteam --set-active, replacing myteam with 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.
Source-based practical guide

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

  1. List your pull requests with bkt pr list --mine.

  2. 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.
Evidence and transparency

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