CLI reference
Use the supported development, build, and production commands.
Generated projects intentionally expose only three everyday scripts: dev, build, and start. Ludicord also provides focused inspection commands for debugging and CI.
#Everyday commands
1{2 "scripts": {3 "dev": "ludicord dev",4 "build": "ludicord build",5 "start": "ludicord start"6 }7}
start does not compile source. Run build first and deploy the source-independent runtime artifacts your platform needs.
#Development options
1ludicord dev --port 41002ludicord dev --host 127.0.0.13ludicord dev --open4ludicord dev --debug5ludicord dev --no-hmr
Configuration and environment files are watched. When one changes, Ludicord safely restarts its runtime; ordinary page, embed, API, and WebSocket edits are recompiled without a manual restart.
#Inspect generated routes
1npx ludicord routes
The route report lists Activity screens, embeds, API handlers, WebSocket handlers, and proxy rules. Run it when a file exists on disk but its URL does not behave as expected.
#Validate React hooks
1npx ludicord lint
This checks the Activity source for React Hooks rule violations. Keep it in CI even if your editor already runs ESLint because generated examples and less frequently opened files still need validation.
#Inspect bundle size
1npx ludicord analyze2npx ludicord analyze --json
Run a production build first. The human report helps during development; --json is useful for CI thresholds or release tooling.
#Print environment information
1npx ludicord info
The report identifies the Ludicord version, Node version, project root, config file, route counts, and other runtime facts useful in bug reports. Review output before sharing it, even though Ludicord redacts known secrets from diagnostics.
#Clear generated output
1npx ludicord clean
This removes only the project's .ludicord build and cache. Use it when generated manifests are stale or after switching between incompatible framework versions, then run dev or build again.
#Generator options
1npx create-ludicord-app@latest my-activity --tailwind --package-manager pnpm
#CI baseline
1- run: npm ci2- run: npx ludicord lint3- run: npm run build
Keep the public README focused on dev, build, and start. Link to this page for inspection and maintenance commands so the first-run path stays simple.
Next, bookmark Troubleshooting for the signals to inspect when a command fails.