Conversation
Contributor
Author
|
An unknown command (now suggests lk-update.mp4 |
bcherry
approved these changes
Sep 24, 2026
Contributor
|
should there be a way to check if you have the latest version too? |
lk update to upgrade the CLI via its installerlk update and lk can-update
lk update and lk can-updatelk update and lk can-update, and point unknown commands at them
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
lk updateworks out how the runninglkwas installed and runs that installer's upgrade, so docs and starter templates (e.g. livekit-examples/agent-starter-python#105) can say "runlk update" instead of listing a command per platform.Detection is by the resolved path of the running binary:
/Cellar/livekit-cli/brew upgrade livekit-cli\WinGet\Packages\LiveKit.LiveKitCLIwinget upgrade --id LiveKit.LiveKitCLI --exactinstall-cli.sh(Linux)/usr/local/bin/lkcurl -sSL https://get.livekit.io/cli | bashAnything else (
go install, a local build) exits non-zero and points at the install docs rather than guessing.lk can-updateasks GitHub for the latest release and prints Yes (with the newer version and a pointer tolk update) or No.An unknown command or subcommand (e.g.
lk agent frobnicate) keeps urfave/cli'sNo help topic for '…'message and exit code 3, and adds: "If this command is new, your lk may be out of date. Runlk can-updateto check andlk updateto update." A coding agent that follows docs written for a newerlkthen learns how to fix it.Testing
TestUpdateCommandForcovers each mapping and the unknown cases.brew upgrade livekit-cliand upgraded 2.18.4 → 2.18.8.lk can-updateprints No on 2.18.8 and Yes on a build withVersionset to 2.18.4.lk frobnicate,lk agent frobnicateandlk docs serchprint the hint and exit 3.