Skip to content

Make project selection interactive again #601

@Sylvestre67

Description

@Sylvestre67

(Written by @mythmon)
Selecting a project, or defining the details of a newly created project, should not require hand-editing the observable.config.ts file.

There have been two proposals for how to do this:

  • Direct users to the web to interact with project creation/selection UI
  • Build a nice UI on the CLI that walks users through the process

The web UI sounds nice in some cases, and gives us a lot of integration with the rest of the flow (like automatic authentication, and other niceties), but recent experience with the authentication system has shown us that communicating from the browser to the CLI is hard to do reliably.

Instead I suggest we stay entirely on the CLI, with the exception of observable login. There are a lot of tools that we can draw inspiration from (such as Cloudflare's Wrangler and Github's gh). We might continue to roll our own, or use a library like prompts (used in Create), enquirer, inquirer, or @clack/prompts.. Per #606 lets use @clack/prompts.

I don't think we should use a more opinionated library like ink.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions