﻿---
title: stack kb agent-builder post-agent-builder-agents cli command
description: Create an agent Behaviour flags: --dry-run — validate all inputs and exit without performing any action 
url: https://www.elastic.co/elastic/docs-builder/docs/4089/reference/elastic-cli/cli/stack/kb/agent-builder/post-agent-builder-agents
applies_to:
  - Elastic Cloud Serverless: Preview
  - Elastic Stack: Preview
---

# stack kb agent-builder post-agent-builder-agents cli command
<cli-modifiers>
</cli-modifiers>

```bash
elastic stack kb agent-builder post-agent-builder-agents \
  --configuration <configuration> \
  --description <description> \
  --id <id> \
  --name <name> \
  [options]
```

Create an agent
**Behaviour flags:**
`--dry-run` — validate all inputs and exit without performing any action

## Options

<definitions>
  <definition term="--configuration string required">
    Configuration settings for the agent.
  </definition>
  <definition term="--description string required">
    Description of what the agent does.
  </definition>
  <definition term="--id string required">
    Unique identifier for the agent.
  </definition>
  <definition term="--name string required">
    Display name for the agent.
  </definition>
  <definition term="--access-control string">
  </definition>
  <definition term="--avatar-color string">
    Optional hex color code for the agent avatar.
  </definition>
  <definition term="--avatar-symbol string">
    Optional symbol/initials for the agent avatar.
  </definition>
  <definition term="--labels string[]">
    Optional labels for categorizing and organizing agents.
    **Repeatable:** pass `--labels` multiple times to supply more than one value
  </definition>
  <definition term="--input-file string">
    path to a JSON file to use as command input
  </definition>
  <definition term="--dry-run">
    validate all inputs and exit without performing any action (preview changes without applying them)
  </definition>
</definitions>


## Global Options

<definitions>
  <definition term="--json">
    output as JSON
  </definition>
</definitions>