---
title: "ezgh iam bots update"
description: "Rename a bot, change its groups, or replace its directly attached policies."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh iam bots update

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh iam bots update <bot> [--name n] [--groups g,…] [--add-groups g,…] [--remove-groups g,…] [--policies p,…] [flags]
```

Rename a bot, change its groups, or replace its directly attached policies. Whole replaces (`--name`, `--groups`, `--policies`) are sent with the ETag ezgh read: if someone changed the bot in between, nothing is changed and ezgh says so; run it again.

Part of [`ezgh iam bots`](/cli/reference/iam-bots).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--add-groups` | strings, comma-separated or repeated |  | add to these groups, leaving the others |
| `--groups` | strings, comma-separated or repeated |  | the groups (IDs, slugs or names), replacing all current ones; "" for none |
| `--name` | string |  | the new name |
| `--policies` | strings, comma-separated or repeated |  | the policies, replacing all current ones; "" for none |
| `--remove-groups` | strings, comma-separated or repeated |  | remove from these groups, leaving the others |

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/iam-bots-update/index.mdx
