Skip to content

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 yarn

Supported customizations

OptionCLI flagsType / valuesDefaultNotes
Template--template <template>minimal Minimal
demo Demo
library Library
minimalChoose the base SvelteKit starter.
Type mode--types <types>
--typescript
--no-typescript
ts TypeScript
jsdoc JSDoc / CheckJS
tsChoose TypeScript or JSDoc/CheckJS typing. --no-typescript is mapped to the jsdoc mode.

--yes defaults

Keyvalue
templateminimal
typests

Notes

  • The minimal template is created without extra add-ons.
  • The demo and library templates add Prettier and ESLint during the official sv create flow.
  • When the workspace uses Yarn Berry, Scafix switches to yarn dlx for the upstream sv command.

Shared flow reminder

  • Shared flags such as --name, --directory, --package-manager, --git, and --debug apply 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.

Released under the MIT License.