CLI Reference
The bbkt CLI provides an interactive, terminal-native experience for managing Bitbucket workspaces, repositories, pipelines, issues, and pull requests.
Core Commands
Section titled “Core Commands”bbkt profile
Section titled “bbkt profile”Manage local authentication profiles and APIs tokens.
# List all active credentials and their scopesbbkt profile list
# Delete a profile from the local keychainbbkt profile delete <name>
# Force refresh the cached accessible workspaces listbbkt profile refreshbbkt workspaces
Section titled “bbkt workspaces”Interact with Bitbucket Workspaces.
# List all accessible workspacesbbkt workspaces list
# Get details about a specific workspacebbkt workspaces get [workspace_slug]bbkt repos
Section titled “bbkt repos”Manage Git repositories.
# List all repositories in a workspacebbkt repos list [workspace_slug]
# Get details for a specific repositorybbkt repos get [workspace_slug] [repo_slug]
# Create a new repositorybbkt repos create [workspace_slug]
# Delete a repositorybbkt repos delete [workspace_slug] [repo_slug]bbkt prs
Section titled “bbkt prs”Manage Pull Requests.
# List open pull requestsbbkt prs list [workspace_slug] [repo_slug]
# Get a specific pull requestbbkt prs get [workspace_slug] [repo_slug] [pr_id]
# Create a new pull request (prompts for title/branch)bbkt prs create [workspace_slug] [repo_slug]
# Approve or decline a pull requestbbkt prs approve [workspace_slug] [repo_slug] [pr_id]bbkt prs decline [workspace_slug] [repo_slug] [pr_id]
# Merge a pull requestbbkt prs merge [workspace_slug] [repo_slug] [pr_id]bbkt prs comments
Section titled “bbkt prs comments”Manage comments on Pull Requests.
# List comments on a PRbbkt prs comments list [workspace_slug] [repo_slug] [pr_id]
# Add a new commentbbkt prs comments add [workspace_slug] [repo_slug] [pr_id]
# Resolve an existing comment threadbbkt prs comments resolve [workspace_slug] [repo_slug] [pr_id] [comment_id]bbkt pipelines
Section titled “bbkt pipelines”Trigger and monitor CI/CD pipelines.
# List recent pipeline runsbbkt pipelines list [workspace_slug] [repo_slug]
# Trigger a new pipeline run manuallybbkt pipelines trigger [workspace_slug] [repo_slug]
# Stop a running pipelinebbkt pipelines stop [workspace_slug] [repo_slug] [pipeline_uuid]
# Stream live step logs to stdoutbbkt pipelines logs [workspace_slug] [repo_slug] [pipeline_uuid] [step_uuid]bbkt issues
Section titled “bbkt issues”Interact with the repository Issue Tracker.
# List open issuesbbkt issues list [workspace_slug] [repo_slug]
# Create a new issuebbkt issues create [workspace_slug] [repo_slug]bbkt source
Section titled “bbkt source”Directly interact with remote source code without a local Git clone.
# View file contentsbbkt source read [workspace_slug] [repo_slug] [filepath]
# Browse repository tree structurebbkt source tree [workspace_slug] [repo_slug]
# Search codebase nativelybbkt source search [workspace_slug] [repo_slug]
# Commit a new file or modification directlybbkt source write [workspace_slug] [repo_slug] [filepath]