Skill flagged — suspicious patterns detected

ClawHub Security flagged this skill as suspicious. Review the scan results before using.

Atlassian Bitbucket Cloud by @altf1be

Atlassian Bitbucket Cloud skill — full CRUD on repos, PRs, pipelines, issues, snippets, workspaces, branches, deployments, and more via Bitbucket REST API 2....

MIT-0 · Free to use, modify, and redistribute. No attribution required.
0 · 9 · 0 current installs · 0 all-time installs
byAbdelkrim from Brussels@abdelkrim
MIT-0
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description match the included code and docs. Required env vars (BITBUCKET_EMAIL, BITBUCKET_API_TOKEN) are appropriate for Bitbucket REST API Basic auth; optional legacy vars are documented. The code implements Bitbucket API calls and nothing unrelated.
Instruction Scope
SKILL.md and README instruct setting Bitbucket credentials, running npm install, and executing the CLI; runtime instructions and scripts only reference Bitbucket endpoints and expected local file ops (uploads) with path and size checks. There are no instructions to read or exfiltrate unrelated system files or environment variables.
Install Mechanism
No remote-download install is used. The package is a single-file CLI with a package.json requiring only commander and dotenv; installation is the normal npm install. Nothing pulls arbitrary code from untrusted URLs.
Credentials
Requested environment variables are minimal and directly related: BITBUCKET_EMAIL and BITBUCKET_API_TOKEN (with documented optional legacy fallbacks and workspace/max-results settings). No unrelated credentials or wide-scoped secrets are requested.
Persistence & Privilege
always is false and the skill does not request system-wide persistence or modify other skills. It can be invoked autonomously (platform default) but it does not require elevated agent privileges beyond using the provided Bitbucket credentials.
Assessment
This skill appears to do what it claims (Bitbucket Cloud CLI). Before installing: (1) only provide a Bitbucket API token with the minimum scopes needed for your workflows (avoid using a full-admin token); (2) prefer a dedicated or limited account for automation; (3) review the included scripts/bitbucket.mjs if you want to confirm behavior (the code implements safePath, size checks, and rate-limit retry); (4) run npm audit on dependencies before use; (5) be cautious about running destructive commands (repo-delete, etc.) — they require --confirm but an autonomous agent with your token could perform actions, so limit token scope and trust the agent’s autopilot settings.
scripts/bitbucket.mjs:26
Environment variable access combined with network send.
!
scripts/bitbucket.mjs:13
File read combined with network send (possible exfiltration).
Patterns worth reviewing
These patterns may indicate risky behavior. Check the VirusTotal and OpenClaw results above for context-aware analysis before installing.

Like a lobster shell, security has layers — review code before you run it.

Current versionv1.1.0
Download zip
latestvk977xjg3x4jbtrerjsr02rmgt183z3h7

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🪣 Clawdis
EnvBITBUCKET_EMAIL, BITBUCKET_API_TOKEN
Primary envBITBUCKET_EMAIL

SKILL.md

Atlassian Bitbucket Cloud by @altf1be

Full CRUD on repos, PRs, pipelines, issues, snippets, workspaces, branches, deployments, and more via Bitbucket REST API 2.0.

Setup

  1. Create an API Token at https://id.atlassian.com/manage-profile/security/api-tokens (select the scopes you need).
  2. Set environment variables (or create .env in {baseDir}):
# Required
BITBUCKET_EMAIL=you@example.com
BITBUCKET_API_TOKEN=your-api-token

# Optional
BITBUCKET_WORKSPACE=your-default-workspace
BITBUCKET_MAX_RESULTS=50

# Legacy (supported until June 9, 2026)
# BITBUCKET_USERNAME=your-username
# BITBUCKET_APP_PASSWORD=your-app-password
  1. Install dependencies: cd {baseDir} && npm install

Common Options

Most commands accept these shared flags:

