denoland / denoland/deploy_feedback

Make login to Deploy from deployctl easier

Open
#453 1 comment 3 reactions 0 assignees View on GitHub
enhancement
Dominant language
No language data
Stars
79
Forks
5
PR merge metrics
No merged PRs in 30d

Description

### What problem are you trying to solve?

I want an easier login flow for deployctl, instead of going to https://dash.deno.com/account#access-tokens, I'd like to stay on the command line.

### Describe the solution you'd like

A CLI command: `deployctl login` which would pop open a link to dash.deno.com and authorize you, then transfer the token back down to my local machine, which saves it into a file which deployctl then references.

### Describe alternatives you've considered

Not changing it, seems like a papercut in onboarding that we don't need.

### Documentation, Adoption, Migration Strategy

New user onboarding could look like:
```
deno install -Arf https://deno.land/x/deploy/deployctl.ts
deployctl login
deployctl deploy --project=helloworld server.ts
```

Optionally, we could just kick off the login flow before the deploy flow if you're not already logged in, so you could just call:

```
deno install -Arf https://deno.land/x/deploy/deployctl.ts
deployctl deploy --project=helloworld server.ts
```

Which would install deployctl, login you into Deploy, and deploy your project in 2 lines.

Flow taken from:
image

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the deployctl login and deploy commands described in the issue, and review the current access-token flow at dash.deno.com/account#access-tokens. Done means deployctl can open the authorization link, receive and save the token locally, and use it for deployment without manual token retrieval.

Written by the indexing model from the issue text.

Assessment

Tech stack
deno
Domain
authentication, cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.