CLI Tools
Manage your Barry project with powerful CLI commands.
CLI Commands
The Barry CLI includes tools to scaffold projects, run development and production servers, clean caches, inspect routes, and validate your setup. It provides a fast, zero-config developer experience right out of the box.Using the Barry CLI
The CLI gives you direct control over your Barry app’s lifecycle. From starting servers to clearing caches and inspecting project state, everything is just a command away.
barry dev
Starts a development server with:
- Live reload on file changes
- Logging and trace output
- No caching (see Dev Mode)
barry dev
Visit http://localhost:8080
(or your configured port) to preview your site locally.
barry prod
Runs the production server with:
- Static caching enabled
- Minimal logging
- All logic routed through optimized flow
barry prod
Use this to simulate real-world performance and test pre-cached HTML rendering.
barry clear
Clears all cached HTML in /cache
so routes are re-rendered on the next request.
barry clear
This is useful if you’ve changed content, server logic, or data sources. Learn more in Clearing the Cache.
barry check
Validates your project for common issues like:
- Missing or malformed
index.html
files - Broken layout templates
- Unused or conflicting template blocks
barry check
barry info
Prints diagnostic and structural data about your Barry project, including:
- Resolved routes
- Detected layouts and components
- Configuration values
barry info
Use this to confirm Barry is correctly parsing your project structure or during CI.