# @bitwarden/cli

> A secure and free password manager for all of your devices.

Latest version **2026.9.1** (published 2026-10-01) · SEE LICENSE IN LICENSE.txt license · 0 weekly downloads

## Install

```sh
npm install @bitwarden/cli
pnpm add @bitwarden/cli
yarn add @bitwarden/cli
bun add @bitwarden/cli
```

Provides the command `bw`.

## Health

**Score 65/100 (B)** — status: active.

Positive: no vulnerabilities; has provenance; recently updated; high maintenance score; popular repo.

Warnings: low downloads; no types; no esm support; large bundle.

## Facts

| | |
|---|---|
| Version | 2026.9.1 |
| Published | 2026-10-01 |
| First published | 2018-05-15 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.txt |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=22 |
| Dependencies | 27 |
| Unpacked size | 17.6 MB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 13840 |
| Author | Bitwarden Inc. |
| Maintainers | mchecinskibw, racostabw, agalles, fntyler, bbiete, aj-bw, bribitwarden, apixley_bw, bwvgrassia |
| Keywords | bitwarden, password, vault, password manager, cli |

## Links

- npm: https://www.npmjs.com/package/@bitwarden/cli
- Repository: https://github.com/bitwarden/clients
- Homepage: https://bitwarden.com
- Issues: https://github.com/bitwarden/clients/issues
- npm.io page: https://npm.io/package/@bitwarden/cli

## Dependencies (27)

- [koa](https://npm.io/package/koa.md) 3.1.2
- [lunr](https://npm.io/package/lunr.md) 2.3.9
- [open](https://npm.io/package/open.md) 8.4.2
- [rxjs](https://npm.io/package/rxjs.md) 7.8.1
- [chalk](https://npm.io/package/chalk.md) 4.1.2
- [jsdom](https://npm.io/package/jsdom.md) 26.1.0
- [jszip](https://npm.io/package/jszip.md) 3.10.1
- [lowdb](https://npm.io/package/lowdb.md) 1.0.0
- [tldts](https://npm.io/package/tldts.md) 7.4.2
- [multer](https://npm.io/package/multer.md) 2.2.0
- [semver](https://npm.io/package/semver.md) 7.7.3
- [zxcvbn](https://npm.io/package/zxcvbn.md) 4.4.2
- [core-js](https://npm.io/package/core-js.md) 3.50.0
- [inquirer](https://npm.io/package/inquirer.md) 8.2.6
- [koa-json](https://npm.io/package/koa-json.md) 2.0.2
- [commander](https://npm.io/package/commander.md) 14.0.0
- [form-data](https://npm.io/package/form-data.md) 4.0.6
- [papaparse](https://npm.io/package/papaparse.md) 5.5.3
- [node-fetch](https://npm.io/package/node-fetch.md) 2.7.0
- [node-forge](https://npm.io/package/node-forge.md) 1.4.0
- [@koa/multer](https://npm.io/package/@koa/multer.md) 4.0.0
- [@koa/router](https://npm.io/package/@koa/router.md) 15.7.0
- [big-integer](https://npm.io/package/big-integer.md) 1.6.52
- [browser-hrtime](https://npm.io/package/browser-hrtime.md) 1.1.8
- [koa-bodyparser](https://npm.io/package/koa-bodyparser.md) 4.4.1
- [proper-lockfile](https://npm.io/package/proper-lockfile.md) 4.1.2
- [https-proxy-agent](https://npm.io/package/https-proxy-agent.md) 9.1.0

## Alternatives

- [@salesforce/cli](https://npm.io/package/@salesforce/cli.md) — 389.7K weekly downloads
- [@mintlify/cli](https://npm.io/package/@mintlify/cli.md) — 208.9K weekly downloads
- [@grafana/e2e-selectors](https://npm.io/package/@grafana/e2e-selectors.md) — 128.7K weekly downloads
- [mintlify](https://npm.io/package/mintlify.md) — 112.0K weekly downloads
- [@intlayer/cli](https://npm.io/package/@intlayer/cli.md) — 22.8K weekly downloads

## Recent versions

- 2026.9.1 (latest) — 2026-10-01
- 2026.9.0 — 2026-09-17
- 2026.8.0 — 2026-08-20
- 2026.7.0 — 2026-07-23
- 2026.6.0 — 2026-06-25
- 2026.5.0 — 2026-05-29
- 2026.4.2 — 2026-05-20
- 2026.4.1 — 2026-04-23
- 2026.3.0 — 2026-04-02
- 2026.2.0 — 2026-03-05
- 2026.1.0 — 2026-02-05
- 2025.12.1 — 2026-01-13
- 2025.12.0 — 2025-12-11
- 2025.11.0 — 2025-11-14
- 2025.10.0 — 2025-10-16
- … 99 more at https://npm.io/package/@bitwarden/cli/versions

## README

[![Github Workflow build on main](https://github.com/bitwarden/clients/actions/workflows/build-cli.yml/badge.svg?branch=main)](https://github.com/bitwarden/clients/actions/workflows/build-cli.yml?query=branch:main)

# Bitwarden Command-line Interface

[![Platforms](https://imgur.com/AnTLX0S.png "Platforms")](https://help.bitwarden.com/article/cli/#download--install)

The 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.

## Developer Documentation

Please refer to the [CLI section](https://contributing.bitwarden.com/getting-started/clients/cli/) of the [Contributing Documentation](https://contributing.bitwarden.com/) for build instructions, recommended tooling, code style tips, and lots of other great information to get you started.

## User Documentation

### Download/Install

You can install the Bitwarden CLI multiple different ways:

**NPM**

If 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.

```bash
npm install -g @bitwarden/cli
```

**Native Executable**

We 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.

**Other Package Managers**

- [Chocolatey](https://chocolatey.org/packages/bitwarden-cli)
  ```powershell
  choco install bitwarden-cli
  ```
- [Homebrew](https://formulae.brew.sh/formula/bitwarden-cli)
  ```bash
  brew install bitwarden-cli
  ```
  > ⚠️ The homebrew version is not recommended for all users.
  >
  > Homebrew pulls the CLI's GPL build and does not include device approval commands for Enterprise SSO customers.
- [Snap](https://snapcraft.io/bw)
  ```bash
  sudo snap install bw
  ```

### Help Command

The 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:

```bash
bw --help
```

This option will list all available commands that you can use with the CLI.

Additionally, you can run the `--help` option on a specific command to learn more about it:

```bash
bw list --help
bw create --help
```

### Help Center

We provide detailed documentation and examples for using the CLI in our help center at https://help.bitwarden.com/article/cli/.

---
_Source: https://npm.io/package/@bitwarden/cli · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
