Agent Commands
Commands for managing agents
The agent
commands allow you to create, list, delete, and manage agents in your Agentuity project.
agent create
Creates a new agent in your project.
Aliases: new
Usage
Arguments:
name
- The name of the agentdescription
- A description of what the agent doesauth_type
- Authentication method for the agent (API Key or None)
Flags:
-d, --dir string
- The project directory
This command will prompt you for:
- The name of the agent
- A description of what the agent does
- Authentication type (API Key or None)
After providing this information, the command will:
- Create the agent in the Agentuity Cloud
- Set up the necessary local files for the agent
- Update your project configuration to include the new agent
Example
agent list
Lists all agents in your project.
Aliases: ls
Usage
Flags:
-d, --dir string
- The project directory
This command will display a list of all agents in your project, including:
- Agent name
- Agent ID
- Agent description
- Status (whether the agent exists locally, remotely, or both)
Example
agent delete
Deletes one or more agents from your project.
Aliases: rm, del
Usage
Flags:
-d, --dir string
- The project directory
This command will:
- Display a list of all agents in your project
- Allow you to select one or more agents to delete
- Ask for confirmation before deleting the selected agents
- Delete the selected agents from both the Agentuity Cloud and your local project
Example
agent apikey
Gets the API key for an agent.
Aliases: key
Usage
Arguments:
agent_name
- The name or ID of the agent (optional)
Flags:
-d, --dir string
- The project directory
This command will:
- If an agent name is provided, retrieve the API key for that agent
- If no agent name is provided and there's only one agent in the project, retrieve the API key for that agent
- If no agent name is provided and there are multiple agents, display a list of agents to select from
Example
Get an API key for a specific agent:
Get an API key for an agent interactively:
Global Flags
These flags apply to all agent commands:
--config string
- Config file (default is$HOME/.config/agentuity/config.yaml
)--log-level string
- The log level to use (default "info")
Need Help?
Join our Community for assistance or just to hang with other humans building agents.
Send us an email at hi@agentuity.com if you'd like to get in touch.
Please Follow us on
If you haven't already, please Signup for your free account now and start building your first agent!