sentry-cli JavaScript API releases.newDeploy() supports multiple projects
Introduced 2026-01-12 · score 0.95
HOW TO USE IT
When creating a deployment release for multiple projects through the JavaScript API, pass `projects: [<project-slug>, ...]` in the options argument to `releases.newDeploy()`.
await cli.releases.newDeploy('<release-version>', { projects: ['<project-slug-1>', '<project-slug-2>'], env: '<environment>' });WHY THIS HELPS
Create a deployment release for multiple Sentry projects through the JavaScript API.
BEFORE THIS CHANGE
Before this change, `newDeploy()` did not support a `projects` option; the API change added project flag forwarding for deployments.
REQUIREMENTS AND LIMITATIONS
- Version: 3.1.0
- projects: Array of project slugs to deploy the release to; if omitted, the deployment is created for all projects associated with the release.
- release (required): First argument to `newDeploy`; release version string.
- env: Deployment environment; passed as `--env`.
FIRST-PARTY EVIDENCE
- https://github.com/getsentry/sentry-cli/releases/tag/3.1.0
- https://github.com/getsentry/sentry-cli/pull/3001
Check the installed version and the source before using it. Entry JSON