Skip to content

UX: coder cli should read login URL from file if not given #9551

Closed
@MrPeacockNLB

Description

@MrPeacockNLB

Description

After a successful login a file ulr gets written to ~/.config/coderv2. After timeout one have to set the login url parameter again.

 coder-config]$ coder login
build info: Get "https:///api/v2/buildinfo": http: no Host in request URL
running command "coder login": Failed to check server "https:" for first user, is the URL correct and is coder accessible from your browser? Error - has initial user:
    github.com/coder/coder/v2/cli.(*RootCmd).login.func1
        /home/runner/actions-runner/_work/coder/coder/cli/login.go:185
  - Get "https:///api/v2/users/first": http: no Host in request URL

Desired behaviour

If file url exists the login url should be taken from this file. No need to pass login url again.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions