Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
avivsinai avatar

Bkt

  • 1.4k installs
  • 180 repo stars
  • Updated August 2, 2026
  • avivsinai/bitbucket-cli

bkt provides documented workflows for Bitbucket CLI for Data Center and Cloud. Use when users need to manage repositories, pull requests, branches, issues, webhooks, or pipelines in Bitbucket. Trigg

About

The bkt skill bitbucket CLI for Data Center and Cloud Use when users need to manage repositories pull requests branches issues webhooks or pipelines in Bitbucket Triggers include bitbucket bkt pull request PR repo list branch create Bitbucket Data Center Bitbucket Cloud keyring timeout Bitbucket CLI bkt bkt is a unified CLI for Bitbucket Data Center and Bitbucket Cloud It mirrors gh ergonomics and provides structured JSON YAML output for automation Verify installation always check before running any bkt command bash bkt version If not installed Platform Command macOS Linux brew install avivsinai tap bitbucket-cli Windows 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 Binary Download from GitHub Releases https github com avivsinai bitbucket-cli releases 2 Check authentication most commands require an active session bash bkt auth status Bitbucket Cloud Token Requirements Create an API token with scopes not a general API token Select Bitbucket as the application Required scope Account Read read user bitbucket Additional

  • Create an "API token with scopes" (not a general API token)
  • Select **Bitbucket** as the application
  • Required scope: **Account: Read** (`read:user:bitbucket`)
  • Additional scopes as needed: Repositories, Pull requests, Issues
  • [headless / env vars](rules/headless.md) - Config-free CI/container auth (BKT_TOKEN, BKT_HOST) and full env var refere

Bkt by the numbers

  • 1,357 all-time installs (skills.sh)
  • +52 installs in the week ending Aug 4, 2026 (Skillselion tracking)
  • Ranked #338 of 2,203 Security skills by installs in the Skillselion catalog
  • Security screen: HIGH risk (skills.sh audit)
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

bkt capabilities & compatibility

