Skip to main content
Adds and installs the given provider. For example:
sst add aws
This command will:
  1. Install the package for the AWS provider.
  2. Add aws to the globals in your sst.config.ts.
  3. And, add it to your providers:
sst.config.ts
{
  providers: {
    aws: "6.27.0"
  }
}
You can use any provider listed in the Directory.
Running sst add aws above is the same as manually adding the provider to your config and running sst install.
By default, the latest version of the provider is installed. If you want to use a specific version, you can change it in your config:
sst.config.ts
{
  providers: {
    aws: {
      version: "6.26.0"
    }
  }
}
You’ll need to run sst install if you update the providers in your config.

Arguments

provider

provider
string
required
The provider to add.
The name of the provider to add, for example aws, cloudflare, vercel, etc.
sst add cloudflare

Custom registries

By default, these packages are fetched from the NPM registry. If you want to use a different registry, you can set the NPM_REGISTRY environment variable:
NPM_REGISTRY=https://my-registry.com sst add aws
You can also set the registry in your .npmrc file. If your registry requires authentication, SST supports _authToken, _auth, and username/_password from .npmrc.

Examples

Add AWS provider

sst add aws

Add Cloudflare provider

sst add cloudflare

Add from custom registry

NPM_REGISTRY=https://my-registry.com sst add aws

Build docs developers (and LLMs) love