CLI Commands
Crax projects use standard Vite scripts. All commands run through your package manager.
Development
Starts the Vite dev server at http://localhost:5173 with HMR.
Build
Builds for production. Output goes to dist/. Type-checks before bundling.
Preview
Serves the production build locally for testing.
Type Check
Runs tsc --noEmit to check types without emitting files.
PWA Icons
Generate PWA icons from your logo:
Requires pwa.enabled: true in crax.config.mjs and a logo.png in public/.
Scaffolding (@craxjs/crax)
Create a new project:
Scaffolds the full starter project and prints next steps.
