Skip to content

Quick Start

Learn the basics of Boiler in just a few minutes.

Create and store a simple error handler:

Terminal window
# Create a file
echo "function handleError(err) { console.error(err); }" > errorHandler.js
# Store it
bl store errorHandler.js

Output: ✓ Snippet stored: errorHandler@1.js

View all your stored snippets:

Terminal window
bl ls --snippets

Output:

📄 Snippets:
• errorHandler@1.js
📦 Stacks:
No stacks found

Navigate to a different directory and add the snippet:

Terminal window
cd ../my-other-project
bl add errorHandler

Output: ✓ Snippet added: errorHandler@1.js → boiler/errorHandler.js

The snippet is copied to the default boiler/ directory.

Store an entire project directory as a stack:

Terminal window
# First, initialize stack config (required before storing a directory)
cd my-express-app
bl init
# Prompts for stack name, description, author, and files to ignore
# Then store it
bl store

Output: ✓ Stored stack 'express-starter@1' at /path/to/store/stacks/express-starter@1

Start a new project using your stack:

Terminal window
mkdir new-project
cd new-project
bl add express-starter

Output: ✓ Stack added: express-starter@1 → boiler/express-starter

Your stack is copied to ./boiler/express-starter by default.

Terminal window
bl store <file> # Store a snippet
bl store <folder> --stack # Store a stack
Terminal window
bl add <name> # Add snippet/stack into ./boiler
bl add <name> <path> # Add to a specific relative/absolute path
bl add <name> --spread # Spread stack contents into destination
bl add <name@version.ext> # Add specific version
bl add <name> -r # Fetch from remote registry and save locally
bl use <url-or-repo> # One-shot fetch from anywhere (no local store)
Terminal window
bl ls # List all
bl ls --snippets # List only snippets
bl ls --stacks # List only stacks
Terminal window
bl info <name> # Show resource details
bl path # Show store location
Terminal window
bl search <query> # Search by name
bl clean <name> # Remove a resource
  • ✓ 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!