lk app create \ --sandbox test2-1uymju . doesnt w...
# ask-ai
m
lk app create \ --sandbox test2-1uymju . doesnt work
t
Thanks for reaching out, Cici. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You’re trying to run
lk app create --sandbox test2-1uymju
— thanks for sharing that. The command fails because the
--template
flag is required. Try this format:
Copy code
lk app create --template <template-name> --sandbox test2-1uymju [app-name]
Example:
Copy code
lk app create --template agent-starter-react --sandbox test2-1uymju my-app
Also confirm: • You’re authenticated: run
lk cloud auth
• Your CLI is up to date • The sandbox ID
test2-1uymju
exists and is accessible If that still fails, please paste the exact error message you see and the CLI version (
lk --version
) and I’ll help you troubleshoot. Sources: Sandbox | LiveKit docs | Agent deployment CLI reference | LiveKit docs
m
(base) % livekit-cli app create --template agent-starter-react --sandbox test2-1uymju my-app No help topic for 'app'. Did you mean "create-sip-participant"?
t
You ran
livekit-cli app create ...
and got "No help topic for 'app'". That means the CLI you invoked doesn't recognize the
app
subcommand. Quick next steps: 1. Use the correct binary name: run
lk --help
(not
livekit-cli
) and confirm
app
appears in the list. 2. If
lk
is missing or
app
is not listed, install/update the official CLI: ◦ macOS (Homebrew):
brew install livekit-cli
◦ Linux:
curl -sSL https://get.livekit.io/cli | bash
1. Authenticate:
lk cloud auth
2. Re-run the create command:
Copy code
lk app create --template agent-starter-react --sandbox test2-1uymju my-app
If that still fails, please paste the output of: •
which lk
(or
which livekit-cli
) •
lk version
(or
livekit-cli --version
) • the exact error text you see. I'll help you from there. Sources: LiveKit CLI Setup | LiveKit Docs | App templates | LiveKit docs | Sandbox | LiveKit docs
m
✘ API Source livekit-cli.rb Error: Failed to download resource "livekit-cli.rb" Download failed: https://raw.githubusercontent.com/Homebrew/homebrew-core/d0c6fa906724ca7aefdeaf82e27413932b78ba67/Formula/l/livekit-cli.rb ==> Downloading https://raw.githubusercontent.com/Homebrew/homebrew-core/d0c curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 4 ms: Connection refused Error: livekit-cli: Failed to download resource "go.rb" Download failed: https://raw.githubusercontent.com/Homebrew/homebrew-core/d0c6fa906724ca7aefdeaf82e27413932b78ba67/Formula/g/go.rb ✘ API Source go.rb Error: Failed to download resource "go.rb" Download failed: https://raw.githubusercontent.com/Homebrew/homebrew-core/d0c6fa906724ca7aefdeaf82e27413932b78ba67/Formula/g/go.rb
t
Thanks — I see Homebrew is failing to download files from raw.githubusercontent.com, which is why installing/updating
livekit-cli
via Homebrew is failing and you can't get the
lk
binary. Two quick paths to get you unstuck — pick one that fits your environment: Option A — Install the CLI with the official install script (works around Homebrew) 1. Run:
Copy code
curl -sSL https://get.livekit.io/cli | bash
1. After it finishes, verify:
Copy code
lk --version
   lk --help
1. Then authenticate and retry:
Copy code
lk cloud auth
   lk app create --template agent-starter-react --sandbox test2-1uymju my-app
Option B — Manual download (if your network blocks raw.githubusercontent.com but allows GitHub releases) 1. Download the appropriate LiveKit CLI release binary from the GitHub releases page (choose your OS/arch). 2. Make it executable and move it into your PATH (example for macOS/Linux):
Copy code
chmod +x livekit-cli
   sudo mv livekit-cli /usr/local/bin/lk
