<!-- WARNING: This documentation is auto-generated from the confluentinc/cli repository and should not be manually edited. -->

<a id="confluent-network-transit-gateway-attachment-update"></a>

# confluent network transit-gateway-attachment update

## Description

Update an existing transit gateway attachment.

```none
confluent network transit-gateway-attachment update <id> [flags]
```

## Flags

```none
    --name string          REQUIRED: Name of the transit gateway attachment.
    --context string       CLI context name.
    --environment string   Environment ID.
-o, --output string        Specify the output format as "human", "json", or "yaml". (default "human")
```

## Global Flags

```none
-h, --help            Show help for this command.
    --unsafe-trace    Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count   Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
```

## Examples

Update the name of transit gateway attachment “tgwa-123456”.

```none
confluent network transit-gateway-attachment update tgwa-123456 --name "new name"
```

## See Also

* [confluent network transit-gateway-attachment](index.md#confluent-network-transit-gateway-attachment) - Manage transit gateway attachments.