FlagDescription
-w, --workspace <slug>Workspace slug (or set BITBUCKET_WORKSPACE)
-r, --repo <slug>Repository slug
--pagelen <n>Results per page
--page <n>Page number
--allFetch all pages
-q, --q <filter>Filter query (CQL-style)
--sort <field>Sort field
--confirmRequired for all delete operations
--data <json>Raw JSON body for complex payloads

Commands

1. Repositories (26 commands)

CRUD on repositories, forks, watchers, webhooks, override settings, and permissions.

CommandDescription
repo-list-publicList all public repositories
repo-listList repositories in a workspace
repo-getGet repository details
repo-createCreate a new repository
repo-updateUpdate repository settings
repo-deleteDelete a repository
repo-forksList forks of a repository
repo-fork-createFork a repository
repo-watchersList repository watchers
hook-listList repository webhooks
hook-getGet a webhook by UID
hook-createCreate a repository webhook
hook-updateUpdate a webhook
hook-deleteDelete a webhook
repo-override-settings-getGet repository override settings
repo-override-settings-updateUpdate repository override settings
repo-group-permission-listList group permissions
repo-group-permission-getGet a group's permission
repo-group-permission-updateUpdate a group's permission
repo-group-permission-deleteRemove a group's permission
repo-user-permission-listList user permissions
repo-user-permission-getGet a user's permission
repo-user-permission-updateUpdate a user's permission
repo-user-permission-deleteRemove a user's permission
user-repo-permissionsList current user's repository permissions
user-ws-repo-permissionsList current user's repository permissions in a workspace
# List repos in a workspace
bitbucket repo-list -w myworkspace

# Get repo details
bitbucket repo-get -w myworkspace -r my-repo

# Create a new private repo
bitbucket repo-create -w myworkspace -r new-repo --is-private true --scm git

# Fork a repo
bitbucket repo-fork-create -w myworkspace -r upstream-repo --data '{"name":"my-fork"}'

# Create a webhook
bitbucket hook-create -w myworkspace -r my-repo --url https://example.com/hook --events repo:push

# Delete a repo (requires --confirm)
bitbucket repo-delete -w myworkspace -r old-repo --confirm

2. Pull Requests (36 commands)

Full lifecycle management of pull requests: create, review, approve, merge, comment, tasks, and default reviewers.

CommandDescription
pr-listList pull requests
pr-createCreate a pull request
pr-getGet a pull request by ID
pr-updateUpdate a pull request
pr-activityGet PR activity log
pr-approveApprove a pull request
pr-unapproveRemove approval from a PR
pr-commentsList PR comments
pr-comment-createAdd a comment to a PR
pr-comment-getGet a specific PR comment
pr-comment-updateUpdate a PR comment
pr-comment-deleteDelete a PR comment
pr-comment-resolveResolve a PR comment thread
pr-comment-reopenReopen a resolved comment thread
pr-commitsList commits in a PR
pr-declineDecline a pull request
pr-diffGet the diff of a PR
pr-diffstatGet the diffstat of a PR
pr-mergeMerge a pull request
pr-merge-task-statusCheck merge task status
pr-patchGet the patch of a PR
pr-request-changesRequest changes on a PR
pr-unrequest-changesRemove change request from a PR
pr-statusesList commit statuses on a PR
pr-tasksList tasks on a PR
pr-task-createCreate a task on a PR
pr-task-getGet a specific PR task
pr-task-updateUpdate a PR task
pr-task-deleteDelete a PR task
default-reviewer-listList default reviewers
default-reviewer-getGet a default reviewer
default-reviewer-addAdd a default reviewer
default-reviewer-deleteRemove a default reviewer
effective-default-reviewersList effective default reviewers
pr-for-commitFind PRs containing a commit
pr-activity-allGet activity across all PRs in a repo
# List open PRs
bitbucket pr-list -w myworkspace -r my-repo -q 'state="OPEN"'

# Create a PR
bitbucket pr-create -w myworkspace -r my-repo --title "Add feature" \
  --source feature-branch --destination main