1. Verify with
lk --version
and proceed as in Option A. If neither works, try these checks and tell me the results: • Can you reach raw.githubusercontent.com?
curl -I https://raw.githubusercontent.com
(paste the output) •
which lk
and
lk --version
(or
which livekit-cli
and
livekit-cli --version
) • Are you behind a corporate proxy or VPN that could block raw.githubusercontent.com? If you want, tell me which OS you’re on and I’ll give the exact manual-binary link and step commands.
m
curl -I https://raw.githubusercontent.com curl: (7) Failed to connect to raw.githubusercontent.com port 443 after 19 ms: Connection refused
t
Thanks — that curl output confirms your machine cannot reach raw.githubusercontent.com (connection refused), which is why Homebrew and the installer fail. You can get unstuck two ways — pick one and I’ll provide exact commands for your OS: Option 1 — Temporary network workaround • Try from a different network or use a VPN to bypass the block, then run:
Copy code
curl -sSL https://get.livekit.io/cli | bash
Verify with
lk --version
. Option 2 — Manual download and install (no raw.githubusercontent required) • Tell me your OS and architecture (macOS Intel/Apple Silicon, Linux x86_64/ARM, or Windows), and I’ll give the direct GitHub release binary link and the exact commands to: a. download the correct binary, b. make it executable, c. move it into your PATH as
lk
. If you prefer to troubleshoot the network instead, tell me: • Are you behind a corporate proxy or VPN? • OS and whether you can access github.com but not raw.githubusercontent.com. Which option do you want to try, and what OS/arch are you on?
m
livekit-cli --version livekit-cli version 1.5.2
t
Thanks — you’ve confirmed
livekit-cli
v1.5.2 is installed. That version does not include the
app
subcommand; the newer, correct binary is
lk
(which provides
lk app create
). I can help you upgrade two ways. Tell me your OS and CPU (choose one): • macOS Intel, macOS Apple Silicon, Linux x86_64, Linux ARM, or Windows Once you reply I’ll give the exact download and install commands (manual binary) so you can install
lk
locally without needing raw.githubusercontent.com, then you can verify with
lk --version
and re-run:
Copy code
lk app create --template agent-starter-react --sandbox test2-1uymju my-app
m
macOS Apple Silicon
t
Thanks — since you’re on macOS Apple Silicon and raw.githubusercontent.com is blocked, follow these steps to manually install the correct
lk
binary and then create your app. 1. Download the latest macOS ARM64 release tarball from GitHub Releases: ◦ Open this page in your browser: https://github.com/livekit/livekit-cli/releases/latest ◦ Download the file named like
livekit-cli_<version>_darwin_arm64.tar.gz
1. In Terminal, extract and install:
Copy code
cd ~/Downloads
tar -xzf livekit-cli_*_darwin_arm64.tar.gz
sudo mv livekit-cli /usr/local/bin/lk
sudo chmod +x /usr/local/bin/lk
1. Verify installation:
Copy code
lk --version
lk --help
You should see
lk
and
app
in the help output. 1. Authenticate and create the app:
Copy code
lk cloud auth
lk app create --template agent-starter-react --sandbox test2-1uymju my-app
If you can’t reach GitHub releases from your machine either, tell me and I’ll provide an alternate approach (e.g., transfer the binary from another machine or use a VPN). Otherwise paste the output of
lk --version
after step 2 and I’ll help you run the create command. Sources: LiveKit CLI Setup | LiveKit Docs | Sandbox | LiveKit docs | App templates | LiveKit docs
m
I dont see darwin. only linux or windows
t
Thanks — I understand you’re on macOS Apple Silicon and don’t see a darwin asset. Let’s get you the correct binary without using raw.githubusercontent. Option A — Download the macOS ARM64 release (preferred) 1. Open this page in your browser: https://github.com/livekit/livekit-cli/releases/latest 2. In the release’s Assets list, look for a file named like: ◦
livekit-cli_<version>_darwin_arm64.zip
or
livekit-cli_<version>_darwin_arm64.tar.gz
(macOS builds are listed under Assets — expand the release to see them.) 1. Download that file to your Mac, then in Terminal:
Copy code
cd ~/Downloads
   tar -xzf livekit-cli_*_darwin_arm64.*    # or unzip if .zip
   sudo mv livekit-cli /usr/local/bin/lk
   sudo chmod +x /usr/local/bin/lk
1. Verify:
Copy code
lk --version
   lk --help
Option B — If the darwin asset truly isn’t visible or GitHub is blocked 1. On another machine that can access GitHub Releases, download the macOS ARM64 asset. 2. Transfer the file to your Mac (AirDrop, USB, scp). 3. Extract and install with the same commands above. After install, run:
Copy code
lk cloud auth
lk app create --template agent-starter-react --sandbox test2-1uymju my-app
If you don’t see a darwin_arm64 asset on the Releases page, paste a screenshot or the exact list of Assets you see for the latest release and I’ll identify the correct file for you. Sources: Voice AI quickstart | LiveKit docs | Sandbox | LiveKit docs
m
image.png
t
Thanks — I can see the release assets you scanned show only Linux and Windows builds for v2.12.9, so the darwin_arm64 asset isn’t present in that release. Let’s proceed with two simple options so you can get the
lk
binary on your Apple Silicon Mac. Option 1 — Use a nearby release that includes macOS ARM64 (fast) 1. Open this page in your browser: https://github.com/livekit/livekit-cli/releases 2. Find a release that lists an asset named
lk_<version>_darwin_arm64.tar.gz
or
lk_<version>_darwin_arm64.zip
. If you find one, download it to your Mac and run:
Copy code
cd ~/Downloads
tar -xzf lk_*_darwin_arm64.*    # or unzip if .zip
sudo mv lk /usr/local/bin/lk
sudo chmod +x /usr/local/bin/lk
lk --version
1. Then authenticate and create the app:
Copy code
lk cloud auth
lk app create --template agent-starter-react --sandbox test2-1uymju my-app
Option 2 — If no darwin_arm64 asset exists or GitHub is blocked: transfer from another machine (reliable) 1. On another machine that can access GitHub Releases, download the macOS ARM64 asset (or a release that includes it). 2. Transfer the file to your Mac (AirDrop, USB, scp). 3. Run the same extract/move/chmod commands above and verify with
lk --version
. Tell me which option you want. If you want, paste the exact Assets list you see on the Releases page (you can copy-paste filenames) and I’ll point to the correct release/asset to download.