Overview
This guide covers common CLI workflows for day-to-day MeshAgent development. If you need account creation, project setup, and a first-run walkthrough, start with the Getting Started Guide first. This page focuses on the CLI itself: installing it, connecting it to MeshAgent, testing agents locally, and deploying them. The MeshAgent CLI streamlines Room interactions and agent management right from your terminal. With the MeshAgent CLI you can easily:- Authenticate and activate projects
- Spin up live rooms and test your in progress agents and tools
- Deploy services to your project or room
- Inspect and manage existing projects, secrets, agents, and services
Before you begin
- Create a MeshAgent account and project: Sign up and create a project in MeshAgent Studio.
-
Install the MeshAgent CLI: You can install the CLI globally on your system or in a virtual environment.
Option 1: Install the CLI globally
Option 2: Install the CLI in a virtual environment Ensure you are in the appropriate project folder and have activated your virtual environment. (The virtual environment is active when the terminal prompt starts with
venv.) If you need help with your machine setup check out our Machine Setup Guide for Python. Then you can install all the MeshAgent packages, or exclusively the MeshAgent CLI. -
Connect the CLI to MeshAgent: Once the CLI is installed, authenticate and activate a project.
You are now authenticated and ready to use the CLI!
Common Workflows
Test Agents Locally
Before deploying, test your agent locally in a room:Start with meshagent process
meshagent process is the recommended CLI path when you want one agent identity that can grow across multiple channels. Start with one chat channel and give the agent a useful default tool setup:
testroom, and start chatting with support-agent.
If the same agent should accept work from more than chat, add more --channel flags:
Tip: Use--helpto see all available tools and options:meshagent process join --help.
Single-channel CLI agents
chatbot join and voicebot join still work today, and they are useful if you specifically want those built-in single-channel runtimes:
Package and Deploy Services
Once your agent works locally, you’ll need to package and deploy it as a project or room service. You can do this from MeshAgent Studio or using the CLI. For a standard process-based agent, the fastest path is to deploy it directly:bash
bash
Manage Projects and Rooms
Switch projects:Work with Secrets
Secrets allow you to store credentials securely for agents and services to use: When deploying a custom agent, you will need to build and push a docker image. For an example of this, check out Packaging and Deploying Services to see how to build and deploy a chat agent as a project or room service. If your docker image is not public, then you will need to configure a secret so that the image can be pulled.Logout
Rooms will spin down automatically after you leave and they are inactive. If you wish to logout you can run:Frequently used commands
Note you will need to fill in the appropriate parameters for these commands| Command | What it does |
|---|---|
meshagent setup | Authenticate to MeshAgent and activate a project |
meshagent process join --room=myroom --agent-name=agent --channel chat | Run a process-based agent locally |
meshagent process deploy --room=myroom --service-name=agent --agent-name=agent --channel chat | Deploy a standard process-based agent directly |
meshagent process spec --agent-name=agent --channel chat > meshagent.yaml | Generate a manifest you can customize |
meshagent chatbot join --room=myroom --agent-name=chatbot | Run the built-in single-channel chatbot |
meshagent voicebot join --room=myroom --agent-name=voicebot | Run the built-in single-channel voicebot |
meshagent service list | View deployed project services |
meshagent service show <service-id> | Show one deployed service |
Next Steps
- Using Multi-channel Agents: Learn the practical
meshagent processworkflow in more depth - Packaging and Deploying Services: Learn how
meshagent.yamlworks and when to generate or edit one yourself - ChatBot: Learn the built-in ChatBot runtime in more detail
- VoiceBot: Learn the built-in VoiceBot runtime in more detail
- CLI Commands Reference: Complete CLI command documentation
- Secrets Management: Working with credentials and OAuth