Skip to content

Conversation

rektdeckard
Copy link
Member

https://linear.app/livekit/issue/DPRO-461/save-project-id-in-cli-credentials

  • Begins saving project ID on credentials when authenticating
  • Adds ability to specify a specific project to auth with lk cloud auth <project_id>, which when backend support is added, will let us pre-select (and automatically confirm) project to authenticate.

This will let us auto-select (and if we want, auto-accept) a project
when user provides the project ID in advance.
@rektdeckard rektdeckard requested review from bcherry and yoonsio August 22, 2025 02:31
Copy link
Contributor

@yoonsio yoonsio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we query for projectID based on their current configs?

@rektdeckard
Copy link
Member Author

rektdeckard commented Aug 22, 2025

@yoonsio we don't backfill existing configured projects, just new auths from now on. If you want I can add a check and backfill if any project doesn't have an ID whenever config file is read? But we need new API for it.

@@ -271,6 +276,7 @@ func tryAuthIfNeeded(ctx context.Context, cmd *cli.Command) error {
// get devicename
if err := huh.NewInput().
Title("What is the name of this device?").
Description("A short name you can use to find and manage generated API keys on the LiveKit Cloud dashboard").
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

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

Successfully merging this pull request may close these issues.

3 participants