CLI Overview
The @curvea/cli package exposes the curvea binary.
With a project-local installation, invoke commands through project scripts where available or with npx:
npm run dev
npm run build
npx curvea make page About
A global installation can use curvea directly.
Commands
curvea new <name>creates a Curvea project.curvea devstarts the development server.curvea buildbuilds static production output.curvea serve [port]previews the project'sdist/directory.curvea make <type> <Name>generates a page, layout, or component.curvea add <feature>adds or configures an optional feature.
Running the binary without a recognized command prints usage information.
Project scripts
Projects generated by curvea new include:
{
"scripts": {
"dev": "curvea dev",
"build": "curvea build"
}
}
Use npm run dev and npm run build for the normal project workflow.