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

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

```bash
elastic stack kb agent-builder put-agent-builder-agents-id --id <id> [options]
```

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

## Options

<definitions>
  <definition term="--id string required">
    The unique identifier of the agent to update.
  </definition>
  <definition term="--access-control string">
  </definition>
  <definition term="--avatar-color string">
    Updated hex color code for the agent avatar.
  </definition>
  <definition term="--avatar-symbol string">
    Updated symbol/initials for the agent avatar.
  </definition>
  <definition term="--configuration string">
    Updated configuration settings for the agent.
  </definition>
  <definition term="--description string">
    Updated description of what the agent does.
  </definition>
  <definition term="--labels string[]">
    Updated labels for categorizing and organizing agents.
    **Repeatable:** pass `--labels` multiple times to supply more than one value
  </definition>
  <definition term="--name string">
    Updated display name for the agent.
  </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>