Svelte and SvelteKit 5 cheatsheet
Svelte and SvelteKit 5: Setup
5 common Svelte and SvelteKit 5 tasks.
Create a project
Scaffold a SvelteKit app with the sv CLI and choose options when prompted.
npx sv create my-app
Install and start
Install dependencies and start the dev server.
cd my-app && npm install && npm run dev
Build and preview
Create a production build, then serve it locally.
npm run build && npm run preview
Add tooling
Add Tailwind CSS, a test runner, Drizzle or other integrations to an existing project.
npx sv add tailwindcss