6 releases (breaking)
new 0.5.0 | Apr 26, 2024 |
---|---|
0.4.0 | Dec 21, 2023 |
0.3.1 | Oct 13, 2023 |
0.3.0 | Jul 26, 2023 |
0.1.0 | Mar 20, 2023 |
#1 in #bitwarden
395KB
9K
SLoC
Bitwarden Secrets Manager CLI
A Rust CLI for interacting with the Bitwarden Secrets Manager. This is a beta release and might be missing some functionality.
Install
cargo install bws
Or download a pre-built binary from the Releases page.
Usage
bws --help
How to enable shell autocompletions
Zsh
If completion is not enabled already, you need to enable it first:
echo "autoload -U compinit; compinit" >> ~/.zshrc
Enable autocompletions for the current user:
echo 'source <(/path/to/bws completions zsh)' >> ~/.zshrc
Bash
Enable autocompletions for the current user:
echo 'source <(/path/to/bws completions bash)' >> ~/.bashrc
For more detailed documentation, please refer to the Secrets Manager CLI help article.
Docker
We also provide a docker image preloaded with the bws
cli.
# From the root of the repository
docker build -f crates/bws/Dockerfile -t bitwarden/bws .
docker run --rm -it bitwarden/bws --help
To use a configuration file, utilize docker bind mounting to expose it to the container:
docker run --rm -it -v "$HOME"/.bws:/home/app/.bws bitwarden/bws --help
Dependencies
~39–56MB
~1M SLoC