microscopic-tiger-52909
08/31/2025, 3:11 AMtall-airline-16756
08/31/2025, 3:11 AMtall-airline-16756
08/31/2025, 3:12 AMwss://your-project.livekit.cloud)
• `LIVEKIT_API_KEY`: Your project’s API key
• `LIVEKIT_API_SECRET`: Your project’s API secret
The LiveKit CLI will automatically pick up these variables for you.
Here’s a quick example of how you might set this up in GitHub Actions:
env:
LIVEKIT_URL: ${{ secrets.LIVEKIT_URL }}
LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY }}
LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET }}
Another handy way is to pre-configure your project like this:
lk project add --api-key <key> --api-secret <secret> --url <url> my-project
Then, when you want to create tokens in your scripts, just reference your project:
lk token create --project my-project --join --room test_room --identity user
Using these approaches makes automation smooth and easy, without needing any browser-based authentication steps. Hope this helps!
Sources: CLI Setup | LiveKit Docs | pkg/auth/auth.gomicroscopic-tiger-52909
08/31/2025, 3:30 AMtall-airline-16756
08/31/2025, 3:30 AM--silent flag with the LiveKit CLI to skip those interactive prompts and automatically confirm commands. This is super handy if you’re running things remotely or automating tasks.
For example, if you want to create an agent without any back-and-forth:
lk agent create --silent
Or, if you need to update agent secrets without any prompts popping up:
lk agent update-secrets --silent --secrets "KEY=VALUE"
This little flag helps keep things smooth by suppressing confirmation dialogs and other prompts, so your scripts or CI/CD pipelines can run without a hitch.
Sources: README.mdmicroscopic-tiger-52909
08/31/2025, 3:31 AMtall-airline-16756
08/31/2025, 3:32 AM--silent flag in the LiveKit CLI is a handy feature that helps you skip those interactive prompts when running commands—perfect if you're automating things. You'll find it defined as a boolean flag in the utils.go file:
silentFlag = &cli.BoolFlag{
Name: "silent",
Usage: "If set, will not prompt for confirmation",
Required: false,
Value: false,
}
This flag is used in commands like lk agent create and lk agent update-secrets, letting you breeze past confirmation dialogs and other prompts. For example:
lk agent create --silent
If you want, I’d be happy to share more details about how it works in the codebase or in specific commands—just let me know!
Sources: cmd/lk/utils_test.go | Agent deployment CLI reference | LiveKit Docsmicroscopic-tiger-52909
08/31/2025, 3:32 AMtall-airline-16756
08/31/2025, 3:33 AM