Skip to main content

sv add

sv add updates an existing project with new functionality.

Usage

npx sv add
npx sv add [add-ons]

You can select multiple space-separated add-ons from the list below, or you can use the interactive prompt.

Options

-C, --cwd

Path to the root of your Svelte(Kit) project.

--no-git-check

Even if some files are dirty, no prompt will be shown

--no-download-check

Skip all download confirmation prompts

[!IMPORTANT] Svelte maintainers have not reviewed community add-ons for malicious code. Use at your discretion

--install <package-manager>

Installs dependencies with a specified package manager:

  • npm
  • pnpm
  • yarn
  • bun
  • deno

--no-install

Prevents installing dependencies

Official add-ons

Community add-ons

Community add-ons are currently experimental. The API may change. Don't use them in production yet!

Svelte maintainers have not reviewed community add-ons for malicious code!

Community add-ons are npm packages published by the community. Look out for add-ons from your favorite libraries and tools. (soon) many are building sv add-ons to make integration a one-liner. You can find them on npm by searching for keyword: sv-add.

# Install a community add-on by org
npx sv add @supacool

# Use a local add-on (for development or custom/private add-ons)
npx sv add file:../path/to/my-addon

# Mix and match official and community add-ons
npx sv add eslint @supacool

# Also works when creating a new project directly
npx sv create --add eslint @supacool

Want to create your own? Check the Add-on Docs.

Edit this page on GitHub llms.txt

previous next