#cli #bitbucket #git #clone

bin+lib bitbucket_server_cli

A CLI for cloning and updating entire projects from bitbucket server

24 releases

0.4.5 Oct 25, 2021
0.4.2 Sep 3, 2021
0.4.0 May 9, 2021
0.3.15 Jan 7, 2021
0.2.2 Mar 29, 2020

#402 in Development tools

Download history 2/week @ 2022-12-02 2/week @ 2022-12-09 25/week @ 2022-12-16 2/week @ 2022-12-23 1/week @ 2022-12-30 3/week @ 2023-01-13 8/week @ 2023-01-20 9/week @ 2023-01-27 25/week @ 2023-02-03 66/week @ 2023-02-10 49/week @ 2023-02-17 2/week @ 2023-03-10

65 downloads per month

MIT license

1.5K SLoC

BitBucket Server Cli

GH-Build Rust audit

repo dependency status release dependency status

unsafe forbidden warnings forbidden

Crates.io Crates.io Crates.io Homebrew Linuxbrew

State Maintenance

Screen recording



# From brew
brew install jensim/bitbucket_server_cli/bitbucket_server_cli

# From cargo
cargo install bitbucket_server_cli

# From source
cargo install --path . --force


& Windows subsystem Linux


brew install jensim/bitbucket_server_cli-linux/bitbucket_server_cli
# or
brew tap jensim/linuxbrew-bitbucket_server_cli-linux git@github.com:jensim/linuxbrew-bitbucket_server_cli-linux.git
brew install bitbucket_server_cli


Head over to the releases page and snag the windows *.exe archive. Or build from source. Or install from Cargo, which will build from source.

Interactive mode doesn't work in Cygwin/GitBash terminals due to lacking support in dialoguer, stick to using cmd.exe and PowerShell terminals


# Fully interactive
bitbucket_server_cli clone

# Partially interactive
bitbucket_server_cli clone -s https://example.com

# Batch mode 
bitbucket_server_cli -B -s https://example.com -A

# 'Safe' password usage in batch mode. Depending on terminal, password might be seen in process description.
IFS= read -rs BITBUCKET_PASSWORD < /dev/tty
bitbucket_server_cli -s https://example.com -A -u jensim -W

# Run from source
cargo run -- clone

git hooks

I've set up a little pre-commit bash-script that will run fmt, clippy & integration-tests

git config core.hooksPath .githooks
# or


  • Only tested on Mac OS X
  • Use at own risk
  • You are responsible for any and all actions you perform with this tool
    • Legal
    • Company policy
    • Any other


~395K SLoC