# bitwarden-cli を Homebrew, chocolatey, MacPorts, Nix, pacman, scoop, winget でインストール

bitwarden-cli のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:bitwarden-cli
```

## エージェント安全性の回答

bitwarden-cli accesses vault items and secrets from local workflows.

- **認証情報アクセス:** Can read passwords, notes, tokens, and vault metadata after unlock.
- **リモート変更:** Can create, edit, delete, and sync vault items.
- **公開/成果物リスク:** Can export secrets into files or downstream release commands.
- **推奨コントロール:** Gate item reads, exports, unlock, and mutations.
- **エージェント利用ガイダンス:** Allow metadata-only operations; require approval for secret retrieval, export, and item changes.

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install bitwarden-cli
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bitwarden-cli
```

  証拠: MacPorts ports tree: security/bitwarden-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bitwarden-cli
```

  証拠: nixpkgs package indexes: pkgs/by-name/bi/bitwarden-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S bitwarden-cli
```

  証拠: Arch Linux sync databases: bitwarden-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install bitwarden-cli
```

  証拠: Chocolatey community package catalog: bitwarden-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','azurestorageemulator'

- Scoop (92%):

```sh
scoop install main/bitwarden-cli
```

  証拠: Scoop official bucket manifest trees: bucket/bitwarden-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id Bitwarden.CLI -e
```

  証拠: Windows Package Manager source index: Bitwarden.CLI from https://cdn.winget.microsoft.com/cache/source.msix

## パッケージ情報

- **パッケージキー:** brew:bitwarden-cli
- **パッケージマネージャ:** Homebrew
- **バージョン:** 2026.7.0
- **ソース概要:** Secure and free password manager for all of your devices
- **ホームページ:** <https://bitwarden.com/>
- **リポジトリ:** <https://github.com/bitwarden/clients>
- **最終更新:** 2026-07-23T23:55:58Z
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- bw (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 2026.7.0
## プロジェクトの歴史と使われ方

Bitwarden CLI, invoked as bw, is the command-line client for Bitwarden Password Manager. Official docs describe it as a full-featured vault-management tool whose features mostly parallel Bitwarden's desktop and browser clients.

The package is significant because it puts an end-to-end encrypted password manager into shell scripts, CI jobs, server migration workflows, and terminal-first daily use.

### プロジェクトの歴史

The Bitwarden clients repository was created in 2016 and houses the web, browser extension, desktop, and CLI clients, with mobile clients split into separate iOS and Android repositories.

By the 2020s, the CLI had dedicated release tags in the clients repository, including cli-v2022.6.0 and continuing through cli-v2026.6.0. Bitwarden's CLI docs now document native executable downloads, npm installation, Chocolatey, Snap, Flatpak use through the desktop app, and GitHub checksums.

### 採用の歴史

The input package-manager data shows broad package adoption across Homebrew, Chocolatey, MacPorts, Nix, Arch, Scoop, and winget. The official docs also list npm, Chocolatey, Snap, native executables, and Flatpak-mediated use.

Bitwarden's own help center positions the CLI for interactive login, API-key login, SSO login, server geography selection, and self-hosted deployments, which explains its reach beyond personal password lookup into business and automation workflows.

### 使われ方

Typical CLI use starts with bw login, then bw unlock to generate a session key for commands that touch encrypted vault data. Official docs also document API-key login through BW_CLIENTID and BW_CLIENTSECRET environment variables for automated work.

The CLI can list, get, edit, generate, encode, import, export, and serve vault data. Package users care about the serve mode and raw/JSON output options because they let local tools consume vault data without binding to Bitwarden's GUI clients.

Bitwarden documents BITWARDENCLI_APPDATA_DIR for separate data.json configurations, which lets users keep multiple accounts or environments isolated.

### パッケージ好きにとっての重要性

bitwarden-cli is one of the canonical examples of a security GUI product with a serious command-line surface. It lets package managers deliver a password-vault client into headless machines and scripted environments without requiring a desktop app.

Its package story is also interesting because the official docs distinguish OSS and non-OSS CLI bundles on GitHub while common distribution platforms carry the default build. That distinction matters to users who audit package provenance.

For shell users, bw is a bridge between human secret storage and automation: strong enough for personal use, but scriptable enough for infrastructure migration and controlled retrieval.

### タイムライン

- 2016: bitwarden/clients repository created.
- 2022-07-05: cli-v2022.6.0 release published in the clients repository.
- 2024: Official CLI docs reference OSS and non-OSS bundle naming examples such as bw-oss-windows-2024.12.0.zip and bw-windows-2024.12.0.zip.
- 2026-06-25: cli-v2026.6.0 release published.

### Related projects

- bitwarden/server provides the backend infrastructure for Bitwarden.
- bitwarden/ios and bitwarden/android provide the mobile clients outside the clients monorepo.
- bitwarden/directory-connector supports enterprise directory synchronization.
- Bitwarden Secrets Manager is a related Bitwarden product for machine secrets, but it is distinct from the Password Manager CLI.

### ソース

- <https://bitwarden.com/help/bitwarden-security-white-paper/>
- <https://bitwarden.com/help/cli.md>
- <https://bitwarden.com/help/cli/>
- <https://github.com/bitwarden/clients#readme>
- source_facts.package-manager


## セキュリティノート

bitwarden-cli に一致するローカルシークレット処理マニフェストは見つかりませんでした。将来の対応で安定したパッケージ URL を使えるよう、Nucleus パッケージメタデータはここに公開されています。



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Credential files

- macOS: ~/Library/Application Support/Bitwarden CLI/data.json
## 他のパッケージマネージャ記録

- Nix - bitwarden-cli: normalized package name match | nixpkgs package indexes: pkgs/by-name/bi/bitwarden-cli/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - bitwarden-cli - 2026.2.0-1: normalized package name match | Arch Linux sync databases: bitwarden-cli from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The command line vault | https://github.com/bitwarden/clients
- MacPorts - bitwarden-cli: normalized package name match | MacPorts ports tree: security/bitwarden-cli/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - bitwarden-cli: normalized package name match | Chocolatey community package catalog: bitwarden-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','azurestorageemulator'
- Scoop - main/bitwarden-cli: normalized package name match | Scoop official bucket manifest trees: bucket/bitwarden-cli.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Bitwarden.CLI: normalized package name match | Windows Package Manager source index: Bitwarden.CLI from https://cdn.winget.microsoft.com/cache/source.msix


## Combined YAML source

View the package source record on GitHub. [combined/bitwarden-cli.yml](https://github.com/mxcl/pkgdb/blob/main/combined/bitwarden-cli.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
- curated agent safety answer