# Approve a PR
bitbucket pr-approve -w myworkspace -r my-repo --pr-id 42

# Merge a PR
bitbucket pr-merge -w myworkspace -r my-repo --pr-id 42 --merge-strategy squash

# Add a comment
bitbucket pr-comment-create -w myworkspace -r my-repo --pr-id 42 \
  --body "Looks good to me!"

# Create a task on a PR
bitbucket pr-task-create -w myworkspace -r my-repo --pr-id 42 \
  --data '{"content":{"raw":"Fix the typo on line 10"}}'

# Find PRs for a commit
bitbucket pr-for-commit -w myworkspace -r my-repo --commit abc123

3. Commits (16 commands)

Read commit details, approve/unapprove commits, manage commit comments, list diffs and patches.

CommandDescription
commit-getGet a specific commit
commit-approveApprove a commit
commit-unapproveRemove commit approval
commit-commentsList comments on a commit
commit-comment-createAdd a comment to a commit
commit-comment-getGet a specific commit comment
commit-comment-updateUpdate a commit comment
commit-comment-deleteDelete a commit comment
commit-listList commits (GET)
commit-list-postList commits (POST, with body filters)
commit-list-revisionList commits from a revision (GET)
commit-list-revision-postList commits from a revision (POST)
diffGet diff between two refs
diffstatGet diffstat between two refs
merge-baseGet merge base of two refs
patchGet patch for a revision
# Get commit details
bitbucket commit-get -w myworkspace -r my-repo --commit abc123def

# List recent commits
bitbucket commit-list -w myworkspace -r my-repo --pagelen 10

# Get diff between two refs
bitbucket diff -w myworkspace -r my-repo --spec "main..feature-branch"

# Approve a commit
bitbucket commit-approve -w myworkspace -r my-repo --commit abc123def

# Comment on a commit
bitbucket commit-comment-create -w myworkspace -r my-repo --commit abc123def \
  --body "This needs a test."

4. Branches & Tags (9 commands)

List, create, get, and delete branches and tags.

CommandDescription
ref-listList all refs (branches + tags)
branch-listList branches
branch-createCreate a branch
branch-getGet branch details
branch-deleteDelete a branch
tag-listList tags
tag-createCreate an annotated tag
tag-getGet tag details
tag-deleteDelete a tag
# List branches
bitbucket branch-list -w myworkspace -r my-repo

# Create a branch
bitbucket branch-create -w myworkspace -r my-repo --name feature/new \
  --target main

# Create a tag
bitbucket tag-create -w myworkspace -r my-repo --name v1.0.0 --target main

# Delete a branch (requires --confirm)
bitbucket branch-delete -w myworkspace -r my-repo --name old-branch --confirm

5. Branch Restrictions (5 commands)

Manage branch permission restrictions (push, merge, delete controls).

CommandDescription
restriction-listList branch restrictions
restriction-getGet a restriction by ID
restriction-createCreate a branch restriction
restriction-updateUpdate a branch restriction
restriction-deleteDelete a branch restriction
# List restrictions
bitbucket restriction-list -w myworkspace -r my-repo

# Prevent force-push to main
bitbucket restriction-create -w myworkspace -r my-repo \
  --data '{"kind":"force","pattern":"main"}'

# Delete a restriction (requires --confirm)
bitbucket restriction-delete -w myworkspace -r my-repo --id 123 --confirm

6. Branching Model (7 commands)

Get and configure the branching model (Git Flow style) at the repo and project level.

CommandDescription
branching-model-getGet repo branching model
branching-model-settings-getGet repo branching model settings
branching-model-settings-updateUpdate repo branching model settings
branching-model-effectiveGet effective branching model (inherited + overrides)
project-branching-model-getGet project branching model
project-branching-model-settings-getGet project branching model settings
project-branching-model-settings-updateUpdate project branching model settings
# Get effective branching model
bitbucket branching-model-effective -w myworkspace -r my-repo

