---
title: doctl compute vpc-nat-gateway create
description: Usage doctl compute vpc-nat-gateway create [flags] Aliases c Flags Option Description --format Columns for output in a comma-separated list. Possible …
product: Reference
url: https://docs.digitalocean.com/reference/doctl/reference/compute/vpc-nat-gateway/create/
last_updated: "2026-11-05"
---

> **For AI agents:** The documentation index is at [https://docs.digitalocean.com/llms.txt](https://docs.digitalocean.com/llms.txt). Markdown versions of pages use the same URL with `index.html.md` in place of the HTML page (for example, append `index.html.md` to the directory path instead of opening the HTML document).

# doctl compute vpc-nat-gateway create

Generated on 5 Nov 2026 from `doctl` version [`v2.3.0`](https://github.com/digitalocean/doctl/releases/tag/v2.3.0)

## Usage

```shell
doctl compute vpc-nat-gateway create [flags]
```

## Aliases

```shell
c
```

## Flags

| Option | Description |
|---|---|
| `--format` | Columns for output in a comma-separated list. Possible values: `ID`, `Name`, `Type`, `State`, `Region`, `VPC`, `Subnet`, `GatewayIP`, `Default`, `Egresses`, `Timeouts`. |
| `--help`, `-h` | Help for this command |
| `--icmp-timeout` | ICMP connection timeout (seconds), Default: `30` |
| `--ip` | An optional BYOIP address to assign as the public egress IP. Must be an unassigned BYOIP on your account in the same region. When omitted, a system-allocated reserved IP is provisioned. |
| `--name` | Name of the VPC NAT Gateway (required) |
| `--no-header` | Return raw data with no headers, Default: `false` |
| `--project-id` | Indicates which project to associate the VPC NAT Gateway with. If not specified, the VPC NAT Gateway will be placed in your default project. |
| `--region` | Gateway region (required) |
| `--size` | Gateway size, Default: `1` |
| `--tcp-timeout` | TCP connection timeout (seconds), Default: `300` |
| `--type` | Gateway type, Default: `PUBLIC` |
| `--udp-timeout` | UDP connection timeout (seconds), Default: `30` |
| `--vpcs` | Ingress VPCs, takes a kv-pair of Ingress VPC ID and optional ‘default’ to indicate the gateway to be set as default for the VPC, and an optional subnet UUID to restrict the gateway to a specific subnet of the VPC (e.g. –vpcs 6df2c5f4-d2da-4bce-b8dc-e9d2b7bd5db6:default,abcd8994-7f1b-4512-bc2e-13d47ca68632:3d6f6fdc-8b7e-49fd-a3c2-0d73ec4e40b4) (NOTE: specifying a subnet UUID is in private preview, contact DigitalOcean support to review its public availability.) |

## Related Commands

| Command | Description |
|---|---|
| [doctl compute vpc-nat-gateway](https://docs.digitalocean.com/reference/doctl/reference/compute/vpc-nat-gateway) | Display commands to manage VPC NAT Gateways |

## Global Flags

Option Description

`--access-token`, `-t` API V2 access token

`--api-url`, `-u` Override default API endpoint

`--config`, `-c` Specify a custom config file, Default:

`--context` Specify a custom authentication context name

`--http-retry-max` Set maximum number of retries for requests that fail with a 429 or 500-level error , Default: `5`

`--http-retry-wait-max` Set the minimum number of seconds to wait before retrying a failed request , Default: `30`

`--http-retry-wait-min` Set the maximum number of seconds to wait before retrying a failed request , Default: `1`

`--interactive` Enable interactive behavior. Defaults to true if the terminal supports it (default false) , Default: `false`

`--output`, `-o` Desired output format \[text|json], Default: `text`

`--show` Reveal masked values, such as secrets, instead of hiding them. Values are unmasked automatically in CI , Default: `false`

`--trace` Show a log of network activity while performing a command, Default: `false`

`--verbose`, `-v` Enable verbose output, Default: `false`