Skip to main content
The cops bitbucket repo commands let you inspect Bitbucket repositories. They call the Bitbucket REST API (/rest/api/1.0).

cops bitbucket repo get

Fetch details for a single Bitbucket repository.Alias: cops bitbucket repo details

Usage

cops bitbucket repo get --project <projectKey> --repo <repoSlug> [flags]

Flags

--project
string
required
Bitbucket project key (e.g. MYPROJ).
--repo
string
required
Bitbucket repository slug (e.g. my-service).
--output
string
default:"table"
Output format: table, json, or markdown.
--insecure
boolean
default:"false"
Disable TLS certificate validation. Use only with self-signed certificates in trusted networks.
--profile
string
Override the active config profile.

Output columns

id, name, slug, projectKey, projectName

Examples

cops bitbucket repo get --project MYPROJ --repo my-service
id   name        slug        projectKey  projectName
───  ──────────  ──────────  ──────────  ──────────────
42   my-service  my-service  MYPROJ      My Project

cops bitbucket branch

List branches and check whether a branch exists.

cops bitbucket commits

List commits and inspect build statuses.

Build docs developers (and LLMs) love