> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nebius.com/llms.txt
> Use this file to discover all available pages before exploring further.

# nebius vpc route create

## Name

`nebius vpc route create`

Creates a new route with the specified configuration.

## Synopsis

```
nebius vpc route create
  --description
  --destination-cidr [required]
  --labels
  --name
  --next-hop-allocation-id
  --next-hop-default-egress-gateway
  --parent-id [required]
  --resource-version
  --async
  -i, --interactive
```

## Examples

**Create a default route to an egress gateway**

```
nebius vpc route create \
  --name <route_name> \
  --parent-id <routing_table_ID> \
  --destination-cidr "0.0.0.0/0" \
  --next-hop-default-egress-gateway=true
```

**Create a route to an allocation**

```
nebius vpc route create \
  --name <route_name> \
  --parent-id <routing_table_ID> \
  --destination-cidr <destination_CIDR_block> \
  --next-hop-allocation-id <allocation_ID>
```

## Options

`--description` (string)

Optional description of the route.

`--destination-cidr` (string)* \[required]*

Destination CIDR block in IPv4 format (e.g., "0.0.0.0/0" for default route, "192.168.100.0/24" for specific subnet).\

The CIDR notation specifies the range of IP addresses that this route will match.\

Must be unique within a route table.

`--labels` (string->string)

Labels associated with the resource.

`--name` (string)

Human-readable name for the resource.

`--next-hop-allocation-id` (string)

ID of the IP allocation to use as the next hop.

Mutually exclusive with: `--next-hop-default-egress-gateway`.

`--next-hop-default-egress-gateway` (bool)

Use the default egress gateway for outbound traffic.\

Note: For VMs with public addresses (Floating IPs/FIPs), the FIP-specific route\

takes precedence over this default egress gateway route.

Mutually exclusive with: `--next-hop-allocation-id`.

`--parent-id` (string)* \[required]*

Identifier of the parent resource to which the resource belongs.

`--resource-version` (int64)

Version of the resource for safe concurrent modifications and consistent reads.\

Positive and monotonically increases on each resource spec change (but *not* on each change of the\

resource's container(s) or status).\

Service allows zero value or current.

`--async` (bool)

If set, returns operation id. Otherwise, waits for the operation to complete and returns its resource.

`-i, --interactive` (bool)

If set, suggests to insert field values in interactive mode.

## Global Options

`-h, --help` (bool)

Show this message.

`-p, --profile` (string)

Set a profile for interacting with the cloud.

`--format` (string)

Output format. Supported values: yaml|json|jsonpath|table|text.

`-f, --file` (string)

Input file. For 'update' commands automatically set --full=true.

`-c, --config` (string)

Provide path to config file.

`--debug` (bool)

Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.

`-I, --impersonate-service-account-id` (string)

Impersonate into the service account and use its token for a command.

`--color` (bool)

Enable colored output.

`--no-browser` (bool)

Do not open browser automatically on auth.

`--insecure` (bool)

Disable transport security.

`--auth-timeout` (duration: 2h30m10s)

Set the timeout for the request including authentication process, default is 15m0s.

`--per-retry-timeout` (duration: 2h30m10s)

Set the timeout for each retry attempt, default is 20s.

`--retries` (uint)

Set the number of retry attempts, 1 is disable retries, default is 3.

`--timeout` (duration: 2h30m10s)

Set the timeout for the main request, default is 1m0s.

`--no-check-update` (bool)

Suppress check for updates.

`--no-progress` (bool)

Suppress progress indicators and spinners.

**Input argument JSON Schema**

> [tab] Full
>
> ```json theme={null}
> {              
>   "metadata": {                // [required]
>                                // Metadata of the route.
>     "labels": {                // [map]
>                                // Labels associated with the resource.
>       string: string                  
>     },
>     "name": string,            // Human-readable name for the resource.
>     "parent_id": string,       // [required]
>                                // Identifier of the parent resource to which the resource belongs.
>     "resource_version": int64  // Version of the resource for safe concurrent modifications and consistent reads.
>                                // Positive and monotonically increases on each resource spec change (but *not* on each change of the
>                                // resource's container(s) or status).
>                                // Service allows zero value or current.
>   },
>   "spec": {                // [required]
>                            // Specification of the route.
>     "description": string, // Optional description of the route.
>     "destination": {  // [required] [immutable]
>                       // Destination for the route.
>                       // Each destination CIDR must be unique within a route table.
>                       // When multiple routes match a destination IP, the route with the longest
>                       // matching prefix (most specific match) is selected.
>       "cidr": string  // [required] [immutable]
>                       // Destination CIDR block in IPv4 format (e.g., "0.0.0.0/0" for default route, "192.168.100.0/24" for specific subnet).
>                       // The CIDR notation specifies the range of IP addresses that this route will match.
>                       // Must be unique within a route table.
>     },
>     "next_hop": {                     // [required] [immutable]
>                                       // Next hop configuration specifying where to send matching traffic.
>       "allocation": { // Cannot be set together with: default_egress_gateway
>                       // Forward traffic to a specific IP allocation (/32 address only).
>                       // The allocation must be from the same network as the route table.
>                       // The allocation must be assigned to either a Compute instance or a Load Balancer.
>                       // Warning: If the allocation exists but is not assigned to any resource,
>                       // traffic will be forwarded to a "black hole" and dropped.
>         "id": string  // [required]
>                       // ID of the IP allocation to use as the next hop.
>       },
>       "default_egress_gateway": bool  // Cannot be set together with: allocation
>                                       // Use the default egress gateway for outbound traffic.
>                                       // Note: For VMs with public addresses (Floating IPs/FIPs), the FIP-specific route
>                                       // takes precedence over this default egress gateway route.
>     }
>   }
> }
> ```

> [tab] CopyPaste Friendly
>
> ```json theme={null}
> nebius vpc route create '
> {              
>   "metadata": {           
>     "labels": {           
>       "": ""                  
>     },
>     "name": "",           
>     "parent_id": "",      
>     "resource_version": 0 
>   },
>   "spec": {           
>     "description": "",
>     "destination": {
>       "cidr": ""    
>     },
>     "next_hop": {                     
>       "allocation": {
>         "id": ""     
>       }
>     }
>   }
> }
> '
> ```

*Auto generated on 23-Nov-2026*
