SvelteKit
Scaffold a SvelteKit project via the official sv CLI
Primary commands
bash
npx scafix create sveltekit
npx scafix create sveltekit --template demo --types jsdoc
npx scafix create sveltekit --template library --no-typescript --package-manager yarnSupported customizations
| Option | CLI flags | Type / values | Default | Notes |
|---|---|---|---|---|
| Template | --template <template> | minimal Minimaldemo Demolibrary Library | minimal | Choose the base SvelteKit starter. |
| Type mode | --types <types>--typescript--no-typescript | ts TypeScriptjsdoc JSDoc / CheckJS | ts | Choose TypeScript or JSDoc/CheckJS typing. --no-typescript is mapped to the jsdoc mode. |
--yes defaults
| Key | value |
|---|---|
| template | minimal |
| types | ts |
Notes
- The
minimaltemplate is created without extra add-ons. - The
demoandlibrarytemplates add Prettier and ESLint during the officialsv createflow. - When the workspace uses Yarn Berry, Scafix switches to
yarn dlxfor the upstreamsvcommand.
Shared flow reminder
- Shared flags such as
--name,--directory,--package-manager,--git, and--debugapply here as well. - If required values are omitted and a TTY is available, Scafix prompts for them before calling the stack adapter.
- See CLI Reference for the shared command surface used by
scafix.
