Skip to content

Org slug vs id #2535

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
armcknight opened this issue May 30, 2025 · 0 comments
Open

Org slug vs id #2535

armcknight opened this issue May 30, 2025 · 0 comments
Labels
CLI Product area

Comments

@armcknight
Copy link
Member

Description

I found it confusing that after running sentry-cli login --global, the token in the ~/.sentryclirc embeds the org slug, and then if I try to run something like sentry-cli upload --org <org-id>, it complains about a mismatch between the token and the id, even though they both represent the same thing.

Two ideas I have are:

  1. reduce slug/id to a canonical version before comparing, so you never try to compare a slug to an id, even if they're for the same org
  2. we need a way to know if we're dealing with a slug or id, since they're both just strings, and our IDs don't have any standard prefix. this indicates to me that we should actually have separate cli parameters like --org-slug and --org-id instead of simply --org that can accept either.
@armcknight armcknight added the CLI Product area label May 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI Product area
Projects
None yet
Development

No branches or pull requests

1 participant