How elevenlabs/cli works
ElevenLabs CLI combines broad platform API access with local-file-based Conversational AI agent management. The principal workflow is to initialize or edit an agent project, then push or pull its configurations to synchronize with ElevenLabs; other major branches cover direct API commands, text-to-speech playback, and waiting for asynchronous Flows results. The tree and sampled references support the CLI entry point, onboarding helpers, and SDK transport layers; unsampled workflow details are represented at their enclosing directories, with README-documented relationships identified as such.
Main entry points: main.rs Command entry · agents.rs Agent sync · say.rs Speak text · client.rs SDK client
Components 21
CLI entry
- Command entry
cli/elevenlabs/main.rs - Project onboarding
cli/elevenlabs/workflow/onboard - Setup session
cli/elevenlabs/workflow/onboard/session.rs
Agent projects
- Agent project files
cli/elevenlabs/workflow/project.rs - Agent sync
cli/elevenlabs/workflow/agents.rs - Agent templates
cli/elevenlabs/workflow/templates.rs - Workflow diagrams
cli/elevenlabs/workflow/diagram.rs - Agent graph
cli/elevenlabs/workflow/graph.rs
CLI workflows
- API commands
cli/elevenlabs/sdk.rs - Speak text
cli/elevenlabs/workflow/say.rs - Wait for Flows
cli/elevenlabs/workflow/flows_wait.rs - Data residency
cli/elevenlabs/workflow/residency.rs - Telemetry
cli/elevenlabs/workflow/telemetry.rs
API client
- SDK client
elevenlabs-sdk/src/client.rs - API resources
elevenlabs-sdk/src/api/resources - Speech engine API
elevenlabs-sdk/src/api/resources/speech_engine/speech_engine.rs - Webhooks API
elevenlabs-sdk/src/api/resources/webhooks/webhooks.rs
SDK transport
- HTTP transport
elevenlabs-sdk/src/core/http_client.rs
Other components
- CLI user
- ElevenLabs platform
- Audio player
Connections 24
- CLI user → Command entry: runs commands
README.md - Command entry → API commands: dispatches API
cli/elevenlabs/main.rs - Command entry → Project onboarding: dispatches setup
README.md - Project onboarding → Setup session: runs session
cli/elevenlabs/workflow/onboard/session.rs - CLI user → Agent project files: edits configs
README.md - Command entry → Agent sync: dispatches agents
README.md - Agent sync → Agent project files: syncs configs
README.md - Agent sync → ElevenLabs platform: pushes and pulls
README.md - CLI user → Agent templates: manages templates
README.md - CLI user → Workflow diagrams: requests diagram
README.md - CLI user → Agent graph: inspects links
README.md - Command entry → Speak text: dispatches speech
README.md - Speak text → ElevenLabs platform: requests speech
README.md - Speak text → Audio player: plays audio
README.md - Command entry → Wait for Flows: dispatches wait
README.md - Wait for Flows → ElevenLabs platform: polls results
README.md - Command entry → Data residency: configures residency
README.md - Command entry → Telemetry: configures telemetry
README.md - API commands → SDK client: uses SDK
- SDK client → API resources: exposes resources
elevenlabs-sdk/src/client.rs - API resources → Speech engine API: includes endpoint
elevenlabs-sdk/src/api/resources/speech_engine/speech_engine.rs - API resources → Webhooks API: includes endpoint
elevenlabs-sdk/src/api/resources/webhooks/webhooks.rs - SDK client → HTTP transport: uses transport
- HTTP transport → ElevenLabs platform: sends requests