# Update branching model settings
bitbucket branching-model-settings-update -w myworkspace -r my-repo \
  --data '{"development":{"name":"develop"},"production":{"name":"main"}}'

7. Pipelines (68 commands)

Full pipeline lifecycle: run, stop, inspect steps/logs, manage variables, schedules, SSH keys, known hosts, caches, runners, OIDC, and workspace/team/user-level pipeline variables.

CommandDescription
pipeline-listList pipelines
pipeline-getGet pipeline details
pipeline-createTrigger a new pipeline
pipeline-stopStop a running pipeline
pipeline-stepsList steps in a pipeline
pipeline-step-getGet a pipeline step
pipeline-step-logGet step log output
pipeline-step-log-containerGet step container log
pipeline-test-reportsGet test reports for a step
pipeline-test-casesGet test cases for a step
pipeline-test-case-reasonsGet test case failure reasons
pipeline-config-getGet pipeline configuration
pipeline-config-updateUpdate pipeline configuration
pipeline-build-number-updateUpdate the next build number
pipeline-var-listList repo pipeline variables
pipeline-var-getGet a pipeline variable
pipeline-var-createCreate a pipeline variable
pipeline-var-updateUpdate a pipeline variable
pipeline-var-deleteDelete a pipeline variable
pipeline-schedule-listList pipeline schedules
pipeline-schedule-getGet a schedule
pipeline-schedule-createCreate a pipeline schedule
pipeline-schedule-updateUpdate a pipeline schedule
pipeline-schedule-deleteDelete a pipeline schedule
pipeline-schedule-executionsList schedule executions
pipeline-ssh-keypair-getGet SSH key pair
pipeline-ssh-keypair-updateUpdate SSH key pair
pipeline-ssh-keypair-deleteDelete SSH key pair
pipeline-known-host-listList known hosts
pipeline-known-host-getGet a known host
pipeline-known-host-createAdd a known host
pipeline-known-host-updateUpdate a known host
pipeline-known-host-deleteDelete a known host
pipeline-cache-listList pipeline caches
pipeline-cache-deleteDelete all caches
pipeline-cache-delete-by-nameDelete a cache by name
pipeline-cache-content-uriGet cache content URI
pipeline-runner-listList repo pipeline runners
pipeline-runner-getGet a pipeline runner
pipeline-runner-createCreate a pipeline runner
pipeline-runner-updateUpdate a pipeline runner
pipeline-runner-deleteDelete a pipeline runner
env-var-listList deployment environment variables
env-var-createCreate a deployment env variable
env-var-updateUpdate a deployment env variable
env-var-deleteDelete a deployment env variable
team-pipeline-var-listList team pipeline variables
team-pipeline-var-getGet a team pipeline variable
team-pipeline-var-createCreate a team pipeline variable
team-pipeline-var-updateUpdate a team pipeline variable
team-pipeline-var-deleteDelete a team pipeline variable
user-pipeline-var-listList user pipeline variables
user-pipeline-var-getGet a user pipeline variable
user-pipeline-var-createCreate a user pipeline variable
user-pipeline-var-updateUpdate a user pipeline variable
user-pipeline-var-deleteDelete a user pipeline variable
ws-oidc-configGet workspace OIDC configuration
ws-oidc-keysGet workspace OIDC keys
ws-runner-listList workspace runners
ws-runner-getGet a workspace runner
ws-runner-createCreate a workspace runner
ws-runner-updateUpdate a workspace runner
ws-runner-deleteDelete a workspace runner
ws-pipeline-var-listList workspace pipeline variables
ws-pipeline-var-getGet a workspace pipeline variable
ws-pipeline-var-createCreate a workspace pipeline variable
ws-pipeline-var-updateUpdate a workspace pipeline variable
ws-pipeline-var-deleteDelete a workspace pipeline variable
# Trigger a pipeline on main
bitbucket pipeline-create -w myworkspace -r my-repo \
  --data '{"target":{"ref_type":"branch","type":"pipeline_ref_target","ref_name":"main"}}'

