Local installation
If you’re using SST as part of a Node.js project, we recommend installing it locally.Global installation
If you’re not using Node.js, you can install the CLI globally.Quick install
Use the install script:Install a specific version
To install a specific version, set theVERSION environment variable:
Package managers
- macOS
- Linux
- Windows
Install via Homebrew:To upgrade:You might need to run
brew upgrade sst before updating.Manual installation
Download the pre-compiled binaries from the releases page and copy to your desired location.Verify installation
Verify that SST is installed correctly:Upgrade
To upgrade to the latest version:- npm/yarn/pnpm
- Global
Update the package in your project:
Dependencies
SST automatically installs and manages its dependencies when you run commands. These include:- Pulumi — Used for infrastructure deployment
- Bun — Used for building and running code
You can see where SST stores its files by running
sst version.Environment variables
You can configure SST’s behavior using environment variables:SST_STAGE
Set the default stage for all commands:SST_PRINT_LOGS
Print detailed logs to the console:SST_TELEMETRY_DISABLED
Disable anonymous telemetry:NPM_REGISTRY
Use a custom npm registry for provider packages:Configuration file
You can optionally specify a custom path to your config file:Next steps
Quickstart
Create your first SST app
CLI Reference
Explore all CLI commands
sst.config.ts
Learn about the config file
Providers
Add cloud providers