{"id":37135541,"url":"https://github.com/yousef-ysph/bitbucket-cli","last_synced_at":"2026-01-14T15:48:17.460Z","repository":{"id":257813629,"uuid":"850189011","full_name":"yousef-ysph/bitbucket-cli","owner":"yousef-ysph","description":"Bitbucket cli for the bitbucket api","archived":false,"fork":false,"pushed_at":"2025-02-20T12:37:53.000Z","size":58,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-02-20T13:34:03.786Z","etag":null,"topics":["bitbucket","bitbucket-cli","bitbucket-client"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yousef-ysph.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-08-31T05:10:20.000Z","updated_at":"2025-02-20T12:37:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"7c195d3b-d4a3-41aa-bce1-518664ee837e","html_url":"https://github.com/yousef-ysph/bitbucket-cli","commit_stats":null,"previous_names":["yousef-ysph/bitbucket-cli"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yousef-ysph/bitbucket-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousef-ysph%2Fbitbucket-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousef-ysph%2Fbitbucket-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousef-ysph%2Fbitbucket-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousef-ysph%2Fbitbucket-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yousef-ysph","download_url":"https://codeload.github.com/yousef-ysph/bitbucket-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yousef-ysph%2Fbitbucket-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28424969,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T15:24:48.085Z","status":"ssl_error","status_checked_at":"2026-01-14T15:23:41.940Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bitbucket","bitbucket-cli","bitbucket-client"],"created_at":"2026-01-14T15:48:16.603Z","updated_at":"2026-01-14T15:48:17.441Z","avatar_url":"https://github.com/yousef-ysph.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bitbucket CLI\n\nA command line tool to help access the Bitbucket API. It brings Pipelines, pull requests and other Bitbucket features to the terminal. All which come with command completion\n\n# Downloads \n\n[Releases](https://github.com/ysph-tech/bitbucket-cli/releases)\n\n\n# Features\n\n## Getting started\n\nAfter installation you need to add your username (not email) and bitbucket generated password in your config file `%HOMEDIR%/.bitbucketcmd.json`\n\nYou can use the setup commandline to input the values instead of editing the file directly \n\n```bash\nbitbucket setup password\nbitbucket setup token\n```\n\n[Create password](https://bitbucket.org/account/settings/app-passwords/)\n\n```json\n{\n  \"password\": \"\",\n  \"user\": \"\"\n}\n```\nor via repo access token\n[https://bitbucket.org/$REPO/admin/access-tokens](https://bitbucket.org/$REPO/admin/access-tokens)\n```json\n{\n    \"token\":\"\"\n}\n```\nPermission should be to have `READ/WRITE` for pipelines, pull-requests\n\nhttps://developer.atlassian.com/cloud/bitbucket/rest/intro/#authentication\n\n\n## Overview\n\nAll commands that run on repos will automaticlly asign the repo to current directory remote origin. Other wise you can use the --repo flag to set a repo\n\n## Pipelines\n\n### List Pipelines\n\nList pipelines \n\n**Usage**\n\n```bash\nbitbucket pipelines\nbitbucket pipelines -p 2\n```\n**Flags**\n\n| Name | Description | Default |\n| ---- | ------------ | ------- |\n| `--page` `-p` |  Current page pagination | 1 |\n\n### Pipeline details\n\nFetches pipeline details\nUsage\n\n```bash\nbitbucket pipelines $PIPELINE_ID\n```\n**Example**\n\n```bash\nbitbucket pipelines 12 \nbitbucket pipelines 12 -d #For detailed view including script \n```\n\nYou can use the pipeline uuid or build number\n\n| Name | Description | Default |\n| ---- | ------------ | ------- |\n| `--detailed` `-d` | Includes pipeline scripts steps | 1 |\n\n### Run pipeline\n\nYou can run a pipeline by specifying the pipeline using the `--pipeline` `-p` flag and which branch (`--branch` `-b`) or which commit (`--commit` `-c`) to run it on \n\n**Example**\n\n```bash\nbitbucket pipelines run -p deploy-to-staging -b master\nbitbucket pipelines run -p custom:deploy-to-staging -c cba0e8d21da448f1264351ba2ebe5545958aa2ab\n```\n\nIf the pipeline is custom it can be named without a prefix\nIf it is triggered by a tag or branch you can specify it by adding the tirgger as prefix \n\n```bash\nbitbucket pipelines run -p branches:deploy-from-master -b master\nbitbucket pipelines run -p tags:release-to-prod -c cba0e8d21da448f1264351ba2ebe5545958aa2ab\n```\n\n\n| Name | Description | Example |\n| ---- | ------------ | ------ |\n| `--pipeline` `-p` | Pipeline name | deploy-to-staging |\n| `--branch` `-b` | Targeted branch name | master |\n| `--commit` `-c` | Targeted commit name | cba0e8d21da448f1264351ba2ebe5545958aa2ab  |\n| `--variables` `-v` | Targeted commit name | [{ \"key\": \"var1key\",  \"value\": \"var1value\", \"secured\": true}] |\n\n### Pipeline Step\n\nGets pipeline's step log\n\n**Usage**\n\n```bash\nbitbucket pipelines step -p $PIPELINE_ID -s $STEP_ID \n```\n**Flags**\n\n| Name | Description | Example |\n| ---- | ------------ | ------- |\n| `--pipeline` `-p` | Pipeline Id or build number | 1 |\n| `--step` `-s` | step uuid | {1791efee-9e20-4c60-8a6a-bc1b071a15cc} |\n\n\n### Stop Pipeline\n\nStop pipeline\n\n**Usage**\n\n```bash\nbitbucket pipelines stop $PIPELINE_ID\n```\n\n## Pull requests\n\n### List Pull requests\n\nLists pull requests \n\n**Usage**\n\n```bash\nbitbucket pr\nbitbucket pr -p $PAGE_NUMBER\nbitbucket pr -s MERGED\n```\n**Flags**\n\n| Name | Description | Default |\n| ---- | ------------ | ------- |\n| `--page` `-p` |  Current page pagination | 1 |\n| `--state` `-s` | PR state | OPEN |\n\n### Pull request details\n\nFetches pull request details\n\n**Usage**\n\n```bash\nbitbucket pr $PR_ID\n```\n**Example**\n\n```bash\nbitbucket pr 12 \nbitbucket pr 12 -d #For detailed view including script \n```\n\n### Pull request Merge\n\nMerges pull request\n\n**Usage**\n\n```bash\nbitbucket pr merge $PR_ID\nbitbucket pr merge $PR_ID -m $MERGE_MESSAGE\nbitbucket pr merge $PR_ID -s $MERGE_STRATEGY #specifying merge strategy [fast_forward, merge_commit, squash]\nbitbucket pr merge $PR_ID -c #closes source\n```\n**Example**\n\n```bash\nbitbucket pr merge 12 \nbitbucket pr merge 12 -c \nbitbucket pr merge 12 -m \"Closing message\" \n```\n**Flags**\n\n| Name | Description | Default |\n| ---- | ------------ | ------- |\n| `--message` `-m` |  Merge message | '' |\n| `--strategy` `-s` | Merge strategy | OPEN |\n| `--close-source` `-c` | Close source | false |\n\n### Pull request decline\n\nDeclines a pull request\n\n**Usage**\n\n```bash\nbitbucket pr decline $PR_ID\n```\n**Example**\n\n```bash\nbitbucket pr decline 12 \n```\n\n## Environments\n\n### List Environments\n\nLists Environments\n\n**Usage**\n\n```bash\nbitbucket envs\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyousef-ysph%2Fbitbucket-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyousef-ysph%2Fbitbucket-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyousef-ysph%2Fbitbucket-cli/lists"}