Skip to content

Add script for injection Sentry Release #3100

Closed as not planned
Closed as not planned

Description

@s1gr1d

Description

The CLI already supports creating a release, but not injecting one.

There are some Sentry JavaScript SDKs (Next.js, React Router and soon Nuxt) which rather use the Sentry Plugin Manager (which calls the CLI) to inject debug IDs than using the bundler plugins for that. Sometimes it's not possible to add bundler plugins, or the frameworks are exposing build-end hooks, where we can just call the CLI methods at the end of the build.

Release injection currently only works through the bundler plugins (code) and could be added to the CLI as well.

Activity

  1. added
    CLI
    on Jan 26, 2026
  2. linear commented on Jan 26, 2026

    @linear
  3. szokeasaurusrex commented on Jan 26, 2026

    @szokeasaurusrex
    Member

    I think it may make sense to perform the release injection alongside the debug ID injection, perhaps within the sentry-cli sourcemaps inject command itself.

    Does that sound reasonable to you @s1gr1d?

  4. s1gr1d commented on Jan 26, 2026

    @s1gr1d
    MemberAuthor

    There is the case that people disable everything related to source maps (and therefore debug IDs) and only want to add a release. So it would make sense to have a separate command for that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIFeature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions