Quick Start
Your First Snippet
Section titled “Your First Snippet”Create a file with template variables and store it:
// errorHandler.js// __author Your Name// __desc Custom error handler// __var bl__LOG_LEVEL = error
function handleError(err) { console[bl__LOG_LEVEL](err.message);}
module.exports = handleError;bl store errorHandler.js# ✓ Snippet stored: errorHandler@1.jsUse it in any project:
cd ~/another-projectbl add errorHandler ./src/utils# bl__LOG_LEVEL [error]: warn# ✓ Snippet added: errorHandler@1.js → ./src/utils/errorHandler.jsThe metadata comments are stripped, bl__LOG_LEVEL is replaced with warn. Clean code, ready to use.
Instant .gitignore
Section titled “Instant .gitignore”The gi alias ships by default - wired to 500+ gitignore templates:
bl gi Node # Node.jsbl gi Python # Pythonbl gi Go # Gobl gi Global/macOS # macOS globalFetch From GitHub Without git clone
Section titled “Fetch From GitHub Without git clone”# Single file from any public repobl use alice/snippets:utils/debounce.js ./src/utils
# Entire subfolder as a templatebl use vercel/next.js:examples/with-tailwindcss ./my-project
# Save to local store for reuse laterbl add alice/snippets:utils/debounce.js -rStore a Project Template (Stack)
Section titled “Store a Project Template (Stack)”cd my-express-templatebl init # Creates boiler.stack.json (name, ignore patterns)bl store # Stores the entire directory as a stackStart new projects from it:
mkdir new-api && cd new-apibl add express-template --spread # Spreads contents into ./npm installEssential Commands
Section titled “Essential Commands”bl store <file> # Store a file as snippetbl store <folder> # Store a folder as stack (requires bl init first)bl add <name> [path] # Add snippet or stack to a path (default: ./boiler)bl add <name> -r # Fetch from remote registry and save locallybl use <url-or-repo> [path] # One-shot fetch (no local caching)bl gi <language> # Instant gitignore for any languagebl ls # List all stored resourcesbl search <query> # Search by name (add -r to search remote)bl info <name> # Show details about a resourcebl new <script> # Run a .bl automation scriptbl alias [k=v] # Create a command shortcutbl var [k=v] # Set a reusable variablebl conf # View or edit your configurationbl clean # Remove resources from your storebl self update # Update Boiler to the latest versionNext Steps
Section titled “Next Steps”- Use Cases - Real-world workflows and examples
- Project Structure - How
bl/andboiler/work - Boiler Scripts (.bl) - Write full automation pipelines
- Remote Fetching - Fetch from GitHub, GitLab, anywhere