962 bytes
1 # sv
2
3 Everything you need to build a Svelte project, powered by [`sv`](https://github.com/sveltejs/cli).
4
5 ## Creating a project
6
7 If you're seeing this, you've probably already done this step. Congrats!
8
9 ```sh
10 # create a new project
11 npx sv create my-app
12 ```
14 To recreate this project with the same configuration:
16 ```sh
17 # recreate this project
18 bun x sv@0.17.0 create --template demo --types ts --install bun better-hub-test-prods
19 ```
21 ## Developing
23 Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
25 ```sh
26 npm run dev
28 # or start the server and open the app in a new browser tab
29 npm run dev -- --open
30 ```
32 ## Building
34 To create a production version of your app:
36 ```sh
37 npm run build
38 ```
40 You can preview the production build with `npm run preview`.
42 > To deploy your app, you may need to install an [adapter](https://svelte.dev/docs/kit/adapters) for your target environment.