@nextsparkjs/cli
v0.1.0-beta.190
Published
NextSpark CLI - Complete development toolkit
Readme
@nextsparkjs/cli
CLI tool for NextSpark development workflow.
Installation
The CLI is included with @nextsparkjs/core. You can use it with npx:
npx nextspark <command>Or install globally:
npm install -g @nextsparkjs/cliCommands
Initialize Project
npx nextspark init # Interactive wizard
npx nextspark init --preset saas # Use SaaS preset
npx nextspark init --preset blog # Use Blog preset
npx nextspark init --preset crm # Use CRM presetDevelopment
nextspark dev # Start dev server with active theme
nextspark build # Production build
nextspark registry # Build component registriesChoosing the bundler
dev and build both accept --webpack and --turbopack. The choice is
spelled for the project's Next.js version, so the same flag works across
majors: on Next 15 Webpack is the default and Turbopack is opt-in, on Next 16
it is the other way round. nextspark build --webpack is what a Next 16
project with a custom webpack() in next.config needs in order to build.
nextspark build --webpack # Force Webpack
nextspark dev --turbopack # Force TurbopackAny other flag is forwarded verbatim to next dev / next build:
nextspark build --debug --profileDatabase
nextspark migrate # Run database migrationsRequirements
- Node.js 22.14.0 or later
- pnpm recommended
Documentation
Visit nextspark.dev/docs for full documentation.
License
MIT
