--- title: Agents sidebar_position: 4 --- import config from "../../../siteConfig" This page covers all commands related to agent management in the CLI. Agents are at the core of the platform and represent deployable AI logic. This section includes commands for listing, creating, deploying, and removing agents. ## List Agents List all agents in the project:
  
    {`${config.cliCommand} agent list`}
  
To list agents in another project:
  
    {`${config.cliCommand} agent list --project `}
  
**Options:** - `--project ` – Project ID or name (defaults to the current project) ## Create an Agent Create a single agent or all agents defined in `nestbox-agents.yaml`:
  
    {`${config.cliCommand} agent create --agent  --instance `}
  
Create with additional options:
  
{`${config.cliCommand} agent create \\
  --agent  \\
  --instance  \\
  --type REGULAR \\
  --description "My agent goal" \\
  --inputSchema '{"type":"object","properties":{"prompt":{"type":"string"}}}'`}
  
Create all agents defined in `nestbox-agents.yaml`:
  
    {`${config.cliCommand} agent create --all --instance `}
  
**Options:** - `--agent ` – Agent name to create - `--all` – Create all agents defined in `nestbox-agents.yaml` - `--project ` – Project ID (defaults to current project) - `--type ` – Agent type (e.g. `CHAT`, `AGENT`, `REGULAR`) - `--description ` – Description of the agent - `--instance ` – Machine name - `--inputSchema ` – Agent input schema ## Deploy an Agent Deploy an AI agent to the platform. Deploy uses the same YAML (and flag) semantics as create. It zips your project root, uploads the code, and updates metadata. Deploy a single agent:
  
    {`${config.cliCommand} agent deploy --agent  --instance `}
  
Deploy all agents from `nestbox-agents.yaml`:
  
    {`${config.cliCommand} agent deploy --all --instance `}
  
Deploy with verbose logging:
  
    {`${config.cliCommand} agent deploy --all --instance  --log`}
  
Deploy with a custom prefix:
  
    {`${config.cliCommand} agent deploy --agent  --instance  --prefix "v2-"`}
  
**Options:** - `--agent ` – Agent name to deploy - `--all` – Deploy all agents defined in `nestbox-agents.yaml` - `--prefix ` – A prefix added to beginning of the agent name - `--description ` – Goal/description of the agent - `--inputSchema ` – Agent input schema - `--project ` – Project ID (defaults to current project) - `--type ` – Agent type (e.g. `CHAT`, `AGENT`, `REGULAR`) - `--entryFunction ` – Entry function name - `--instance ` – Machine name - `--log` – Show detailed logs during deployment - `--silent` – Disable automatic agent creation **Behavior:** - If the agent does not exist, you'll be prompted to create it (skip prompt with `--silent`). - `--entryFunction` overrides the YAML `entry` for this deploy. - `--prefix` applies during deploy as well (names become `prefix-`). ## Remove an Agent Remove an agent from the platform:
  
    {`${config.cliCommand} agent remove `}
  
**Parameters:** - `` – Name of the agent to remove **Options:** - `--project ` – Project ID or name (defaults to the current project)