Skip to content

Installation

  • Node.js >= 18

Check your Node.js version:

Terminal window
node --version # Should be v18.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 new, edit, list, open, etc.
  • 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_VAULTDefault vault pathCurrent directory
BWRB_DEFAULT_APPDefault app for bwrb openobsidian
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 bin -g # Shows the 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.