Skip to main content
Use sv create my-app to create a SvelteKit project with the SvelteKit CLI. Answer the prompts to select a template and set up your development environment.
terminal

Once the project is initialized, cd into the new project. The dependencies are already installed, so you don’t need to run bun install. Then start the development server with bun --bun run dev. To run the dev server with Node.js instead of Bun, omit the --bun flag.
terminal

Visit http://localhost:5173 in a browser to see the template app.
SvelteKit app running

Edit and save src/routes/+page.svelte and your changes are hot-reloaded in the browser.
To build for production, you need a SvelteKit adapter. We recommend svelte-adapter-bun; install it with bun add -D svelte-adapter-bun. Then make the following changes to your svelte.config.js.
svelte.config.js

To build a production bundle:
terminal