How to display api key and secret using livekit cl...
# ask-ai
d
How to display api key and secret using livekit cli ? lk app env display the wrong key and secret
t
Thanks for reaching out, W. 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 display the API key and secret using the LiveKit CLI! You can simply run this command:
Copy code
lk project list --json
This will show you all the configured projects along with their API keys and secrets in a neat JSON format. If you're looking to focus on a specific project, a handy tool like
jq
can help you filter the details. For instance:
Copy code
lk project list --json | jq '.[] | select(.name == "your-project-name")'
If you have any questions or need a hand with this, please don’t hesitate to reach out—I’m here to help! Sources: LiveKit CLI project management | LiveKit docs | README.md | livekit-agents/livekit/agents/cli/cli.py | README.md | web/.env.sample
d
I do not understand.. The key I use for production are different and works. THese keys do not work
t
Thanks for sharing that! It looks like the keys shown by the CLI don’t quite match the ones you’re using in production. To help me get a clearer picture and support you better, could you please share a bit more? • Are you working with multiple projects or environments, like staging and production? • Did you set up the production keys manually or through the CLI? • Are both environments using the same LiveKit account? Your answers will really help me understand what’s going on and guide you in the right direction. Looking forward to your reply!
d
I setup the production key when I created the project months ago. Now the api key and secret are not visible anymore from the cloud dashboard
t
It can be a bit frustrating when the API key and secret aren’t visible in the LiveKit Cloud dashboard, but don’t worry—I’m here to help you through it! Here are some friendly steps you can try: 1. Check Project Settings: First, double-check that you’re looking at the right project in the dashboard. Usually, the API key and secret live in the project settings. 2. Reveal Credentials: Sometimes these details are hidden for security. Look for a "Reveal API Key and Secret" button in the settings—it might just be waiting for you to click it. 3. Use the LiveKit CLI: If you’re comfortable with the command line, you can run this command to see all your projects and their credentials in JSON format:
lk project list --json
4. Generate New Credentials: If the keys are still out of reach, no worries! You can revoke the old ones and create new credentials with: `lk cloud auth --revoke`Then simply follow up with:
lk cloud auth
5. Verify Permissions: Sometimes it’s a permissions issue. Make sure your account has the rights to view or manage API keys. If you’re on a team, it might be worth checking in with your organization’s admin. If you try these steps and still feel stuck, just reach out—I’m here to help you get this sorted out! Sources: Mini tutorial: setting up a LiveKit Cloud project | LiveKit CLI project management | LiveKit docs | Secrets management | LiveKit Docs | cerebrium/README.md