---
title: "ezgh files mount-targets update"
description: "Change a mount target."
---

> 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 files mount-targets 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 files mount-targets update <mount-target> [flags]
```

Change a mount target. Only what's given changes. `--allowed-source-cidr` replaces the sources mounts may come from; `--tag` replaces all its tags and `--clear-tags` removes them.

Part of [`ezgh files mount-targets`](/cli/reference/files-mount-targets).

## Examples

```sh
ezgh files mount-targets update fmt_7t3n1v8c2wzd --allowed-source-cidr 10.0.1.0/24
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--allowed-source-cidr` | string, repeatable |  | an IPv4 CIDR mounts may come from; repeat for more, at most 50; replaces them all |
| `--clear-tags` | boolean |  | remove its tags |
| `--name` | string |  | a new name |
| `--tag` | string, repeatable |  | a tag, key=value; repeat for more |

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

Source: https://docs.ezghcloud.com/cli/reference/files-mount-targets-update/index.mdx
