Skip to content

Instruct admins to set up through CLI #3223

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

Closed
2 tasks
presleyp opened this issue Jul 26, 2022 · 3 comments
Closed
2 tasks

Instruct admins to set up through CLI #3223

presleyp opened this issue Jul 26, 2022 · 3 comments
Labels
site Area: frontend dashboard

Comments

@presleyp
Copy link
Contributor

presleyp commented Jul 26, 2022

Problem

When an admin starts a new deployment of Coder, they must create the first user through CLI, but this is not obvious.

Initial Solution

Have the frontend detect whether the first user has been created. If not, have it display CLI instructions.

Eventual Solution

Replace the CLI instructions with a sign-up page so that the admin can do create their user through the UI.

Definition of Done

  • In a deployment with no users, the login page redirects to a page that displays instructions on how to create the first user through the CLI
  • A deployment with at least one user has no change

Notes

Here's what the signup flow looks like from the CLI: https://asciinema.org/a/cy8QVTPwazDAV6cxcV6DF1Qnj

Here's where initial user creation is implemented in the CLI: https://github.com/coder/coder/blob/v0.8.1/cli/login.go#L81-L196

@kylecarbs
Copy link
Member

Would this work be obviated by #3225?

@kylecarbs
Copy link
Member

Ahh, I see based on the description it would be. Could we just jump straight to doing the form instead? Seems like this middle step would be a little helpful, but most users are likely to go back to the CLI anyways.

@misskniss
Copy link

We do not need this one now that we have #3225. Closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site Area: frontend dashboard
Projects
None yet
Development

No branches or pull requests

3 participants