i want to build CD/CI to deploy livekit agent clou...
# ask-ai
t
i want to build CD/CI to deploy livekit agent cloud. I could build on local with
Copy code
lk cloud
lk agent create
lk agent deploy
but those step having interactive option to pick. how to make it no interactive and attach .env
t
Thanks for reaching out, Quinn. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Hi there! To help you make your LiveKit agent deployment non-interactive and attach a
.env
file for your CI/CD process, you can use this command:
Copy code
lk agent deploy --secrets-file .env --silent
This command is great because: • It reads secrets directly from your specified
.env
file and injects them into the agent. • It skips any interactive confirmation prompts, which is perfect for automated workflows. Here are a few friendly tips to keep in mind: • Make sure you have a
livekit.toml
file in your working directory, or alternatively, specify the agent ID using the
--id
flag. • Before running the deployment, double-check that your
.env
file exists and is properly formatted in your CI/CD pipeline. • For sensitive information like
LIVEKIT_API_KEY
or
LIVEKIT_API_SECRET
, it’s best not to include them in the
.env
file, since the CLI usually handles those separately. If you just want to update secrets without redeploying your code, you can simply run:
Copy code
lk agent update-secrets --secrets-file .env --silent
This will smoothly trigger a rolling restart of your agent with the updated secrets. If you have any questions or need a hand with anything else, feel free to ask—I’m here to help! Sources: rover/cam_publish.sh | Agent deployment CLI reference | LiveKit Docs | Secrets management | LiveKit Docs | cmd/lk/app.go
t
we do not need lk cloud?
lk cloud auth
t
Thanks for reaching out! Just to make sure I understand correctly, are you wondering if
lk cloud auth
is required for non-interactive deployments, or are you exploring other authentication options like API keys or environment variables for your CI/CD pipeline? Knowing this will really help me guide you to the best solution for your setup. Sources: autocomplete/fish_autocomplete | livekit/livekit_composite | DeepWiki | livekit/livekit_composite | DeepWiki | Deploying to production | LiveKit Docs
t
i am wondering if
lk cloud auth
is required for non-interactive deployments,
🙌 1
lk cloud auth --help NAME: lk cloud auth - Authenticate LiveKit Cloud account to link your projects USAGE: lk cloud auth [options] OPTIONS: --revoke, -R (default: false) --timeout SECONDS, -t SECONDS Number of SECONDS to attempt authentication before giving up (default: 900) --poll-interval SECONDS, -i SECONDS Number of SECONDS between poll requests to verify authentication (default: 4) --help, -h show help GLOBAL OPTIONS: --url URL URL to LiveKit instance (default: “http://localhost:7880”) [$LIVEKIT_URL] --api-key KEY Your KEY [$LIVEKIT_API_KEY] --api-secret SECRET Your SECRET [$LIVEKIT_API_SECRET] --dev Use developer credentials for local LiveKit server (default: false) --project NAME NAME of a configured project --subdomain SUBDOMAIN SUBDOMAIN of a configured project --config TOML Config TOML to use in the working directory (default: “livekit.toml”) --curl Print curl commands for API actions (default: false) --verbose (default: false) how to extact .env into lk cloud auth
how to build cd ci for livekit agent cloud
how to build cd ci for livekit agent cloud