Capabilities
create an "api token with scopes" (not a general · select **bitbucket** as the application · required scope: **account: read** (`read:user:bi · additional scopes as needed: repositories, pull · [headless / env vars](rules/headless.md) confi
Use cases
documentation
From the docs

What bkt says it does

# Bitbucket CLI (bkt) `bkt` is a unified CLI for **Bitbucket Data Center** and **Bitbucket Cloud**.
SKILL.md
It mirrors `gh` ergonomics and provides structured JSON/YAML output for automation.
SKILL.md
npx skills add https://github.com/avivsinai/bitbucket-cli --skill bkt

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1.4k
repo stars180
Security audit1 / 3 scanners passed
Last updatedAugust 2, 2026
Repositoryavivsinai/bitbucket-cli

How do I use bkt for the task described in its SKILL.md triggers?

Bitbucket CLI for Data Center and Cloud. Use when users need to manage repositories, pull requests, branches, issues, webhooks, or pipelines in Bitbucket. Triggers include "bitbucket", "bkt", "pull r.

Who is it for?

Teams invoking bkt when the user request matches documented triggers and prerequisites.

Skip if: Skip when cached docs are missing, the request is a negative trigger, or another sibling skill owns the workflow.

When should I use this skill?

Bitbucket CLI for Data Center and Cloud. Use when users need to manage repositories, pull requests, branches, issues, webhooks, or pipelines in Bitbucket. Triggers include "bitbucket", "bkt", "pull request", "PR", "repo

What you get

Step-by-step guidance grounded in bkt documentation and reference files.

  • Rotated server secrets
  • Updated logging configuration

By the numbers

  • Documents 3 admin subcommand areas: secrets rotate, logging get, and logging set

Files

SKILL.mdMarkdownGitHub ↗

Bitbucket CLI (bkt)

bkt is a unified CLI for Bitbucket Data Center and Bitbucket Cloud. It mirrors gh ergonomics and provides structured JSON/YAML output for automation.

Before You Start

1. Verify installation — always check before running any bkt command:

bkt --version

If not installed:

PlatformCommand
macOS/Linuxbrew install avivsinai/tap/bitbucket-cli
Windowsscoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket && scoop install bitbucket-cli
Gogo install github.com/avivsinai/bitbucket-cli/cmd/bkt@latest
BinaryDownload from GitHub Releases

2. Check authentication — most commands require an active session:

bkt auth status

Bitbucket Cloud Token Requirements:

  • Create an "API token with scopes" (not a general API token)
  • Select Bitbucket as the application
  • Required scope: Account: Read (read:user:bitbucket)
  • Additional scopes as needed: Repositories, Pull requests, Issues

For config-free use in containers and CI pipelines, see headless authentication.

If not authenticated, log in:

# Data Center (PAT-based)
bkt auth login https://bitbucket.example.com --username alice --token <PAT>

# Bitbucket Cloud — OAuth (official binaries open browser out of the box)
bkt auth login https://bitbucket.org --kind cloud --web

# Bitbucket Cloud — API token (--web-token opens Atlassian's token creation page)
bkt auth login https://bitbucket.org --kind cloud --web-token

For source and Nix builds, set BKT_OAUTH_CLIENT_ID and BKT_OAUTH_CLIENT_SECRET env vars before running --web.

3. Set up a context — contexts bind a host to a project/workspace and optional default repo, so you don't repeat flags on every command:

# Data Center
bkt context create dc-prod --host bitbucket.example.com --project ABC --set-active

# Cloud
bkt context create cloud-team --host bitbucket.org --workspace myteam --set-active

Platform Awareness

Some commands are Data Center only or Cloud only — check the command reference for *(DC)* and *(Cloud)* badges. Key splits:

FeatureData CenterCloud
Pull requestsyesyes
Repositoriesyesyes
Branches (list)yesyes
Branches (create/delete/protect)yes
Issuesyes
Pipelinesyes
Permissionsyes
Webhooksyesyes
Auto-merge, tasks, reactionsyes
Variablesyes

When a user's context is DC, do not suggest Cloud-only commands (and vice versa). If the platform is unknown, ask or check with bkt auth status.

Common Workflows

Create a PR from the current branch

bkt pr create --title "feat: add caching" --target main

Source branch, title, and target default to sensible values from git state. Add --draft for work-in-progress, --reviewer alice to request review.

Review cycle

bkt pr checks 42 --wait          # Wait for CI to pass
bkt pr approve 42                # Approve
bkt pr merge 42                  # Merge (closes source branch by default)

Checkout a colleague's PR locally

bkt pr checkout 42               # Creates pr/42 branch

Structured output for scripting

All commands support --json, --yaml, --jq, and --template:

bkt pr list --mine --json | jq '.pull_requests[].title'

Raw API escape hatch

For endpoints without a dedicated command:

bkt api /rest/api/1.0/projects --param limit=100 --json

Global Flags

Every command accepts these inherited flags:

FlagShortPurpose
--context-cUse a specific named context
--jsonJSON output
--yamlYAML output
--jqApply a jq expression (requires --json)
--templateRender with Go template

References

  • headless / env vars — Config-free CI/container auth (BKT_TOKEN, BKT_HOST) and full env var reference

<!-- auto-generated by cmd/docgen — do not edit below this line -->

  • admin — Administrative operations for Bitbucket (DC)
  • auth — Manage Bitbucket authentication credentials
  • branch — Inspect and manage branches
  • commit — Work with commits
  • context — Manage Bitbucket CLI contexts
  • extension — Manage bkt CLI extensions
  • issue — Work with Bitbucket Cloud issues (Cloud)
  • perms — Manage Bitbucket permissions (DC)
  • pipeline — Run and inspect Bitbucket Cloud pipelines (Cloud)
  • pr — Manage pull requests
  • project — Work with Bitbucket projects (DC)
  • repo — Work with Bitbucket repositories
  • status — Inspect commit and pull request statuses
  • variable — Manage pipeline variables (Cloud)
  • webhook — Manage Bitbucket webhooks
  • other — api

<!-- end auto-generated -->

Related skills

How it compares

Use bkt for Bitbucket Data Center server admin; use Git hosting REST clients when managing repositories and pull requests rather than on-prem server secrets and logging.

FAQ

What does bkt do?

Bitbucket CLI for Data Center and Cloud. Use when users need to manage repositories, pull requests, branches, issues, webhooks, or pipelines in Bitbucket. Triggers include "bitbucket", "bkt", "pull request", "PR", "repo

When should I use bkt?

Bitbucket CLI for Data Center and Cloud. Use when users need to manage repositories, pull requests, branches, issues, webhooks, or pipelines in Bitbucket. Triggers include "bitbucket", "bkt", "pull request", "PR", "repo

What are common prerequisites?

--- name: bkt version: 0.28.2 description: Bitbucket CLI for Data Center and Cloud.

Is Bkt safe to install?

skills.sh reports 1 of 3 security scanners passed. Review the Security Audits panel on this page before installing in production.

Securityappsec

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.