Repository navigation
Releases
v0.41.1
bkt v0.41.1 (2026-11-26T19:27:16Z)
Thanks for trying the Bitbucket CLI!
[0.41.1] - 2026-11-26
Fixed
bkt skill publishstrips only direct install metadata keys. Nested keys,
standalone comments and separators, multiline values, and explicit YAML keys
retain their authored content, and the rewritten frontmatter is validated
before writing (#418).- Update the
--jqengine to gojq 0.12.20 for jq compatibility fixes, and
refresh the Nix vendor hash.
Full Changelog: v0.41.0...v0.41.1
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.41.1Binary Downloads
Pick the archive for your platform from the assets below.
v0.41.0
bkt v0.41.0 (2026-11-24T20:42:30Z)
Thanks for trying the Bitbucket CLI!
[0.41.0] - 2026-11-24
Added
bkt pr task createcan anchor tasks to the pull request diff in Bitbucket
Cloud and Data Center. Pass--filewith one of--from-lineor--to-line.
Thanks totivoliciousfor the proposal.
#409 ·
#416
Changed
--jqimplies JSON when no output format flag is set. With an explicit
output format, select JSON with--jsonor--format json.
Thanks totivoliciousfor the proposal.
#410 ·
#414
Full Changelog: v0.40.4...v0.41.0
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.41.0Binary Downloads
Pick the archive for your platform from the assets below.
v0.40.4
bkt v0.40.4 (2026-11-23T16:37:02Z)
Thanks for trying the Bitbucket CLI!
[0.40.4] - 2026-11-23
Added
BKT_EXTRA_HEADERSadds headers to API requests, oneName: valueper
line, for servers behind a proxy that wants its own cookie or token next to
the Bitbucket credential. The headers go only to theBKT_HOSTserver (same
scheme, host and port), are dropped on a redirect that leaves that origin,
and are not passed to extensions. The Cloud browser OAuth flow does not send
them. Thanks to Grigory Zubankov (ssgreg) for
the original implementation in
#407.
Full Changelog: v0.40.3...v0.40.4
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.4Binary Downloads
Pick the archive for your platform from the assets below.
v0.40.3
bkt v0.40.3 (2026-11-22T18:50:58Z)
Thanks for trying the Bitbucket CLI!
[0.40.3] - 2026-11-22
Changed
- Build with
golang.org/x/term0.48.0 andgolang.org/x/sys0.50.0, and
refresh the Nix vendor hash for the updated dependencies.
Full Changelog: v0.40.2...v0.40.3
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.3Binary Downloads
Pick the archive for your platform from the assets below.
v0.40.2
bkt v0.40.2 (2026-11-17T12:10:00Z)
Thanks for trying the Bitbucket CLI!
[0.40.2] - 2026-11-17
Fixed
- Data Center:
bkt auth login,bkt pr list --mine/--reviewerand the MCP
repo role filter now resolve the current user, so accounts whose login name
differs from their slug (for examplejane@corp.example→
jane_corp.example) authenticate and filter correctly. - Data Center user resolution searches all result pages and rejects ambiguous
login/slug collisions and shared-email matches.
Full Changelog: v0.40.1...v0.40.2
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.2Binary Downloads
Pick the archive for your platform from the assets below.
v0.40.1
bkt v0.40.1 (2026-11-16T18:03:19Z)
Thanks for trying the Bitbucket CLI!
[0.40.1] - 2026-11-16
Added
bkt auth statusnames each host alias in front of its base URL, so
accounts on the same server can be told apart. Thanks to Kristof Lemmens
(@kristoflemmens) for the implementation.
Full Changelog: v0.40.0...v0.40.1
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.1Binary Downloads
Pick the archive for your platform from the assets below.
v0.40.0
bkt v0.40.0 (2026-11-16T15:17:38Z)
Thanks for trying the Bitbucket CLI!
[0.40.0] - 2026-11-16
Added
bkt auth login --alias <name>stores a login under its own host entry and
keychain item, so one server can be used with several accounts, for example
two Bitbucket Cloud accounts. A context selects the account with
bkt context create <name> --host <alias>. Thanks to Kristof Lemmens
(@kristoflemmens) for the original implementation.
Fixed
- Host aliases reject collisions with other deployments before credential
verification or storage, and OAuth recovery hints retain the selected alias. - The OAuth token of a host entry whose key is not the server's own host name
is refreshed from that entry's keychain item. It used to read the server's
item after a 401, so an aliased context could select another stored account. - Cloud pull request merges follow the task-status URL in HTTP 202's Location
header, including responses with an empty or string body. Accepted work without
valid tracking information reports unknown completion instead of "Merged". - Merge submission and task polling refuse redirects. Invalid synchronous
responses and inconclusive polling preserve uncertainty about completion. - Conditional merge-task polling honors the cached status after HTTP 304
revalidation and continues until the task completes.
Full Changelog: v0.39.0...v0.40.0
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.0Binary Downloads
Pick the archive for your platform from the assets below.
v0.39.0
bkt v0.39.0 (2026-11-14T20:29:55Z)
Thanks for trying the Bitbucket CLI!
[0.39.0] - 2026-11-14
Security
BKT_TOKENis no longer sent to a host other thanBKT_HOST. With an active
context for another host,bktused to ignoreBKT_HOSTand send the token
to the context's host. TheBKT_HOST+BKT_TOKENpair now wins over the
active context, and an explicit--contextor--hostfor another host is
refused.bkt apiand every other request refuse an absolute URL for another host,
port, or scheme.bkt api https://other.example.com/xused to send the
stored token to that host.bkt auth loginfor a Data Center host now uses bearer auth unless
--auth-method basicis given. A Data Center server can answer 401 to a path
outside a REST plugin even with correct credentials, and under basic auth
such answers can count as failed password logins until the account is
locked. An existing basic host keeps working;bkt auth doctornames the
command that switches it to a bearer token.bkt apion a Data Center host refuses a path that is not ASCII or not of the
form/rest/<name>/<version>/...(for example/rest/api.lookup/projects),
and sends no request.
Fixed
- A config save (for example
bkt context create) no longer deletes a legacy
plaintext token fromconfig.ymlbeforebkt auth loginhas moved it to the
keychain. - The browser login no longer hangs for two seconds, or leaks a handler, when
the callback page is reloaded; token and user-info calls time out after 30
seconds instead of waiting forever while they hold the refresh lock. bkt auth statusunderBKT_TOKENshows the saved auth method (for example
bearer) whenBKT_AUTH_METHODis unset. It used to printbasic.bkt skill installandbkt skill updatekeep the body of a SKILL.md whose
frontmatter is empty (---then---). Before, text up to the next---
rule was lost or a second frontmatter block was written.bkt skill update monalisa/triageaccepts thenamespace/nameshown by
skill list. It used to fail with "none of the specified skills are installed".bkt skill updatereports! <name>: not found in <repo>and exits non-zero
for a skill that no longer exists in its repository. It used to print
"All skills are up to date." and exit 0.- A 429 or 503 with a
Retry-Afterlonger than the request deadline returns
the HTTP error at once. It used to wait and report "context deadline exceeded". - Docs name the per-OS config directory (macOS and Windows differ from
~/.config/bkt); the security issue link points at the security policy. - Ctrl-C or SIGTERM makes bkt exit 130 with no error text.
pipeline run --wait
andpr checks --waitused to exit 0, and other commands printed "Error:
context canceled" and exited 1. bkt extension execexits with the extension's own exit code and no extra
message. It used to print "Error: exit status N" and exit 1.bkt pipeline run --var LIST=a,bkeeps the comma in the value. It used to
fail withinvalid variable "b".bkt status rate-limitprints "No rate-limit headers returned by HOST." when
the server sends none. It used to print "Limit: 0 / Remaining: 0".- Data Center
status commit,status pr,repo listandrepo viewretry
transient failures like the other commands. They used to make one attempt. bkt pr create --source BRANCHbuilds the default title from BRANCH's
commits. It used to read the current HEAD.- Bitbucket Cloud
bkt pr viewlists reviewers, as the Data Center view does. --jsonprints[]for empty hosts, contexts, repositories, default
reviewers and variables. It used to printnull.bkt repo downloads uploadrejects two files with the same base name before
uploading. The second used to silently replace the first.bkt variable set --env-fileapplies variables in file order, and a failure
names the variables already applied.bkt pr checkswithout--waitreports a timed-out status request as an
error. It used to print "No builds found." and exit 0.- Data Center
bkt pr list --mineon a repository asks Bitbucket for the
author's pull requests, so--limitapplies to them. It used to filter the
newest--limitpull requests of all authors. bkt mcp servesends aBKT_TOKENoverride of an OAuth-saved Cloud host
with basic auth, as every other command does. It used to send it as a bearer
token, and every tool failed withauth_failed.bkt variable set NAMEdrops a CRLF line ending from a piped value. The
stored value used to keep the\r.bkt skill updateno longer treats the skills a repository authors under
skills/as installed skills that lack metadata.- A config entry with no fields (
contexts: {work: }) no longer crashes every
command. bkt extension remove .is rejected. It used to delete every installed
extension.bkt extension exec <name> --flagforwards flags to the extension. It used
to fail with "unknown flag".- A Data Center remote under a context path
(https://host/bitbucket/scm/PROJ/repo.git) resolves to the right project
and repository. - A blank
PAGERno longer crashes commands that page their output. - Help examples:
--jsonreplaces a--output jsonflag that does not exist
(auth status,context list,status,perms,admin logging get),
pr createuses--title, the Cloudcontext createexamples use
--host api.bitbucket.org, and theapiexample drops a--workspaceflag
that does not exist.
Full Changelog: v0.38.1...v0.39.0
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.39.0Binary Downloads
Pick the archive for your platform from the assets below.
v0.38.1
bkt v0.38.1 (2026-11-09T13:39:13Z)
Thanks for trying the Bitbucket CLI!
[0.38.1] - 2026-11-09
Fixed
- Fetch newly created release tags into the packaging checkout before GoReleaser
runs. v0.38.0 created its tag but stopped before publishing binaries because
GoReleaser selected v0.37.0. This release publishes the mergeability command
and Cloud state-filtering fixes documented under 0.38.0 below.
Full Changelog: v0.38.0...v0.38.1
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.38.1Binary Downloads
Pick the archive for your platform from the assets below.
v0.37.0
bkt v0.37.0 (2026-10-25T06:25:00Z)
Thanks for trying the Bitbucket CLI!
[0.37.0] - 2026-10-25
Changed
- Log in again once: run
bkt auth login https://bitbucket.org --kind cloud --web.
bkt's Bitbucket Cloud OAuth consumer now grants Repositories Admin, so
bkt repo createworks with browser login; before, it failed with
"credentials lack one or more required privilege scopes". It also no longer
grants unused project-write, workspace-membership, and issue permissions.
Bitbucket expires every token issued before this change.
Removed
bkt issuenow explains that Atlassian removed Bitbucket Cloud Issues on
20 August 2026 and exits, instead of calling an API that answers 410 Gone.
The command is hidden from help; track issues in Jira.
Full Changelog: v0.36.0...v0.37.0
Homebrew (macOS/Linux)
brew install avivsinai/tap/bitbucket-cliScoop (Windows)
scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cliGo Install
go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.37.0Binary Downloads
Pick the archive for your platform from the assets below.