# List recent pipelines
bitbucket pipeline-list -w myworkspace -r my-repo --pagelen 5

# Get step logs
bitbucket pipeline-step-log -w myworkspace -r my-repo \
  --pipeline-uuid {uuid} --step-uuid {uuid}

# Stop a running pipeline
bitbucket pipeline-stop -w myworkspace -r my-repo --pipeline-uuid {uuid}

# Create a repo pipeline variable (secured)
bitbucket pipeline-var-create -w myworkspace -r my-repo \
  --key API_KEY --value secret123 --secured true

# Create a workspace-level variable
bitbucket ws-pipeline-var-create -w myworkspace \
  --key DEPLOY_TOKEN --value tok_abc --secured true

# Schedule a pipeline
bitbucket pipeline-schedule-create -w myworkspace -r my-repo \
  --data '{"cron_pattern":"0 0 * * *","target":{"ref_type":"branch","ref_name":"main"}}'

8. Deployments (16 commands)

Manage deploy keys and deployment environments.

CommandDescription
deploy-key-listList deploy keys
deploy-key-getGet a deploy key
deploy-key-createAdd a deploy key
deploy-key-updateUpdate a deploy key
deploy-key-deleteDelete a deploy key
deployment-listList deployments
deployment-getGet a deployment
environment-listList deployment environments
environment-getGet an environment
environment-createCreate a deployment environment
environment-updateUpdate a deployment environment
environment-deleteDelete a deployment environment
project-deploy-key-listList project deploy keys
project-deploy-key-getGet a project deploy key
project-deploy-key-createAdd a project deploy key
project-deploy-key-deleteDelete a project deploy key
# List deployment environments
bitbucket environment-list -w myworkspace -r my-repo

# Create a staging environment
bitbucket environment-create -w myworkspace -r my-repo \
  --data '{"name":"Staging","environment_type":{"name":"Staging"}}'

# Add a deploy key
bitbucket deploy-key-create -w myworkspace -r my-repo \
  --key "ssh-rsa AAAA..." --label "CI deploy key"

# Delete an environment (requires --confirm)
bitbucket environment-delete -w myworkspace -r my-repo \
  --environment-uuid {uuid} --confirm

9. Commit Statuses (4 commands)

Create and manage build statuses on commits.

CommandDescription
status-listList commit statuses
status-createCreate a commit status
status-getGet a commit status
status-updateUpdate a commit status
# Report a build status
bitbucket status-create -w myworkspace -r my-repo --commit abc123 \
  --state SUCCESSFUL --key build-42 --url https://ci.example.com/42

# List statuses on a commit
bitbucket status-list -w myworkspace -r my-repo --commit abc123

10. Issue Tracker (33 commands)

Full issue management: CRUD, comments, attachments, changes, voting, watching, import/export, components, milestones, and versions.

CommandDescription
issue-listList issues
issue-getGet an issue
issue-createCreate an issue
issue-updateUpdate an issue
issue-deleteDelete an issue
issue-comment-listList issue comments
issue-comment-getGet an issue comment
issue-comment-createAdd a comment to an issue
issue-comment-updateUpdate an issue comment
issue-comment-deleteDelete an issue comment
issue-attachment-listList issue attachments
issue-attachment-getGet an issue attachment
issue-attachment-uploadUpload an attachment
issue-attachment-deleteDelete an attachment
issue-change-listList issue changes
issue-change-getGet an issue change
issue-change-createCreate an issue change
issue-vote-checkCheck if you voted on an issue
issue-voteVote on an issue
issue-unvoteRemove your vote
issue-watch-checkCheck if you are watching an issue
issue-watchWatch an issue
issue-unwatchStop watching an issue
issue-exportStart an issue export
issue-export-statusCheck export status
issue-importStart an issue import
issue-import-statusCheck import status
component-listList components
component-getGet a component
milestone-listList milestones
milestone-getGet a milestone
version-listList versions
version-getGet a version
# List open bugs
bitbucket issue-list -w myworkspace -r my-repo -q 'kind="bug" AND state="open"'

