give me the sequence of commands. I need to authen...
# ask-ai
b
give me the sequence of commands. I need to authenticate via terminal in ubuntu. Then create a init project as the template. Then lk agent create to push it for the first time then deploy for the next updates
t
Thanks for reaching out, Wesley. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’ve prepared a concise sequence of terminal commands you can run on Ubuntu to: • authenticate the LiveKit CLI, • initialize a new agent project from a template, • create (first-time push) the agent with
lk agent create
, and • deploy future updates with
lk agent deploy
. Run these commands in order: 1. Install the LiveKit CLI
Copy code
curl -sSL <https://get.livekit.io/cli> | bash
1. Authenticate with LiveKit Cloud
Copy code
lk cloud auth
(This opens a browser so you can log in and link the CLI to your project.) 1. Initialize an agent project from a template
Copy code
lk agent init my-agent --template agent-starter-node
Replace
my-agent
with your folder name and
agent-starter-node
with
agent-starter-python
if you prefer Python. 1. Enter the project directory
Copy code
cd my-agent
1. Install dependencies (Node.js template example)
Copy code
pnpm install
If the template uses npm or yarn, use
npm install
or
yarn install
instead. 1. (Optional but recommended) Pre-download runtime model files
Copy code
pnpm download-files
This prevents cold-start delays for agent models. 1. Create (first-time deploy) the agent
Copy code
lk agent create
This builds the image, registers the agent with your LiveKit project, and generates a
livekit.toml
with the agent ID and subdomain. 1. Deploy updates later After you change code or config, run:
Copy code
lk agent deploy
This re-builds and deploys a new version using the same agent ID. Quick summary block you can copy:
Copy code
curl -sSL <https://get.livekit.io/cli> | bash
lk cloud auth
lk agent init my-agent --template agent-starter-node
cd my-agent
pnpm install
pnpm download-files
lk agent create
# after changes:
lk agent deploy
If you want, tell me: • which template you want (Node or Python), • whether you use
pnpm
,
npm
, or
yarn
, and • any specific environment variables or model plugins you plan to enable— and I’ll tailor the commands or add any extra steps (e.g., editing
livekit.toml
, setting secrets, or checking logs). Sources: Google AI and LiveKit | LiveKit Documentation | Voice AI quickstart | LiveKit Documentation | Agents (Node.js) | livekit/livekit_composite | DeepWiki | examples/drive-thru | livekit/livekit_composite | DeepWiki