Installs the official Bitwarden CLI binary from Bitwarden release assets.
"features": {
"ghcr.io/sliekens/devcontainer-features/bitwarden-cli:1": {
"version": "latest"
}
}| Option | Type | Default | Description |
|---|---|---|---|
version |
string | latest |
Version to install. Use latest or a release version like 2026.2.0 or v2026.2.0. |
| Host path | Container path | Purpose |
|---|---|---|
~/.config/Bitwarden CLI |
/home/vscode/.config/Bitwarden CLI |
Vault data and session |
This directory is bind-mounted from the host so that vault data and session are preserved across container rebuilds.
Because Docker cannot bind-mount a directory that does not yet exist, consuming devcontainer.json files should add an initializeCommand to pre-create this directory on the host before the container starts:
{
"image": "mcr.microsoft.com/devcontainers/base:ubuntu",
"features": {
"ghcr.io/sliekens/devcontainer-features/bitwarden-cli:1": {}
},
"initializeCommand": "mkdir -p \"$HOME/.config/Bitwarden CLI\""
}This feature is released under the MIT License.
The installed tool is subject to its own license: Bitwarden CLI license.
- Add trailing slash to bind mount source path to mark it explicitly as a directory.
- Use bind mount from host
~/.config/Bitwarden CLIinstead of a Docker volume for persistent state.
- Fixed latest version resolution to only consider
cli-*releases, ignoring unrelatedweb-*anddesktop-*releases from the same repository.
- Initial release.