Skip to content

Commit b04b922

Browse files
sync cli docs
1 parent 8c8acb2 commit b04b922

File tree

6 files changed

+32
-11
lines changed

6 files changed

+32
-11
lines changed

apps/svelte.dev/content/docs/cli/20-commands/10-sv-create.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ Installs dependencies with a specified package manager:
6060

6161
Prevents installing dependencies.
6262

63+
### `--no-dir-check`
64+
65+
Skip checking whether the target directory is empty.
66+
6367
<!-- ## Programmatic interface
6468
6569
```js

apps/svelte.dev/content/docs/cli/20-commands/20-sv-add.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,27 @@ You can select multiple space-separated add-ons from [the list below](#Official-
1919

2020
## Options
2121

22-
- `-C`, `--cwd` — path to the root of your Svelte(Kit) project
23-
- `--no-git-check` — even if some files are dirty, no prompt will be shown
24-
- `--install` — installs dependencies with a specified package manager
25-
- `--no-install` — prevents installing dependencies
22+
### `-C`, `--cwd`
23+
24+
Path to the root of your Svelte(Kit) project.
25+
26+
### `--no-git-check`
27+
28+
Even if some files are dirty, no prompt will be shown
29+
30+
### `--install <package-manager>`
31+
32+
Installs dependencies with a specified package manager:
33+
34+
- `npm`
35+
- `pnpm`
36+
- `yarn`
37+
- `bun`
38+
- `deno`
39+
40+
### `--no-install`
41+
42+
Prevents installing dependencies
2643

2744
## Official add-ons
2845

apps/svelte.dev/content/docs/cli/30-add-ons/05-drizzle.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Which database variant to use:
2929
- `sqlite` — file-based database not requiring a database server
3030

3131
```sh
32-
npx sv add drizzle=database:postgresql
32+
npx sv add drizzle="database:postgresql"
3333
```
3434

3535
### client
@@ -41,7 +41,7 @@ The SQL client to use, depends on `database`:
4141
- For `sqlite`: `better-sqlite3`, `libsql`, `turso`
4242

4343
```sh
44-
npx sv add drizzle=database:postgresql+client:postgres.js
44+
npx sv add drizzle="database:postgresql+client:postgres.js"
4545
```
4646

4747
Drizzle is compatible with well over a dozen database drivers. We just offer a few of the most common ones here for simplicity, but if you'd like to use another one you can choose one as a placeholder and swap it out for another after setup by choosing from [Drizzle's full list of compatible drivers](https://orm.drizzle.team/docs/connect-overview#next-steps).
@@ -51,5 +51,5 @@ Drizzle is compatible with well over a dozen database drivers. We just offer a f
5151
Whether to add Docker Compose configuration. Only available for [`database`](#Options-database) `postgresql` or `mysql`
5252

5353
```sh
54-
npx sv add drizzle=database:postgresql+client:postgres.js+docker:yes
54+
npx sv add drizzle="database:postgresql+client:postgres.js+docker:yes"
5555
```

apps/svelte.dev/content/docs/cli/30-add-ons/15-lucia.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,5 @@ npx sv add lucia
2323
Whether to include demo registration and login pages.
2424

2525
```sh
26-
npx sv add lucia=demo:yes
26+
npx sv add lucia="demo:yes"
2727
```

apps/svelte.dev/content/docs/cli/30-add-ons/17-mcp.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ npx sv add mcp
2222
The IDE you want to use like `'claude-code'`, `'cursor'`, `'gemini'`, `'opencode'`, `'vscode'`, `'other'`.
2323

2424
```sh
25-
npx sv add mcp=ide:cursor,vscode
25+
npx sv add mcp="ide:cursor,vscode"
2626
```
2727

2828
### setup
2929

3030
The setup you want to use.
3131

3232
```sh
33-
npx sv add mcp=setup:local
33+
npx sv add mcp="setup:local"
3434
```

apps/svelte.dev/content/docs/cli/30-add-ons/45-sveltekit-adapter.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ Which SvelteKit adapter to use:
2929
- `netlify`[`@sveltejs/adapter-netlify`](/docs/kit/adapter-netlify) allows you to deploy to Netlify
3030

3131
```sh
32-
npx sv add sveltekit-adapter=adapter:node
32+
npx sv add sveltekit-adapter="adapter:node"
3333
```

0 commit comments

Comments
 (0)