Skip to content
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

[FEATURE REQUEST] Create profile 'user' by default if no FASTLY_API_TOKEN is available #1301

Open
kpfleming opened this issue Aug 22, 2024 · 0 comments

Comments

@kpfleming
Copy link
Contributor

Is your feature request related to a problem? Please describe.
When any command which requires authentication is executed and there are no existing profiles, and FASTLY_API_TOKEN is not available, the CLI prompts the user to launch a web browser to complete authentication.

If the user chooses to proceed, they get an error:

ERROR: the profile 'user' does not exist.

Run `fastly profile create <NAME>` to create a profile, or `fastly profile list` to view available profiles (at least one profile should be set as 'default').

Describe the solution you'd like
If there are no profiles, the CLI should allow the authentication process to proceed, and if it successful create a profile named user with the authentication details. That profile should be set as the default. The effect should be the same as if the user had run fastly profile create --sso.

Describe alternatives you've considered
The current situation could be addressed via documentation, but it's not a smooth flow for new users, especially since fastly profile create defaults to API token-based authentication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant