bw-vault

Automate Bitwarden vault management via bw CLI commands.

Updated Mar 2, 2019
One-click install
npx skills add https://github.com/trmaphi/dotfiles --skill bw-vault
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bw-vault
Source: https://github.com/trmaphi/dotfiles/tree/main/.claude/skills/bw-vault
Command: npx skills add https://github.com/trmaphi/dotfiles --skill bw-vault

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Bitwarden Vault CLI (bw) enables seamless management of vault items, secure notes, and credentials directly from the terminal, simplifying secrets handling in scripts and workflows.

Core Features & Use Cases

  • Manage items, secure notes, and folders with bw commands from the shell.
  • Preserve session context across pipelines by using a script file or environment variables, avoiding session loss.
  • Use in automation scenarios like CI/CD or local admin tasks to create, read, update, and list secrets.

Quick Start

Run a bw command to list all vault items for a given search or folder.

Frequently Asked Questions about bw-vault

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage Bitwarden vault items from the command line?

You can manage Bitwarden vault items from the command line by using bw commands to create, read, update, and list items, secure notes, and folders directly within shell scripts and terminal workflows.

How do I preserve my Bitwarden session across terminal pipelines?

To preserve your Bitwarden session across pipelines, use a script file or environment variables like BW_SESSION after running bw unlock, ensuring your authentication context is maintained without session loss.

Can I use the Bitwarden CLI for secrets automation in CI/CD pipelines?

Yes, the Bitwarden CLI is designed for secrets automation in CI/CD pipelines and local admin tasks, allowing scripts to securely retrieve and manage credentials using session preservation patterns.

What is the best way to handle secure notes and folders using bw commands?

The best way to handle secure notes and folders using bw commands is by executing built-in shell operations to list, create, and update vault items while ensuring safe credential handling via environment variables.

Why does my Bitwarden session expire when running bw commands in scripts?

Your Bitwarden session expires in scripts because the session context is lost between pipe executions; storing the BW_SESSION environment variable or using a script file prevents this session loss.

Do I need to run bw unlock every time I execute a vault command in a script?

You do not need to run bw unlock every time; instead, unlock once and export the generated BW_SESSION token to your environment variables to maintain authentication across subsequent commands.