---
title: "ezgh compute instances update"
description: "Rename an instance or replace its tags."
---

> 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 compute instances 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 compute instances update <instance> [--name n] [--tag k=v…] [--bot b | --no-bot] [flags]
```

Change an instance's name or tags: `--tag` replaces them all (`--tag` "" clears them). The change is conditional on the instance being as it was read.

`--bot` attaches a Bot (bot\_…) whose short-lived credentials code on the instance can fetch from the metadata service; `--no-bot` detaches it. Attaching needs permission to pass the Bot.

Part of [`ezgh compute instances`](/cli/reference/compute-instances).

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--bot` | string |  | attach this Bot (bot\_…) |
| `--name` | string |  | the new name |
| `--no-bot` | boolean |  | detach the instance's Bot |
| `--tag` | string, repeatable |  | a tag, key=value (repeat; replaces the tags; `--tag` "" clears them) |

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

Source: https://docs.ezghcloud.com/cli/reference/compute-instances-update/index.mdx
