The Svelte CLI

You could build a Svelte app with your bare hands, but it would be annoying. You’ll go much faster if you use SvelteKit, which solves a lot of problems for you:

The tutorial includes material on SvelteKit, but we’re not going to use that today — instead we’re going to build something locally.

We’ll start by creating a new app with the Svelte CLI, which is called sv. If you have the npm CLI on your machine, you can use it without installing anything by using npx sv:

npx sv

As you can see there are a few things you can do with it — the command we want to use is sv create. Navigate to a folder on your machine where you want to start building, and create an app:

npx sv create squirrel

We’ll need the experimental options.