-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
feat: Add --saas
CLI arg to skip self-hosted or SaaS selection step
#678
Conversation
|
@@ -60,6 +60,11 @@ const argv = yargs(hideBin(process.argv)) | |||
alias: 'url', | |||
describe: 'The url to your Sentry installation\nenv: SENTRY_WIZARD_URL', | |||
}) | |||
.option('saas', { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I noticed we didn't add --project
and --org
to this list. @obostjancic was this on purpose? If not, I'll quickly add it. This ensures that --help
lists the two options in the help message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also noticed that it's missing from the readme file
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. I think the readme was generally a bit outdated. I updated it, along with adding --project
and --org
to the readme and --help
output in a follow-up PR: #679
Currently, our in-product onboarding shows the
--url
option because we want to skip the "Are you using Sentry.io or self-hosted" question (in-product, we already know the URL).From the wizard perspective, we default to the SaaS url if users don't pass a custom
--url
. However, if users pass a custom URL that is the SaaS URL we unnecessarily injecturl
params into code where it's not strictly necessary.The new
--saas
flag introduced in this PR will skip over the self-hosted question and if it's set totrue
assume that users are using SaaS. We can display--saas
in the UI (for SaaS) instead of--url
, making the snippet a bit shorter and avoiding to unnecessarily inject theurl
params into user code.