From d63cee8b5d4ee8ced81e43f51ea66dd777dcb5da Mon Sep 17 00:00:00 2001 From: Tobias Fried Date: Thu, 22 Aug 2024 12:12:00 -0600 Subject: [PATCH] chore(lk): last looks for 2.1.0 release (#397) * chore(lk): bump version for 2.1.0 release * fix(auth): set default based on final (deduped) project name * chore(docs): update readme to include auth instructions --- README.md | 17 ++++++++++++----- cmd/lk/cloud.go | 2 +- version.go | 2 +- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index cafb9a88..d74151e1 100644 --- a/README.md +++ b/README.md @@ -57,12 +57,19 @@ make install See `lk --help` for a complete list of subcommands. -## Set up your project [new] +## Set up your project (new) -When a default project is set up, you can omit `url`, `api-key`, and `api-secret` when using the CLI. -You can also set up multiple projects, and temporarily switch the active project used with the `--project` flag, or persistently using `lk project set-default`. +The quickest way to get started is to authenticate with your LiveKit Cloud account and link an existing project. If you haven't created an account or project yet, head [here](https://cloud.livekit.io) first. Then run the following: -### Adding a project +```shell +lk cloud auth +``` + +Follow the URL to login in the browser and choose your project to link. When you return to your terminal, you'll have the option to use this project as the default. + +When a default project is set up, you can omit `url`, `api-key`, and `api-secret` when using the CLI. You can also set up multiple projects, and temporarily switch the active project used with the `--project` flag, or persistently using `lk project set-default`. + +### Adding a project manually ```shell lk project add --api-key --api-secret @@ -83,7 +90,7 @@ lk project set-default ### Publish demo video track -To publish a demo video as a participant's track, use the following. +To publish a demo video as a participant's track, use the following: ```shell lk room join --identity publisher --publish-demo diff --git a/cmd/lk/cloud.go b/cmd/lk/cloud.go index c14024a8..4c795923 100644 --- a/cmd/lk/cloud.go +++ b/cmd/lk/cloud.go @@ -349,7 +349,7 @@ func tryAuthIfNeeded(ctx context.Context, cmd *cli.Command) error { }) if isDefault { - cliConfig.DefaultProject = ak.Description + cliConfig.DefaultProject = name } if err = cliConfig.PersistIfNeeded(); err != nil { return err diff --git a/version.go b/version.go index d71522bf..d0945fab 100644 --- a/version.go +++ b/version.go @@ -15,5 +15,5 @@ package livekitcli const ( - Version = "2.0.4" + Version = "2.1.0" )