Skip to content

Releases

v0.41.1

Choose a tag to compare

@github-actions github-actions released this 26 Nov 19:29
Immutable release. Only release title and notes can be modified.
651ef91

bkt v0.41.1 (2026-11-26T19:27:16Z)

Thanks for trying the Bitbucket CLI!

[0.41.1] - 2026-11-26

Fixed

  • bkt skill publish strips 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 --jq engine 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-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.41.1

Binary Downloads

Pick the archive for your platform from the assets below.

v0.41.0

Choose a tag to compare

@github-actions github-actions released this 24 Nov 20:43
Immutable release. Only release title and notes can be modified.
7ee1c2c

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 create can anchor tasks to the pull request diff in Bitbucket
    Cloud and Data Center. Pass --file with one of --from-line or --to-line.
    Thanks to tivolicious for the proposal.
    #409 ·
    #416

Changed

  • --jq implies JSON when no output format flag is set. With an explicit
    output format, select JSON with --json or --format json.
    Thanks to tivolicious for the proposal.
    #410 ·
    #414

Full Changelog: v0.40.4...v0.41.0

Homebrew (macOS/Linux)

brew install avivsinai/tap/bitbucket-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.41.0

Binary Downloads

Pick the archive for your platform from the assets below.

v0.40.4

Choose a tag to compare

@github-actions github-actions released this 23 Nov 16:38
Immutable release. Only release title and notes can be modified.
535bd5e

bkt v0.40.4 (2026-11-23T16:37:02Z)

Thanks for trying the Bitbucket CLI!

[0.40.4] - 2026-11-23

Added

  • BKT_EXTRA_HEADERS adds headers to API requests, one Name: value per
    line, for servers behind a proxy that wants its own cookie or token next to
    the Bitbucket credential. The headers go only to the BKT_HOST server (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-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.4

Binary Downloads

Pick the archive for your platform from the assets below.

v0.40.3

Choose a tag to compare

@github-actions github-actions released this 22 Nov 18:53
Immutable release. Only release title and notes can be modified.
8489f33

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/term 0.48.0 and golang.org/x/sys 0.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-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.3

Binary Downloads

Pick the archive for your platform from the assets below.

v0.40.2

Choose a tag to compare

@github-actions github-actions released this 17 Nov 12:10
Immutable release. Only release title and notes can be modified.
09dbb5c

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/--reviewer and the MCP
    repo role filter now resolve the current user, so accounts whose login name
    differs from their slug (for example jane@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-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.2

Binary Downloads

Pick the archive for your platform from the assets below.

v0.40.1

Choose a tag to compare

@github-actions github-actions released this 16 Nov 18:04
Immutable release. Only release title and notes can be modified.
34c8bb5

bkt v0.40.1 (2026-11-16T18:03:19Z)

Thanks for trying the Bitbucket CLI!

[0.40.1] - 2026-11-16

Added

  • bkt auth status names 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-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.1

Binary Downloads

Pick the archive for your platform from the assets below.

v0.40.0

Choose a tag to compare

@github-actions github-actions released this 16 Nov 15:20
Immutable release. Only release title and notes can be modified.
39a14bf

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-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.40.0

Binary Downloads

Pick the archive for your platform from the assets below.

v0.39.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 20:30
Immutable release. Only release title and notes can be modified.
55d3bb1

bkt v0.39.0 (2026-11-14T20:29:55Z)

Thanks for trying the Bitbucket CLI!

[0.39.0] - 2026-11-14

Security

  • BKT_TOKEN is no longer sent to a host other than BKT_HOST. With an active
    context for another host, bkt used to ignore BKT_HOST and send the token
    to the context's host. The BKT_HOST + BKT_TOKEN pair now wins over the
    active context, and an explicit --context or --host for another host is
    refused.
  • bkt api and every other request refuse an absolute URL for another host,
    port, or scheme. bkt api https://other.example.com/x used to send the
    stored token to that host.
  • bkt auth login for a Data Center host now uses bearer auth unless
    --auth-method basic is 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 doctor names the
    command that switches it to a bearer token.
  • bkt api on 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 from config.yml before bkt auth login has 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 status under BKT_TOKEN shows the saved auth method (for example
    bearer) when BKT_AUTH_METHOD is unset. It used to print basic.
  • bkt skill install and bkt skill update keep 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/triage accepts the namespace/name shown by
    skill list. It used to fail with "none of the specified skills are installed".
  • bkt skill update reports ! <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-After longer 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
    and pr checks --wait used to exit 0, and other commands printed "Error:
    context canceled" and exited 1.
  • bkt extension exec exits 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,b keeps the comma in the value. It used to
    fail with invalid variable "b".
  • bkt status rate-limit prints "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 list and repo view retry
    transient failures like the other commands. They used to make one attempt.
  • bkt pr create --source BRANCH builds the default title from BRANCH's
    commits. It used to read the current HEAD.
  • Bitbucket Cloud bkt pr view lists reviewers, as the Data Center view does.
  • --json prints [] for empty hosts, contexts, repositories, default
    reviewers and variables. It used to print null.
  • bkt repo downloads upload rejects two files with the same base name before
    uploading. The second used to silently replace the first.
  • bkt variable set --env-file applies variables in file order, and a failure
    names the variables already applied.
  • bkt pr checks without --wait reports a timed-out status request as an
    error. It used to print "No builds found." and exit 0.
  • Data Center bkt pr list --mine on a repository asks Bitbucket for the
    author's pull requests, so --limit applies to them. It used to filter the
    newest --limit pull requests of all authors.
  • bkt mcp serve sends a BKT_TOKEN override 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 with auth_failed.
  • bkt variable set NAME drops a CRLF line ending from a piped value. The
    stored value used to keep the \r.
  • bkt skill update no 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> --flag forwards 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 PAGER no longer crashes commands that page their output.
  • Help examples: --json replaces a --output json flag that does not exist
    (auth status, context list, status, perms, admin logging get),
    pr create uses --title, the Cloud context create examples use
    --host api.bitbucket.org, and the api example drops a --workspace flag
    that does not exist.

Full Changelog: v0.38.1...v0.39.0

Homebrew (macOS/Linux)

brew install avivsinai/tap/bitbucket-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.39.0

Binary Downloads

Pick the archive for your platform from the assets below.

v0.38.1

Choose a tag to compare

@github-actions github-actions released this 09 Nov 13:41
Immutable release. Only release title and notes can be modified.
cda8ba7

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-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.38.1

Binary Downloads

Pick the archive for your platform from the assets below.

v0.37.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 06:27
e6b64c9

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 create works 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 issue now 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-cli

Scoop (Windows)

scoop bucket add avivsinai https://github.com/avivsinai/scoop-bucket
scoop install bitbucket-cli

Go Install

go install github.com/avivsinai/bitbucket-cli/cmd/bkt@v0.37.0

Binary Downloads

Pick the archive for your platform from the assets below.

⌂ 换网址