Sign inSign up

tangowithfoxtrot/bw-cli

By tangowithfoxtrot

Updated over 1 year ago

The latest Bitwarden CLI in a Docker image

Image
Developer tools
0

100K+

tangowithfoxtrot/bw-cli repository overview

bw-cli

The latest Bitwarden CLI in a Docker container.

Repo: tangowithfoxtrot/bw-docker

Usage

Interactive CLI

docker run -v $HOME/.config/Bitwarden\ CLI/:/root/.config/Bitwarden\ CLI/ -it tangowithfoxtrot/bw-cli:latest login

Serve API

Create a local Vault Management API instance:

docker-compose.yml

services:
  bw_api:
    container_name: bw_api
    hostname: bw_api
    platform: linux/amd64
    image: tangowithfoxtrot/bw-cli:${TAG:-latest}
    env_file:
      - .env
    environment:
      UNLOCK_VAULT: true
    # volumes: # uncomment to use Bitwarden CLI data from host
    #   - "$HOME/.config/Bitwarden CLI:/root/.config/Bitwarden CLI" # Linux
    #   - "$HOME/Library/Application Support/Bitwarden CLI:/root/.config/Bitwarden CLI" # macOS
    ports:
      - "127.0.0.1:${SERVE_PORT:-8087}:${SERVE_PORT:-8087}"
    healthcheck:
      test: curl -f http://localhost:${SERVE_PORT:-8087}/status || exit 1
      interval: 5s
      timeout: 2s
      retries: 3
      start_period: 5s

Tag summary

Content type

Image

Digest

sha256:8d12c8165

Size

161 MB

Last updated

over 1 year ago

docker pull tangowithfoxtrot/bw-cli