Skip to content

F2BEAR/bwem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Bitwarden Environment Manager (BWEM)

A simple bash script to load environment variables from Bitwarden secure notes.

Prerequisites

Installation

  1. Clone this repository:
git clone https://github.com/F2BEAR/bwem
cd bwem
  1. Make the script executable:
chmod +x bwem.sh

Usage

  1. Create a secure note in Bitwarden with your environment variables in KEY=VALUE format (one per line):
DB_HOST=localhost
DB_USER=admin
API_KEY=your-secret-key
  1. Load the variables into your current terminal session:
source bwem.sh <note-name>
  1. The script will:
    • Unlock your Bitwarden vault (if needed)
    • Search for the specified note
    • Export all variables to your current session

Example

source bwem.sh "Production Secrets"

The variables will remain available in your terminal until you close it or manually unset them.

Unloading Variables

To remove all loaded variables:

unset $(compgen -v | grep -E '^[A-Z_]+$')

About

Load environment variables from Bitwarden secure notes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages