I want to change project for my lk dispatch comman...
# ask-ai
c
I want to change project for my lk dispatch command.
t
Thanks for reaching out, Subham. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
If you want to switch up the project just for the
lk dispatch
command, you can easily do that by using the
--project
flag. Here’s a quick example:
Copy code
lk dispatch create --room my-room --agent-name my-agent --project my-project-name
Now, if you'd prefer to set a default project that applies to all your commands (so you don’t have to keep specifying it), just use this:
Copy code
lk project set-default my-project-name
And if you want to see all your configured projects and check which one is set as the default, just run:
Copy code
lk project list
Sources: cmd/lk/main.go | LiveKit CLI project management | LiveKit Docs
c
lk agent delete --id CA_3YuSziQDdmxw --project qualif 7s py 3.12.3 Using project [qualif] project does not match agent subdomain [qualif-test-sd-pudqlkd0] how to change the subdomain, why is my default project for agent use still qualif-test-sd?
t
Hey there! This error pops up because the subdomain set for your agent doesn’t quite match the subdomain of the project you’ve selected. No worries though, here’s how you can fix it: 1. Open up the
livekit.toml
file in your project folder. Inside the
[project]
section, update the
subdomain
field so it matches your LiveKit project’s subdomain. It should look something like this:
Copy code
[project]
subdomain = "qualif-test-sd-pudqlkd0"
1. Double-check that the project you’ve picked in the CLI matches that subdomain. You can run
lk project set-default
to make sure the right project is set as default. 2. Next, regenerate your agent configuration with
lk agent config
so it pulls in the correct subdomain from your project. 3. Finally, restart or redeploy your agent to apply these updates. If you get stuck or want me to walk you through any of these steps, just let me know—I’m here to help! Sources: Deploying to production | LiveKit Docs | cmd/lk/utils.go | .env.example | complex-agents/drive-thru/frontend/.env.example | client/web/.env.example