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

--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

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

You can find community add-ons on npm by searching for keywords:sv-add on npm.

Protocols

We support two protocols for community add-ons:

  • file:[PATH_TO_ADDON] - for local add-ons
  • @[ORG] - for add-ons published under an npm organization. Technically, it will look for @[ORG]/sv

How to create a community add-on

To start on a good track, create your add-on with the addon template.

npx sv create --template addon [path]

In your new add-on directory, check out the README.md and CONTRIBUTING.md to get started.

To get some inspiration, check out official addons source code.

How to publish a community add-on

To publish your add-on to npm, run:

npm publish

Edit this page on GitHub llms.txt

previous next