Skip to content

Installation

  • Node.js >= 22

Check your Node.js version:

Terminal window
node --version # Should be v22.0.0 or higher
Terminal window
npm install -g bwrb

Or with pnpm:

Terminal window
pnpm add -g bwrb

Clone the repository and build:

Terminal window
git clone https://github.com/3mdistal/bwrb.git
cd bwrb
pnpm install
pnpm build
pnpm link --global # Makes 'bwrb' available globally

Run without building (useful for contributing):

Terminal window
pnpm dev -- new idea
Terminal window
bwrb --version
bwrb --help

You should see the version number and a list of available commands.

Enable tab completion for commands, types, and paths. See Shell Completion for advanced configuration.

Add to ~/.bashrc:

Terminal window
eval "$(bwrb completion bash)"

Add to ~/.zshrc:

Terminal window
eval "$(bwrb completion zsh)"

Run once to install:

Terminal window
bwrb completion fish > ~/.config/fish/completions/bwrb.fish
  • Commands: bwrb <TAB> shows every visible top-level command: new, edit, delete, list, recent, schema, audit, bulk, template, lineage, dashboard, init, config, and completion.
  • Options: bwrb list -<TAB> shows --type, --path, --where, etc.
  • Types: bwrb list --type <TAB> shows types from your schema
  • Paths: bwrb list --path <TAB> shows vault directories
VariableDescriptionDefault
BWRB_VAULTFallback vault path after explicit --vault and nearest-ancestor discoveryUnset
BWRB_DEFAULT_APPDefault app for bwrb list --opensystem
EDITOR / VISUALEditor for --app editor

Example:

Terminal window
export BWRB_VAULT=~/notes
export BWRB_DEFAULT_APP=editor

If installed via npm:

Terminal window
npm uninstall -g bwrb

If installed from source:

Terminal window
pnpm unlink --global # In the bwrb directory

Make sure your npm global bin directory is in your PATH:

Terminal window
npm prefix -g # Shows the global npm prefix
echo "$(npm prefix -g)/bin" # Typical global bin path

Add this path to your shell configuration if needed.

Use a Node version manager like nvm or fnm to avoid permission issues with global installs.

Once installed, see the Quick Start guide to create your first schema and note.