Agora CLI
Updated
Install the Agora CLI to log in, initialize official starters, write environment files, and run diagnostics for local Agora workflows.
Install the Agora CLI when you want the shortest path to a working Agora starter. Use it to log in, initialize an official starter, write environment values, switch projects, and diagnose setup problems from the terminal.
If you want to get a demo running before you fine-tune prompts or architecture, start here. After the starter works, add Agora MCP or Agora Skills if you want your assistant to stay grounded in current docs and Agora-specific workflows.
Install the Agora CLI
curl -fsSL https://dl.agora.io/cli/install.sh | sh
agora --helpirm https://dl.agora.io/cli/install.ps1 | iex
agora --helpQuick start
Follow this path if you want to get an official starter running as quickly as possible.
agora login
agora init my-nextjs-demo --template nextjs
cd my-nextjs-demo
pnpm install
pnpm devagora login
agora init my-python-demo --template python
cd my-python-demo
bun install
bun run devagora login
agora init my-go-demo --template go
cd my-go-demo
make setup
make devWhat happens in this flow
agora loginauthenticates your machine.agora initclones an official starter, binds it to your Agora project, and writes the environment you need locally.- The runtime-specific install and dev commands start the application.
If the starter runs, move on to application-specific work. If not, troubleshoot in the same order you experienced the setup below.
If something fails
The agora command is not available
If agora --help does not work after installation, rerun the installer first. On macOS and Linux, make sure you used the install command with --add-to-path.
If PowerShell blocks the Windows install script, download install.ps1 and run:
powershell -ExecutionPolicy Bypass -File .\install.ps1Login or starter setup fails
Run the setup path again in order:
agora login
agora init my-demo --template nextjsThis covers the two most common first-run failures: the machine is not authenticated, or the starter was not initialized correctly.
The starter runs incorrectly
Use the CLI to check readiness, credentials, and feature enablement:
agora project doctorProject settings or credentials look wrong
Inspect the current environment values that the CLI exported for your active project:
agora project env --shellThis is the right check when the local app starts but the agent does not join, transcripts do not appear, or the active project looks wrong.
Build from scratch instead
If you are not using an official starter, create or switch projects first, then export credentials into the local environment.
agora login
agora project create conv-ai-tutorial --feature rtc --feature convoai
agora project use conv-ai-tutorial
agora project env --shellagora login
agora project create conv-ai-tutorial --feature rtc --feature convoai
agora project use conv-ai-tutorial
agora project env --shellagora login
agora project create conv-ai-tutorial --feature rtc --feature convoai
agora project use conv-ai-tutorial
agora project env --shellYou can also switch the active project later or create a new one explicitly:
agora project create my-project --feature rtc --feature convoai
agora project use my-projectThe CLI gives your assistant reproducible local steps it can execute and verify, especially during starter bootstrapping, project binding, environment generation, and first-line diagnosis.
