Skip to content

Commit 1efc7ee

Browse files
Sync cli docs (#1430)
sync cli docs Co-authored-by: svelte-docs-bot[bot] <196124396+svelte-docs-bot[bot]@users.noreply.github.com>
1 parent 7ac7f79 commit 1efc7ee

17 files changed

+31
-31
lines changed

apps/svelte.dev/content/docs/cli/10-introduction/10-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The command line interface (CLI), `sv`, is a toolkit for creating and maintainin
99

1010
The easiest way to run `sv` is with [`npx`](https://docs.npmjs.com/cli/v8/commands/npx) (or the equivalent command if you're using a different package manager — for example, `pnpx` if you're using [pnpm](https://pnpm.io/)):
1111

12-
```bash
12+
```sh
1313
npx sv <command> <args>
1414
```
1515

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: sv create
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv create [options] [path]
1212
```
1313

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ title: sv add
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add
1212
```
1313

14-
```bash
14+
```sh
1515
npx sv add [add-ons]
1616
```
1717

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ Requires Node 16 or later.
1515

1616
You will need to have the `svelte-check` package installed in your project:
1717

18-
```bash
18+
```sh
1919
npm i -D svelte-check
2020
```
2121

2222
## Usage
2323

24-
```bash
24+
```sh
2525
npx sv check
2626
```
2727

@@ -60,7 +60,7 @@ Use this if you only want to check the Svelte files found in the current directo
6060

6161
Files/folders to ignore, relative to workspace root. Paths should be comma-separated and quoted. Example:
6262

63-
```bash
63+
```sh
6464
npx sv check --ignore "dist,build"
6565
```
6666

@@ -76,7 +76,7 @@ If provided, warnings will cause `sv check` to exit with an error code.
7676

7777
A quoted, comma-separated list of `code:behaviour` pairs where `code` is a [compiler warning code](../svelte/compiler-warnings) and `behaviour` is either `ignore` or `error`:
7878

79-
```bash
79+
```sh
8080
npx sv check --compiler-warnings "css_unused_selector:ignore,a11y_missing_attribute:error"
8181
```
8282

@@ -91,7 +91,7 @@ A quoted, comma-separated list of sources that should run diagnostics on your co
9191

9292
Example:
9393

94-
```bash
94+
```sh
9595
npx sv check --diagnostic-sources "js,svelte"
9696
```
9797

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ Some migrations may annotate your codebase with tasks for completion that you ca
99

1010
## Usage
1111

12-
```bash
12+
```sh
1313
npx sv migrate
1414
```
1515

1616
You can also specify a migration directly via the CLI:
17-
```bash
17+
```sh
1818
npx sv migrate [migration]
1919
```
2020

apps/svelte.dev/content/docs/cli/30-add-ons/03-devtools-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function handle({ event, resolve }) {
3131

3232
## Usage
3333

34-
```bash
34+
```sh
3535
npx sv add devtools-json
3636
```
3737

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: drizzle
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add drizzle
1212
```
1313

@@ -28,7 +28,7 @@ Which database variant to use:
2828
- `mysql` — another popular open source database
2929
- `sqlite` — file-based database not requiring a database server
3030

31-
```bash
31+
```sh
3232
npx sv add drizzle=database:postgresql
3333
```
3434

@@ -40,7 +40,7 @@ The SQL client to use, depends on `database`:
4040
- For `mysql`: `mysql2`, `planetscale`
4141
- For `sqlite`: `better-sqlite3`, `libsql`, `turso`
4242

43-
```bash
43+
```sh
4444
npx sv add drizzle=database:postgresql+client:postgres.js
4545
```
4646

@@ -50,6 +50,6 @@ Drizzle is compatible with well over a dozen database drivers. We just offer a f
5050

5151
Whether to add Docker Compose configuration. Only available for [`database`](#Options-database) `postgresql` or `mysql`
5252

53-
```bash
53+
```sh
5454
npx sv add drizzle=database:postgresql+client:postgres.js+docker:yes
5555
```

apps/svelte.dev/content/docs/cli/30-add-ons/10-eslint.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: eslint
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add eslint
1212
```
1313

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ An auth setup following [the Lucia auth guide](https://lucia-auth.com/).
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add lucia
1212
```
1313

@@ -22,6 +22,6 @@ npx sv add lucia
2222

2323
Whether to include demo registration and login pages.
2424

25-
```bash
25+
```sh
2626
npx sv add lucia=demo:yes
2727
```

apps/svelte.dev/content/docs/cli/30-add-ons/20-mdsvex.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: mdsvex
77

88
## Usage
99

10-
```bash
10+
```sh
1111
npx sv add mdsvex
1212
```
1313

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy