livekit-cli icon indicating copy to clipboard operation
livekit-cli copied to clipboard

feat: Support CLI flag to discard env vars with empty value

Open korya opened this issue 2 months ago • 1 comments

Instead of failing.

This eliminates the need to wrap lk invocations with custom logic for manually filtering out such values. For example, this is a real script for deploying using lk agent deploy:

rm -f .env.lk
sed '/^#/d' .env | grep -vE '^[A-Za-z_][A-Za-z0-9_]*=$' > .env.lk
lk agent deploy --secrets-file .env.lk

With the flag, this would be just:

lk agent deploy --secrets-file .env --ignore-empty

Related:

  • https://github.com/livekit/livekit-cli/issues/678
  • https://github.com/livekit/livekit-cli/pull/724

korya avatar Dec 12 '25 16:12 korya

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Dec 12 '25 16:12 CLAassistant