-
Notifications
You must be signed in to change notification settings - Fork 13
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
story: move CHECKLY prefixed envs to AuthCommand
base class so they are documented
#588
Comments
AuthCommand
base class so they are documentedAuthCommand
base class so they are documented
I tried to add the env variables to the flags but the |
@umutuzgur is this still relevant? |
@tnolet yeah |
@umutuzgur , @tnolet , yesterday I tried to move the |
no, this is an antipattern. We should not have flags to set credentials. You cannot encourage users to visibly set credentials in a command line app which will be logged by CI systems etc. They should always be ENV VARS. |
@tnolet , I agree. And, is it OK to keep the flags for the |
No, no flag at all. Login is interactive. If you don't want interactive, use env vars. |
I created checkly/docs.checklyhq.com#813 to add the |
Story description
We have 2 special env vars for bypassing the auth flow which we use heavily with the CI use case. We are not using the oclif framework to set this env vars which then causes it not to be printed when a user invokes the
--help
command. Instead, we should move these to theAuthCommand
so they are documented and easier to be discovered by the userShortcut link
No response
Additional resources
No response
The text was updated successfully, but these errors were encountered: