Configurable application for interacting with Bitbucket Server
CLI for interacting with Bitbucket Server
bitbucket-server-cli helps you quickly scan your Bitbucket repositories.
Currently it can:
First thing first, let’s make sure you have the necessary pre-requisites.
npm install bitbucket-server-cli -g
Set the following environment variables:
https://bitbucketserver.myserver.com
username
password
NOTE: You will need ADMIN permissions to each project/repo you are auditing.
Option | Alias | Description |
---|---|---|
bitbucket-server-cli —help | bitbucket-server-cli -h | Lists supported CLI options |
bitbucket-server-cli —version | bitbucket-server-cli -v | Lists the current version number |
bitbucket-server-cli —projects | bitbucket-server-cli -p | Comma separated list of Bitbucket project keys |
Audits permissions
Alias: ap
Examplesbitbucket-server-cli -p "MYPROJECTKEY,MYPROJECTKEY2" -c "./permissionsConfig.json" audit-permissions
bitbucket-server-cli -p "MYPROJECTKEY,MYPROJECTKEY2" -c "./permissionsConfig.json" ap
Please see the Permissions README for additional examples.
Fetches a list of stale pull requests
Alias: sp
Examplesbitbucket-server-cli -p "MYPROJECTKEY,MYPROJECTKEY2" -s "30 days" stale-prs
bitbucket-server-cli -p "MYPROJECTKEY,MYPROJECTKEY2" -s "30 days" sp
Please see the Stale PRs README for additional examples.
Fetch PRs stats
Alias: s
Examplesbitbucket-server-cli -p "MYPROJECTKEY,MYPROJECTKEY2" -r "30 days" pr-stats
bitbucket-server-cli -p "MYPROJECTKEY,MYPROJECTKEY2" -r "30 days" s
Please see the Pull Request Stats README for additional examples.
Please see CONTRIBUTING.md.
Please see CHANGELOG.md.
Copyright (c) 2017-2020 Thomas Lindner. Licensed under the MIT license.