how to set default project
# ask-ai
c
how to set default project
t
Thanks for reaching out, Arjun. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
I'd be happy to help you set a default project in LiveKit! You can do this easily using the CLI command:
Copy code
lk project set-default PROJECT_NAME
Just replace
PROJECT_NAME
with the name of the project you'd like to set as your default. If you're adding a project and want to set it as default right away, you can include the
--default
flag like this:
Copy code
lk project add PROJECT_NAME --url LIVEKIT_URL --api-key API_KEY --api-secret API_SECRET --default
And if you ever want to double-check which project is currently set as default, just list all your projects with:
Copy code
lk project list
You'll see an asterisk (*) next to the default project in the list. If you have any questions or need further assistance, feel free to ask! Sources: LiveKit CLI project management | LiveKit Docs
c
how to check deployed agent logs
t
I'm here to help you check your deployed agent logs in LiveKit using the CLI. Here's how you can do it: • If you'd like to see runtime logs in real-time, simply use:
Copy code
lk agent logs
• And if you're looking to view build logs, this command will do the trick:
Copy code
lk agent logs --log-type=build
Just a quick note: LiveKit Cloud doesn’t store runtime logs, so you’ll only be able to see them while tailing in real-time. For keeping logs longer or diving deeper with analysis, you can forward them to external services like Datadog, CloudWatch, Sentry, or New Relic. You can set this up by configuring the right secrets with:
Copy code
lk agent update-secrets
If you’d like a hand setting up log forwarding to any specific service, please don’t hesitate to ask—I’m here to help! Sources: Log collection | LiveKit Docs | Agent deployment CLI reference | LiveKit Docs | Logs, metrics, and telemetry | LiveKit Docs | Deploying to production | LiveKit Docs | Log collection | LiveKit Docs