Complete reference for the CampsiteJS CLI (camper command) - manage your static site projects with ease.
CampsiteJS CLI Reference
The camper CLI is your command center for managing CampsiteJS projects. With a cozy campfire theme 🏕️ and intuitive commands, it makes static site development a breeze.
CLI Structure
The CampsiteJS ecosystem consists of two packages:
campsitejs(Scaffolder): Creates new projects vianpm create campsitejs@latestbasecampjs(Build Engine): Provides thecamperCLI for managing existing projects
Installing the CLI Globally
For easier access to the camper command from anywhere, you can install it globally:
npm install -g basecampjs
Once installed globally, you can run camper commands directly from any project directory. If you don’t install globally, you can still use npx camper to run commands from your local project dependencies.
Command Categories
Commands are organized into logical groups for easy discovery:
Help & Version
camper -h/camper --help- Shows comprehensive helpcamper -v/camper --version- Displays current version
Project Initialization
camper init- Initialize Campsite in current directory
Development
camper dev- Start development server with hot reloadingcamper build- Production buildcamper serve- Serve built site from dist/camper preview- Build + serve for production testing
Utilities
camper clean- Remove dist/ foldercamper check- Validate project structurecamper list- List all content with countscamper upgrade- Update basecampjs to latest
Content Creation (Make Commands)
camper make:page- Create pagescamper make:post- Create blog postscamper make:layout- Create layoutscamper make:component- Create componentscamper make:partial- Create partialscamper make:collection- Create data collections
Quick Examples
Start development server:
camper dev
Create multiple pages at once:
camper make:page home, about, contact
Build for production:
camper build
Check project health:
camper check
Campfire Theme 🏕️
All CLI output embraces the cozy campfire aesthetic:
- 🏕️ Campsite and outdoor emojis
- ✅ Clear success indicators
- ⚠️ Helpful warnings
- ❌ Informative error messages
- 🌲 Friendly tips like “Happy camping!”
Next Steps
- All Commands Reference - Detailed documentation for each command
- Make Commands Guide - Complete guide to content creation
- Configuration - Customize your campsite.config.js
🏕️ Pro Tip: Run camper --help anytime to see all available commands with examples!