---
title: "ezgh files mount-targets create"
description: "Create 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 create

{/* 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 create --file-system f --subnet s [flags] [--wait]
```

Give a file system an address in a subnet of its VPC (`--subnet`, its sbn\_ ID). Mounts may come from the VPC's ranges, or only from `--allowed-source-cidr` when given. `--wait` waits until it's available and prints it, with its DNS name.

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

## Examples

```sh
ezgh files mount-targets create --file-system web --subnet sbn_2m9x0a7qpe4k --wait
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--allowed-source-cidr` | string, repeatable |  | an IPv4 CIDR mounts may come from; repeat for more, at most 50 (default the VPC's ranges) |
| `--file-system` | string |  | the file system (fsy\_…, UUID or name) |
| `--name` | string |  | its name |
| `--subnet` | string |  | the subnet it's in (sbn\_…) |
| `--tag` | string, repeatable |  | a tag, key=value; repeat for more |
| `--wait` | boolean |  | wait until it's available, and print it then |
| `--wait-timeout` | duration | `10m0s` | how long `--wait` waits |

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

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