Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set Default Organization of Sentry.io using sentry-cli

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?

like image 294
Alireza Noorali Avatar asked Jan 01 '19 09:01

Alireza Noorali


People also ask

What is Sentry organization?

The Sentry is an investigative and policy organization that seeks to disable multinational predatory networks that benefit from violent conflict, repression, and kleptocracy.

Is Sentry DSN secret?

The DSN is not a secret, worst thing someone could do is sending events to your account. All “analytics” services have this problem. You can create just a new DSN and delete old ones. You can find this in your project settings -> Client Keys.


1 Answers

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

like image 168
Bruno Garcia Avatar answered Oct 07 '22 20:10

Bruno Garcia