This message was deleted.
# ask-ai
s
This message was deleted.
t
Thanks for reaching out, Jannik. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
You're asking whether the LiveKit CLI
--silent
flag being ignored in your pipeline is a known bug — regarding that flag: • The
--silent
flag is supported for
lk agent create
to suppress interactive prompts and proceed using provided arguments. •
--silent
is not a global flag; it has no effect on other subcommands (for example
deploy
,
update
,
status
). Using it with those commands will appear to do nothing — this is expected behavior, not a bug. • If you are running
lk agent create --silent ...
and still seeing prompts, verify your CLI version (older versions may behave differently). If you tell me which exact
lk
command and arguments you run in your pipeline and the CLI version (
lk --version
), I can help pinpoint whether it's a misuse of the flag or a version-specific issue. Would you like to share that? Sources: Agent deployment CLI reference | LiveKit docs
Thanks — you're using
lk version 2.12.2
and the exact command. That helps. The
--silent
flag is a boolean switch for
lk agent create
and should be passed without a value. Using
--silent true
causes the CLI to ignore it. Use:
Copy code
lk agent create --silent --secret-mount "./environment.json"
Try that in your pipeline. If you still see prompts after that, tell me the exact prompt text and the shell/CI runner you use and I’ll help further.
Thanks — I’m responding about the
--silent
flag being ignored even when you run
lk agent create --silent ...
. Please provide the following so I can diagnose: 1. The exact prompt text you still see when the command runs. 2. Your CI/shell environment (e.g., GitHub Actions, GitLab CI, Docker container, runner OS). 3. Whether these environment variables are set in the pipeline:
LIVEKIT_API_KEY
,
LIVEKIT_API_SECRET
,
LIVEKIT_URL
. 4. The full command line as it appears in your pipeline log (sanitized of any secrets). 5. Output of
lk --version
from inside the CI job (to confirm it’s 2.12.2 there). Quick checks you can try meanwhile: • Ensure
--silent
is passed without a value:
lk agent create --silent --secret-mount "./environment.json"
. • Preconfigure auth via env vars so the CLI won’t prompt for credentials. • Run the same command locally with
--no-tty
or in a non-interactive shell in CI to see if the runner’s TTY handling is causing prompts. Send the details and I’ll pinpoint the cause and next steps. Sources: Agent deployment CLI reference | LiveKit docs | Server-side | livekit/livekit_composite | DeepWiki
Thanks — I'm responding about the prompt you still see when running
lk agent create --silent
locally and in CI. That prompt appears because required inputs are missing (project selection or an AgentId).
--silent
suppresses prompts but does not invent missing values. To run fully non-interactively, provide the required inputs ahead of time: • Pass an agent id:
Copy code
lk agent create --id CA_MyAgentId --silent --secret-mount "./environment.json"
• Or include
[agent].id
in
livekit.toml
. • Ensure project and auth are preconfigured via env vars or config: ◦
LIVEKIT_API_KEY
,
LIVEKIT_API_SECRET
, and
LIVEKIT_URL
set in your environment or CI. • Confirm the CLI in your CI is the same version you checked locally (
lk --version
inside the job). If you still get the prompt after supplying those, tell me: 1. The exact command you run (sanitized). 2. The exact prompt text you see. 3. Your CI/shell environment (e.g., GitHub Actions, Docker). I’ll use that to pinpoint why the CLI falls back to interactive selection. Sources: Agent deployment CLI reference | LiveKit docs
Great — glad setting the global
--project
fixed it. That ensures the CLI has the project context so
--silent
can suppress prompts during
lk agent create
. Would you like help adding
--project
to your CI job or making it persistent in
livekit.toml
?
Thanks — you're running: lk agent create --project "AgentV1" --silent --secret-mount "/Users/xxxx/Work/Agent1/environment.json" lk version 2.12.2 That looks correct. A few targeted checks to make sure
--silent
actually suppresses prompts in your pipeline: 1. Ensure the agent ID is provided (either via
--id
or
livekit.toml
). Missing agent id can force interactive prompts even with
--silent
. Example:
Copy code
lk agent create --project "AgentV1" --id CA_MyAgentId --silent --secret-mount "./environment.json"
1. Confirm the CI runner can read the secrets file path you supplied. Absolute local paths (like
/Users/xxxx/...
) often don't exist inside CI runners — use a path available in the job workspace or mount the file into the container. 2. Verify auth is available in the CI environment (set
LIVEKIT_API_KEY
,
LIVEKIT_API_SECRET
,
LIVEKIT_URL
) so the CLI won't prompt for credentials. 3. Run the exact command inside the CI job and capture the first few lines of the job log (sanitized). If the job still prompts, share the exact prompt text and the CI system (GitHub Actions, GitLab, Docker runner, etc.). If you want, I can show how to: • Add
--id
and
--project
to your CI job, or • Persist project/agent configuration in
livekit.toml
for fully non-interactive runs. Which would you prefer?