do I need to redeploy after updating secrets?
# ask-ai
g
do I need to redeploy after updating secrets?
t
Thanks for reaching out, Oliver. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
No worries—you don’t need to redeploy after updating secrets in LiveKit. When you update secrets, it automatically triggers a rolling restart of the agent. This means new sessions will use the updated secrets, while any active sessions keep running smoothly without interruption. You can update secrets easily using the
lk agent update-secrets
command: • To update individual secrets:
lk agent update-secrets --secrets "SECRET_A=foo" --secrets "SECRET_B=bar"
• To update from a secrets file:
lk agent update-secrets --secrets-file=path/to/secrets.env
By default, this will add or update the secrets you provide without changing any others. If you want to replace all existing secrets, just add the
--overwrite
flag. Sources: Secrets management | LiveKit Docs | Agent deployment CLI reference | LiveKit Docs