Repository navigation
--project does not work when using organization token #3046
Description
Activity
Hi @dkarter, thank you for reporting this issue. Will try to investigate this problem this week.
This issue appears related to getsentry/sentry#105038. Like that issue, I believe this issue is probably a bug in our backend, not the CLI, but the issue only arose in version 3.0.0 of the CLI since we switched the endpoints we call for releases with this new release.
As a workaround, you can downgrade Sentry CLI version 2.58.4. This CLI version calls a different endpoint which should have the expected behavior.
Reacted by Dorian Karter- moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3
on Dec 17, 2025 On further review, this appears to be a CLI bug. It is an unintended side-effect of #2991, which switched the APIs for release-related functionality over to newer organization-based endpoints.
The problem is that the organization-based endpoint does not support filtering by project when listing releases. As a temporary solution, we will partially revert #2991, specifically the code related to
releases list. Probably a better long term solution would be to allow project filtering via the organization releases endpoint, then we could also allow filtering releases that are associated with one of several projects (currently, we can only filter to a single project via the project releases endpoint)Reacted by Dorian Karter- added a commit that references this issue
on Dec 17, 2025 - added a commit that references this issue
on Dec 17, 2025 - added a commit that references this issue
on Jan 12, 2026 - added a commit that references this issue
on Jan 12, 2026
Metadata
Metadata
Assignees
Labels
Projects
- StatusShow more project fieldsNo status
CLI Version
v3.0.0
Operating System and Architecture
Operating System Version
macOS/ubuntu
Link to reproduction repository
No response
CLI Command
npx -y -- @sentry/cli releases list --show-projects --project=
Exact Reproduction Steps
npx -y -- @sentry/cli loginnpx -y -- @sentry/cli releases list --show-projects --project=<PROJECT SLUG>export SENTRY_AUTH_TOKEN=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxRun the command:
npx -y -- @sentry/cli releases list --show-projects --project=<PROJECT SLUG>Collect the result
Expected Results
Results should be the same because the project is scoped in the arguments
Actual Results
The org token with
org:cionly permissions, is showing ALL projects.Since we use this in CI to tag commits in a sentry release it breaks our workflows due to this unexpected result (different projects use different versioning schemes).
Actually, i'm seeing the same issue when curling the API directly with a
project_id- it just ignores that parameter.Logs
I can't share these due to the amount of sensitive info. But a simple check against your API will show this as mentioned above.