7

I'm going to use Sentry for My Android app. My company is using a self-hosted Sentry, version 9.0.0. I get the below answer when I run sentry-cli info command using sentry-cli:

Sentry Server: https://log.mydomain.com
Default Organization: -
Default Project: -

It didn't recognize Default Organization and Default Project. How can I set these data?

Alireza Noorali
  • 3,129
  • 2
  • 33
  • 80

1 Answers1

1

Did you define the Sentry Project and Organization somewhere?

Some commands require your Sentry Organization and/or Projects slugs. There are multiple ways to provide these values:

  • Command line argument, like; --org
  • Environment variables, like; SENTRY_ORG
  • Adding to a configuration file

As per the docs:

You can add to the configuration file (~/.sentryclirc) the keys: defaults.project defaults.org

Or use the environment variables: SENTRY_PROJECT and SENTRY_ORG

Bruno Garcia
  • 6,029
  • 3
  • 25
  • 38