CLI Reference

CLI Reference

The bro.js CLI handles scaffolding, hot-reloading, production booting, and SDK generation.

CommandDescription
bro devStarts 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 initAutomatically scaffolds a default bro.config.js file and ensures your package.json is configured with "type": "module".
bro sdkParses your routes/ directory and generates the bro-client.js frontend SDK fetch client.