Have a way to detect that no credentials are present and that an init/auth action should happen

Open
#3,260 0 comments 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

Assessment

This issue has not been assessed yet.

Description

enhancement priority:medium ux

Description

As a new user, if I type scw, it might not be easy to detect how to login. scw login, scw auth, scw init, ...

Therefore, we should help new user by having the CLI detecting whether or not a profile is present and offer to create one with a prompt.

How this functionality would be exposed

You are currently logged out, would you like to log in? [y/n]: y

References

Version

Version 2.16.1
BuildDate unknown
GoVersion go1.20.5
GitBranch unknown
GitCommit unknown
GoArch amd64
GoOS darwin

Dominant language
Go
Stars
997
Forks
172
Avg merge
1d 3h
Merged PRs (30d)
107

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scaleway/scaleway-cli

All issues in scaleway/scaleway-cli

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.