# Create an issue
bitbucket issue-create -w myworkspace -r my-repo \
  --title "Login broken" --kind bug --priority critical

# Comment on an issue
bitbucket issue-comment-create -w myworkspace -r my-repo --issue-id 7 \
  --body "Reproduced on Chrome 120."

# Upload an attachment
bitbucket issue-attachment-upload -w myworkspace -r my-repo --issue-id 7 \
  --file ./screenshot.png

# Export all issues
bitbucket issue-export -w myworkspace -r my-repo

# List milestones
bitbucket milestone-list -w myworkspace -r my-repo

11. Snippets (25 commands)

Create and manage code snippets, their revisions, files, diffs, comments, commits, and watchers.

CommandDescription
snippet-listList your snippets
snippet-createCreate a snippet
snippet-ws-listList workspace snippets
snippet-ws-createCreate a workspace snippet
snippet-getGet a snippet
snippet-updateUpdate a snippet
snippet-deleteDelete a snippet
snippet-revision-getGet a snippet revision
snippet-revision-updateUpdate a snippet revision
snippet-revision-deleteDelete a snippet revision
snippet-fileGet a file from a snippet
snippet-file-revisionGet a file at a specific revision
snippet-diffGet diff between snippet revisions
snippet-patchGet patch for a snippet revision
snippet-comment-listList snippet comments
snippet-comment-getGet a snippet comment
snippet-comment-createAdd a comment to a snippet
snippet-comment-updateUpdate a snippet comment
snippet-comment-deleteDelete a snippet comment
snippet-commit-listList snippet commits
snippet-commit-getGet a snippet commit
snippet-watch-checkCheck if watching a snippet
snippet-watchWatch a snippet
snippet-unwatchUnwatch a snippet
snippet-watchersList snippet watchers
# List your snippets
bitbucket snippet-list

# Create a snippet
bitbucket snippet-create --title "Bash helper" --is-private true \
  --file ./helper.sh

# List workspace snippets
bitbucket snippet-ws-list -w myworkspace

# Get a specific file from a snippet
bitbucket snippet-file -w myworkspace --snippet-id abc123 --filename helper.sh

# Delete a snippet (requires --confirm)
bitbucket snippet-delete -w myworkspace --snippet-id abc123 --confirm

12. Workspaces (17 commands)

List workspaces, manage hooks, members, permissions, and list user PRs.

CommandDescription
workspace-listList workspaces you belong to
workspace-list-for-userList workspaces for a user
workspace-permissions-for-userGet workspace permissions for a user
workspace-user-permissionGet a specific user's workspace permission
workspace-getGet workspace details
workspace-hook-listList workspace webhooks
workspace-hook-getGet a workspace webhook
workspace-hook-createCreate a workspace webhook
workspace-hook-updateUpdate a workspace webhook
workspace-hook-deleteDelete a workspace webhook
workspace-member-listList workspace members
workspace-member-getGet a workspace member
workspace-permission-listList workspace permissions
workspace-repo-permissionsList repo-level permissions in workspace
workspace-repo-permission-getGet repo-level permission
workspace-project-listList projects in a workspace
workspace-user-prsList PRs authored by the current user in a workspace
# List workspaces
bitbucket workspace-list

# Get workspace details
bitbucket workspace-get -w myworkspace

# List workspace members
bitbucket workspace-member-list -w myworkspace

# List my open PRs across the workspace
bitbucket workspace-user-prs -w myworkspace -q 'state="OPEN"'

# Create a workspace webhook
bitbucket workspace-hook-create -w myworkspace \
  --url https://example.com/hook --events repo:push,pullrequest:created

13. Projects (16 commands)

CRUD on projects, default reviewers, and group/user permissions at the project level.

CommandDescription
project-createCreate a project
project-getGet a project
project-updateUpdate a project
project-deleteDelete a project
project-default-reviewer-listList project default reviewers
project-default-reviewer-getGet a project default reviewer
project-default-reviewer-addAdd a project default reviewer
project-default-reviewer-deleteRemove a project default reviewer
project-group-permission-listList project group permissions
project-group-permission-getGet a group's project permission
project-group-permission-updateUpdate a group's project permission
project-group-permission-deleteRemove a group's project permission
project-user-permission-listList project user permissions
project-user-permission-getGet a user's project permission
project-user-permission-updateUpdate a user's project permission
project-user-permission-deleteRemove a user's project permission
# Create a project
bitbucket project-create -w myworkspace --key PROJ --name "My Project"

# List project default reviewers
bitbucket project-default-reviewer-list -w myworkspace --project-key PROJ

# Add a default reviewer to a project
bitbucket project-default-reviewer-add -w myworkspace --project-key PROJ \
  --user-uuid {uuid}

# Delete a project (requires --confirm)
bitbucket project-delete -w myworkspace --project-key PROJ --confirm

14. Users (4 commands)

Get current user info, list emails, and look up other users.

CommandDescription
user-get-currentGet the authenticated user
user-emailsList your email addresses
user-email-getGet a specific email address
user-getGet a user by UUID or username
# Get current user info
bitbucket user-get-current

# List your emails
bitbucket user-emails

# Look up another user
bitbucket user-get --user-uuid {uuid}

15. SSH Keys (5 commands)

Manage SSH keys on your Bitbucket account.

CommandDescription
ssh-key-listList SSH keys
ssh-key-getGet an SSH key
ssh-key-createAdd an SSH key
ssh-key-updateUpdate an SSH key label
ssh-key-deleteDelete an SSH key
# List SSH keys
bitbucket ssh-key-list

# Add an SSH key
bitbucket ssh-key-create --key "ssh-ed25519 AAAA..." --label "work laptop"

# Delete an SSH key (requires --confirm)
bitbucket ssh-key-delete --key-id 123 --confirm

16. GPG Keys (4 commands)

Manage GPG keys for commit signature verification.

CommandDescription
gpg-key-listList GPG keys
gpg-key-getGet a GPG key
gpg-key-createAdd a GPG key
gpg-key-deleteDelete a GPG key
# List GPG keys
bitbucket gpg-key-list

# Add a GPG key
bitbucket gpg-key-create --key "-----BEGIN PGP PUBLIC KEY BLOCK-----..."

# Delete a GPG key (requires --confirm)
bitbucket gpg-key-delete --key-id abc123 --confirm

17. Source / File Browsing (4 commands)

Browse repository source files and commit new files.

CommandDescription
src-historyGet file history
src-rootList files at the repo root (or a path)
src-createCreate/update a file via commit
src-getGet file contents
# List files at root
bitbucket src-root -w myworkspace -r my-repo

# Get file contents
bitbucket src-get -w myworkspace -r my-repo --path src/index.js

# Get file history
bitbucket src-history -w myworkspace -r my-repo --path README.md

# Create/update a file
bitbucket src-create -w myworkspace -r my-repo \
  --path config.yml --message "Add config" --file ./config.yml

18. Downloads (4 commands)

Manage repository download artifacts.

CommandDescription
download-listList downloads
download-getGet a download
download-uploadUpload a download artifact
download-deleteDelete a download
# List downloads
bitbucket download-list -w myworkspace -r my-repo

# Upload an artifact
bitbucket download-upload -w myworkspace -r my-repo --file ./release-v1.0.zip

# Delete a download (requires --confirm)
bitbucket download-delete -w myworkspace -r my-repo --filename release-v1.0.zip --confirm

19. Webhooks (2 commands)

Discover available webhook event types.

CommandDescription
webhook-eventsList all webhook event subjects
webhook-event-typesList event types for a subject
# List webhook event subjects
bitbucket webhook-events

