@nexus_js/create-nexus
v0.9.21
Published
Create a new Nexus app — npm create @nexus_js/nexus (scoped; avoids unscoped name conflicts on npm)
Maintainers
Readme
@nexus_js/create-nexus
Official project scaffold for Nexus. Published under the @nexus_js scope so you can publish without fighting for the global name create-nexus on npm.
npm maps npm create @scope/name to the package @scope/create-name:
npm create @nexus_js/nexus@latestpnpm create @nexus_js/nexusyarn create @nexus_js/nexusbunx @nexus_js/create-nexus@latestWith a folder name:
npm create @nexus_js/nexus@latest my-appInteractive setup (default in a terminal)
Running create without --yes starts a short wizard (similar to Next.js / Nuxt):
- Project directory — folder name under the current path (default
my-nexus-app, or the name you passed as the first argument). - Starter — minimal or full (unless you already passed
-t/--template). - Summary — confirm with Y before files are written.
If the target folder already exists, the CLI exits with an error (no overwrite).
Non-interactive / CI
Use --yes (or -y, --defaults) to skip all prompts:
- Directory: first positional argument, or
my-nexus-app. - Starter:
--template, or full by default.
npm create @nexus_js/nexus@latest -- --yes
npx @nexus_js/create-nexus@latest ci-app --yes --template minimalStarter templates
| Template | Flag | What you get |
|----------|------|----------------|
| Minimal | --template minimal or -t minimal | One landing +page.nx, simple +layout.nx, no i18n, no example blog or /islands route — closest to a blank slate. |
| Full | --template full or -t full (default when non-interactive) | i18n (en/es/pt), islands presentation page, blog examples. |
npm create @nexus_js/nexus@latest my-app -- --template minimalnpx @nexus_js/create-nexus@latest my-app -t fullDirect binary (same as above):
npx @nexus_js/create-nexus@latest my-appThen:
cd my-app
npm install # or: pnpm install / yarn / bun install
npm run dev # or: pnpm dev / yarn dev / bun run devThe implementation lives in @nexus_js/cli; this package only wires the create entrypoint.
License
MIT © Nexus contributors
