---
title: "ezgh compute vpcs create"
description: "Create a VPC."
---

> 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 vpcs 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 compute vpcs create <name> --ipv4-cidr <cidr> [--description d] [--tag k=v…] [flags]
```

Create a VPC: a private network in the project's region. `--ipv4-cidr` is its IPv4 range, /8 to /28, inside 10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10 or 198.18.0.0/15, and not inside 100.112.0.0/12, which is reserved; it can't be changed later. Its IPv6 range, a /56 of unique local addresses, is generated. Its MTU is 8900, for every interface in it, and isn't chosen. It gets its own default firewall, which private interfaces in it have unless they name others.

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

## Examples

```sh
ezgh compute vpcs create main --ipv4-cidr 10.0.0.0/16
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--description` | string |  | what it's for |
| `--ipv4-cidr` | string |  | the VPC's IPv4 range, such as 10.0.0.0/16 (required) |
| `--tag` | string, repeatable |  | a tag, key=value (repeat) |

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

Source: https://docs.ezghcloud.com/cli/reference/compute-vpcs-create/index.mdx