# List event types for a subject
bitbucket webhook-event-types --subject repository

20. Search (3 commands)

Search code, accounts, and teams.

CommandDescription
search-codeSearch for code in a workspace
search-accountSearch for accounts
search-teamSearch for teams
# Search code
bitbucket search-code -w myworkspace --search-query "import express"

# Search for an account
bitbucket search-account --search-query "john"

21. Reports (9 commands)

Manage commit reports and annotations (code quality, security, etc.).

CommandDescription
report-listList reports on a commit
report-getGet a report
report-createCreate a report
report-deleteDelete a report
report-annotation-listList report annotations
report-annotation-getGet a report annotation
report-annotation-createCreate an annotation
report-annotation-bulk-createBulk create annotations
report-annotation-deleteDelete an annotation
# Create a code quality report
bitbucket report-create -w myworkspace -r my-repo --commit abc123 \
  --report-id lint-report --title "ESLint" --report-type BUG \
  --data '{"result":"PASSED"}'

# Add annotations to a report
bitbucket report-annotation-bulk-create -w myworkspace -r my-repo \
  --commit abc123 --report-id lint-report \
  --data '[{"path":"src/app.js","line":42,"message":"Unused variable","severity":"MEDIUM"}]'

# List reports on a commit
bitbucket report-list -w myworkspace -r my-repo --commit abc123

22. Properties (12 commands)

Get, set, and delete application properties on commits, repos, PRs, and users.

CommandDescription
commit-property-getGet a commit property
commit-property-updateSet a commit property
commit-property-deleteDelete a commit property
repo-property-getGet a repo property
repo-property-updateSet a repo property
repo-property-deleteDelete a repo property
pr-property-getGet a PR property
pr-property-updateSet a PR property
pr-property-deleteDelete a PR property
user-property-getGet a user property
user-property-updateSet a user property
user-property-deleteDelete a user property
# Set a repo property
bitbucket repo-property-update -w myworkspace -r my-repo \
  --app-key myapp --property-name env --data '{"tier":"production"}'

# Get a repo property
bitbucket repo-property-get -w myworkspace -r my-repo \
  --app-key myapp --property-name env

# Delete a PR property (requires --confirm)
bitbucket pr-property-delete -w myworkspace -r my-repo --pr-id 42 \
  --app-key myapp --property-name review-status --confirm

23. Addon (10 commands)

Manage Bitbucket Connect addon lifecycle, linkers, and linker values.

CommandDescription
addon-deleteUninstall the addon
addon-updateUpdate the addon descriptor
addon-linkersList addon linkers
addon-linker-getGet an addon linker
addon-linker-values-deleteDelete all linker values
addon-linker-valuesList linker values
addon-linker-value-createCreate a linker value
addon-linker-value-updateUpdate a linker value
addon-linker-value-deleteDelete a linker value
addon-linker-value-getGet a linker value
# List addon linkers
bitbucket addon-linkers

# Create a linker value
bitbucket addon-linker-value-create --linker-key my-linker \
  --data '{"key":"issue-42","href":"https://tracker.example.com/42"}'

# Delete a linker value (requires --confirm)
bitbucket addon-linker-value-delete --linker-key my-linker --value-id 42 --confirm

Security

  • Auth method: Basic auth with App Passwords (BITBUCKET_USERNAME + BITBUCKET_APP_PASSWORD)
  • No secrets or tokens printed to stdout
  • All delete operations require explicit --confirm flag
  • Path traversal prevention for file uploads (safePath())
  • Built-in rate limiting with exponential backoff retry (3 attempts)
  • File size validation before upload
  • Lazy config validation (only checked when a command runs)

Dependencies

  • commander — CLI framework
  • dotenv — environment variable loading
  • Node.js built-in fetch (requires Node >= 18)

Author

Abdelkrim BOUJRAF — ALT-F1 SRL, Brussels X: @altf1be

Files

10 total
Select a file
Select a file to preview.

Comments

Loading comments…