UNPKG

3 kBMarkdownView Raw
1[![appveyor build](https://ci.appveyor.com/api/projects/status/github/bitwarden/cli?branch=master&svg=true)](https://ci.appveyor.com/project/bitwarden/cli)
2[![Join the chat at https://gitter.im/bitwarden/Lobby](https://badges.gitter.im/bitwarden/Lobby.svg)](https://gitter.im/bitwarden/Lobby)
3
4# Bitwarden Command-line Interface
5
6[![Platforms](https://imgur.com/AnTLX0S.png "Platforms")](https://help.bitwarden.com/article/cli/#download--install)
7
8The Bitwarden CLI is a powerful, full-featured command-line interface (CLI) tool to access and manage a Bitwarden vault. The CLI is written with TypeScript and Node.js and can be run on Windows, macOS, and Linux distributions.
9
10![CLI](https://raw.githubusercontent.com/bitwarden/brand/master/screenshots/cli-macos.png "CLI")
11
12## Download/Install
13
14You can install the Bitwarden CLI multiple different ways:
15
16**NPM**
17
18If you already have the Node.js runtime installed on your system, you can install the CLI using NPM. NPM makes it easy to keep your installation updated and should be the preferred installation method if you are already using Node.js.
19
20```bash
21npm install -g @bitwarden/cli
22```
23
24**Native Executable**
25
26We provide natively packaged versions of the CLI for each platform which have no requirements on installing the Node.js runtime. You can obtain these from the [downloads section](https://help.bitwarden.com/article/cli/#download--install) in the documentation.
27
28**Other Package Managers**
29
30- [Chocolatey](https://chocolatey.org/packages/bitwarden-cli)
31 ```powershell
32 choco install bitwarden-cli
33 ```
34- [Homebrew](https://formulae.brew.sh/formula/bitwarden-cli)
35 ```bash
36 brew install bitwarden-cli
37 ```
38- [Snap](https://snapcraft.io/bw)
39 ```bash
40 sudo snap install bw
41 ```
42
43## Documentation
44
45The Bitwarden CLI is self-documented with `--help` content and examples for every command. You should start exploring the CLI by using the global `--help` option:
46
47```bash
48bw --help
49```
50
51This option will list all available commands that you can use with the CLI.
52
53Additionally, you can run the `--help` option on a specific command to learn more about it:
54
55```bash
56bw list --help
57bw create --help
58```
59
60**Detailed Documentation**
61
62We provide detailed documentation and examples for using the CLI in our help center at https://help.bitwarden.com/article/cli/.
63
64## Build/Run
65
66**Requirements**
67
68- [Node.js](https://nodejs.org/)
69
70**Run the app**
71
72```bash
73npm install
74npm run sub:init # initialize the git submodule for jslib
75npm run build:watch
76```
77
78You can then run commands from the `./build` folder:
79
80```bash
81node ./build/bw.js login
82```
83
84## Contribute
85
86Code contributions are welcome! Please commit any pull requests against the `master` branch. Learn more about how to contribute by reading the [`CONTRIBUTING.md`](CONTRIBUTING.md) file.
87
88Security audits and feedback are welcome. Please open an issue or email us privately if the report is sensitive in nature. You can read our security policy in the [`SECURITY.md`](SECURITY.md) file.