Installation
Prerequisites
Section titled “Prerequisites”- Node.js >= 18
Check your Node.js version:
node --version # Should be v18.0.0 or higherInstall from npm
Section titled “Install from npm”npm install -g bwrbOr with pnpm:
pnpm add -g bwrbInstall from Source
Section titled “Install from Source”Clone the repository and build:
git clone https://github.com/3mdistal/bwrb.gitcd bwrbpnpm installpnpm buildpnpm link --global # Makes 'bwrb' available globallyDevelopment Mode
Section titled “Development Mode”Run without building (useful for contributing):
pnpm dev -- new ideaVerify Installation
Section titled “Verify Installation”bwrb --versionbwrb --helpYou should see the version number and a list of available commands.
Shell Completion
Section titled “Shell Completion”Enable tab completion for commands, types, and paths. See Shell Completion for advanced configuration.
Add to ~/.bashrc:
eval "$(bwrb completion bash)"Add to ~/.zshrc:
eval "$(bwrb completion zsh)"Run once to install:
bwrb completion fish > ~/.config/fish/completions/bwrb.fishWhat Gets Completed
Section titled “What Gets Completed”- Commands:
bwrb <TAB>showsnew,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
Environment Variables
Section titled “Environment Variables”| Variable | Description | Default |
|---|---|---|
BWRB_VAULT | Default vault path | Current directory |
BWRB_DEFAULT_APP | Default app for bwrb open | obsidian |
EDITOR / VISUAL | Editor for --app editor | — |
Example:
export BWRB_VAULT=~/notesexport BWRB_DEFAULT_APP=editorUninstall
Section titled “Uninstall”If installed via npm:
npm uninstall -g bwrbIf installed from source:
pnpm unlink --global # In the bwrb directoryTroubleshooting
Section titled “Troubleshooting””command not found: bwrb”
Section titled “”command not found: bwrb””Make sure your npm global bin directory is in your PATH:
npm bin -g # Shows the global bin pathAdd this path to your shell configuration if needed.
Permission errors on npm install
Section titled “Permission errors on npm install”Use a Node version manager like nvm or fnm to avoid permission issues with global installs.
Next Steps
Section titled “Next Steps”Once installed, see the Quick Start guide to create your first schema and note.