create-nexusts
v0.9.5
Published
Scaffold a new NexusTS project — npm create nexusts@latest, bunx create-nexusts, or npx create-nexusts
Maintainers
Readme
create-nexusts
Scaffold a new NexusTS project — Bun-native fullstack framework.
The official scaffolder for NexusTS. Creates a new project with the framework's MVC + DI + routing + validation stack pre-configured, plus your choice of view engine, ORM, and database.
Quick start
# All three forms are equivalent:
npm create nexusts@latest my-app
npx create-nexusts@latest my-app
bunx create-nexusts@latest my-appThen:
cd my-app
bun install
bun run devYour app will be running at http://localhost:3000.
Options
| Flag | Default | Description |
|------|---------|-------------|
| --style | nest | Routing style: nest, adonis, functional |
| --view | rendu | View engine: rendu, edge, eta, inertia, none |
| --orm | drizzle | ORM: drizzle, prisma, kysely, none |
| --db | bun-sqlite | Database: bun-sqlite, postgres, mysql, none |
Examples
# Minimal: NestJS-style + Rendu + Drizzle + SQLite
npm create nexusts@latest my-app
# Inertia.js v3 + React SPA
npm create nexusts@latest my-app --view inertia
# No ORM (just an HTTP skeleton)
npm create nexusts@latest my-app --orm none --db none
# Functional handler style (Hono-style)
npm create nexusts@latest my-app --style functionalWhat you get
A complete project structure:
my-app/
├── app/
│ ├── app.module.ts # Root module
│ ├── app.controller.ts # Example controller
│ ├── app.service.ts # Example service
│ └── main.ts # Bootstrap (listens on PORT)
├── app.config.ts # Framework config (loaded at boot)
├── package.json # @nexusts/core + your chosen add-ons
├── tsconfig.json # Legacy decorators (Bun 1.3 compatible)
└── README.md # Project-specific READMEInternally this runs npx @nexusts/core init in the new directory — you can use that command directly in an existing project to add NexusTS without losing files.
Help
create-nexusts --help # Show usage
create-nexusts --version # Show versionLicense
MIT — see the LICENSE file in the main NexusTS repo.
