CLI Reference
The bro.js CLI handles scaffolding, hot-reloading, production booting, and SDK generation.
| Command | Description |
|---|---|
bro dev | Starts the server in development mode. Forces NODE_ENV=development, initializes the chokidar file watcher for hot-reloading routes, and clears the terminal for a clean UI banner. |
bro start | Starts the server in production mode. Forces NODE_ENV=production, bypasses all watcher overhead, keeps terminal logs intact, and securely hides the /docs endpoint. |
bro init | Automatically scaffolds a default bro.config.js file and ensures your package.json is configured with "type": "module". |
bro sdk | Parses your routes/ directory and generates the bro-client.js frontend SDK fetch client. |