New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bitbucket-server-cli

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitbucket-server-cli

CLI for interacting with Bitbucket Server

0.4.0
latest
Source
npm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

bitbucket-server-cli

CLI for interacting with Bitbucket Server

license npm Travis Dependency Status devDependency Status

What is bitbucket-server-cli?

bitbucket-server-cli helps you quickly scan your Bitbucket repositories. Currently it can:

  • Audit permissions to ensure all of your repositories are configured similarly
  • Finds stale pull requests
  • Compiles statistics about pull requests

How do I install?

First thing first, let's make sure you have the necessary pre-requisites.

System Dependencies

Node

Install

  • npm install bitbucket-server-cli -g

Set environment variables

Set the following environment variables:

  • BITBUCKET_BASE_URL, ex: https://bitbucketserver.myserver.com
  • BITBUCKET_USERNAME, ex: username
  • BITBUCKET_PASSWORD, ex: password

Commands and configuration

NOTE: You will need ADMIN permissions to each project/repo you are auditing.

Global Options

OptionAliasDescription
bitbucket-server-cli --helpbitbucket-server-cli -hLists supported CLI options
bitbucket-server-cli --versionbitbucket-server-cli -vLists the current version number
bitbucket-server-cli --projectsbitbucket-server-cli -pComma separated list of Bitbucket project keys

Commands

bitbucket-server-cli audit-permissions

Audits permissions

Alias: ap

Permissions README

Examples bitbucket-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.

bitbucket-server-cli stale-prs

Fetches a list of stale pull requests

Alias: sp

Stale PRs README

Examples bitbucket-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.

bitbucket-server-cli pr-stats

Fetch PRs stats

Alias: s

Pull Request Stats README

Examples bitbucket-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.

Contributing

Please see CONTRIBUTING.md.

Release History

Please see CHANGELOG.md.

License

Copyright (c) 2017-2018 Thomas Lindner. Licensed under the MIT license.

Keywords

bitbucket

FAQs

Package last updated on 03 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts