CLI
FluidKit provides a single CLI entry point for scaffolding, development, building, and managing Node.js tooling — all without requiring a system Node.js installation.
init
fluidkit init # scaffold in current directory
fluidkit init my-app # create folder and scaffold inside itCreates a new SvelteKit project with FluidKit wired in. This runs sv create under
the hood, installs dependencies, copies template files, and patches svelte.config.js and vite.config.ts with the required settings.
The scaffolded project includes a working demo app you can run immediately with fluidkit dev.
dev
fluidkit devStarts the FastAPI backend and Vite dev server together. Python changes are picked up instantly
via hot module reloading, and generated .remote.ts files update automatically on
save.
| Flag | Description |
|---|---|
--host TEXT | Override bind address (default: 0.0.0.0) |
--backend-port INT | Override backend port (default: 8000) |
--frontend-port INT | Override frontend port (default: 5173) |
--no-hmr | Disable hot module reloading, restart on change instead |
build
fluidkit buildRuns codegen and then npm run build. Use this to produce a production build.
| Flag | Description |
|---|---|
--backend-port INT | Override backend port (default: 8000) |
preview
fluidkit previewPreviews the production build locally. Starts both the FastAPI backend and the Vite preview server.
| Flag | Description |
|---|---|
--backend-port INT | Override backend port (default: 8000) |
--frontend-port INT | Override frontend port (default: 5173) |
install
fluidkit install tailwindcss # npm install tailwindcss
fluidkit install -D prettier # npm install --save-dev prettierShorthand for npm install. The -D / --save-dev flag
installs as a dev dependency.
npm
fluidkit npm run build
fluidkit npm install
fluidkit npm auditPassthrough to npm. Any arguments after npm are forwarded directly.
npx
fluidkit npx sv add tailwindcss
fluidkit npx prisma generatePassthrough to npx. Any arguments after npx are forwarded directly.
node
fluidkit node scripts/seed.js
fluidkit node --versionPassthrough to node. Any arguments after node are forwarded directly.
Flag precedence
CLI flags override fluidkit.config.json, which overrides defaults. See Configuration for the config file reference.