Agent Commands
Commands for managing agents in your Agentuity project
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
agentuity agent new
(shortcut for agentuity agent create
)
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
agentuity agent ls
(shortcut for agentuity agent list
)
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
agentuity agent rm
or agentuity agent del
(shortcuts for agentuity agent delete
)
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
agentuity agent key
(shortcut for agentuity agent apikey
)
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
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")