Nexus CLI (nexus, create-nexus)
Command-line tools for Nexus — the full-stack web framework with islands architecture, Svelte 5 runes, and server actions.
Install
pnpm add -D @nexus_js/cli
npm install -D @nexus_js/cli
Global install (optional):
npm install -g @nexus_js/cli
Commands
nexus dev | Start the development server with HMR |
nexus build | Production build |
nexus start | Run the production server |
nexus studio | Open Nexus Studio (dev dashboard) |
nexus routes | Print the route manifest |
nexus check | TypeScript check |
create-nexus <name> | Scaffold a new project |
New project
Recommended (works as long as @nexus_js/cli is on npm):
npm exec --package=@nexus_js/cli@latest -- create-nexus my-app
pnpm dlx --package=@nexus_js/cli@latest create-nexus my-app
Shorthand pnpm create @nexus_js/nexus needs @nexus_js/create-nexus published; if you get 404, use the commands above.
After @nexus_js/create-nexus exists on npm:
npm create @nexus_js/nexus@latest my-app
pnpm create @nexus_js/nexus my-app
npx @nexus_js/create-nexus@latest my-app
npm install -g @nexus_js/cli
create-nexus my-app
See the full documentation for configuration, routing, .nx components, and deployment.
License
MIT © Nexus contributors