diff --git a/apps/svelte.dev/content/docs/cli/10-introduction/10-overview.md b/apps/svelte.dev/content/docs/cli/10-introduction/10-overview.md new file mode 100644 index 0000000000..9e4b22233e --- /dev/null +++ b/apps/svelte.dev/content/docs/cli/10-introduction/10-overview.md @@ -0,0 +1,19 @@ +--- +title: Overview +--- + +The command line interface (CLI), `sv`, is a toolkit for creating and maintaining Svelte applications. + +## Usage + +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/)): + +```bash +npx sv +``` + +If you're inside a project where `sv` is already installed, this will use the local installation, otherwise it will download the latest version and run it without installing it, which is particularly useful for [`sv create`](sv-create). + +## Acknowledgements + +Thank you to [Christopher Brown](https://github.com/chbrown) who originally owned the `sv` name on npm for graciously allowing it to be used for the Svelte CLI. You can find the original `sv` package at [`@chbrown/sv`](https://www.npmjs.com/package/@chbrown/sv). diff --git a/apps/svelte.dev/content/docs/cli/10-introduction/index.md b/apps/svelte.dev/content/docs/cli/10-introduction/index.md new file mode 100644 index 0000000000..8f14f7a7c9 --- /dev/null +++ b/apps/svelte.dev/content/docs/cli/10-introduction/index.md @@ -0,0 +1,3 @@ +--- +title: Introduction +--- diff --git a/apps/svelte.dev/content/docs/cli/20-commands/10-sv-create.md b/apps/svelte.dev/content/docs/cli/20-commands/10-sv-create.md new file mode 100644 index 0000000000..36799f94ba --- /dev/null +++ b/apps/svelte.dev/content/docs/cli/20-commands/10-sv-create.md @@ -0,0 +1,55 @@ +--- +title: sv create +--- + +`sv create` sets up a new SvelteKit project, with options to [setup additional functionality](sv-add#Official-add-ons). + +## Usage + +```bash +npx sv create [options] [path] +``` + +## Options + + + +### `--check-types