Quick Start
Learn the basics of Boiler in just a few minutes.
1. Store Your First Snippet
Section titled “1. Store Your First Snippet”Create and store a simple error handler:
# Create a fileecho "function handleError(err) { console.error(err); }" > errorHandler.js
# Store itbl store errorHandler.jsOutput: ✓ Snippet stored: errorHandler@1.js
2. List Your Snippets
Section titled “2. List Your Snippets”View all your stored snippets:
bl ls --snippetsOutput:
📄 Snippets: • errorHandler@1.js
📦 Stacks: No stacks found3. Use the Snippet in Another Project
Section titled “3. Use the Snippet in Another Project”Navigate to a different directory and add the snippet:
cd ../my-other-projectbl add errorHandlerOutput: ✓ Snippet added: errorHandler@1.js → boiler/errorHandler.js
The snippet is copied to the default boiler/ directory.
4. Store a Project Stack
Section titled “4. Store a Project Stack”Store an entire project directory as a stack:
# First, initialize stack config (required before storing a directory)cd my-express-appbl init# Prompts for stack name, description, author, and files to ignore
# Then store itbl storeOutput: ✓ Stored stack 'express-starter@1' at /path/to/store/stacks/express-starter@1
5. Initialize a New Project from Stack
Section titled “5. Initialize a New Project from Stack”Start a new project using your stack:
mkdir new-projectcd new-projectbl add express-starterOutput: ✓ Stack added: express-starter@1 → boiler/express-starter
Your stack is copied to ./boiler/express-starter by default.
Common Commands
Section titled “Common Commands”Store Resources
Section titled “Store Resources”bl store <file> # Store a snippetbl store <folder> --stack # Store a stackAdd Resources
Section titled “Add Resources”bl add <name> # Add snippet/stack into ./boilerbl add <name> <path> # Add to a specific relative/absolute pathbl add <name> --spread # Spread stack contents into destinationbl add <name@version.ext> # Add specific versionbl add <name> -r # Fetch from remote registry and save locallybl use <url-or-repo> # One-shot fetch from anywhere (no local store)List Resources
Section titled “List Resources”bl ls # List allbl ls --snippets # List only snippetsbl ls --stacks # List only stacksGet Information
Section titled “Get Information”bl info <name> # Show resource detailsbl path # Show store locationSearch and Clean
Section titled “Search and Clean”bl search <query> # Search by namebl clean <name> # Remove a resourceWhat You've Learned
Section titled “What You've Learned”- ✓ Store files as snippets with
bl store - ✓ Store directories as stacks with
bl store --stack - ✓ List resources with
bl ls - ✓ Add resources with
bl add(auto-detects single versions) - ✓ Get info with
bl info
You're now ready to use Boiler in your daily workflow!