---
title: "ezgh compute route-tables create"
description: "Create a route table."
---

> 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 route-tables 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 route-tables create <name> --vpc <vpc> [--description d] [--tag k=v…] [flags]
```

Create a custom route table in a VPC, with only its local routes. Associate subnets with it (ezgh compute subnets update &lt;subnet&gt; `--route-table` &lt;table&gt;) and add routes with routes set.

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

## Examples

```sh
ezgh compute route-tables create private --vpc main
ezgh compute route-tables routes set private 0.0.0.0/0 --target eni_…
ezgh compute subnets update app --route-table private
```

## Flags

| Flag | Type | Default | Description |
| --- | --- | --- | --- |
| `--description` | string |  | what it's for |
| `--tag` | string, repeatable |  | a tag, key=value (repeat) |
| `--vpc` | string |  | the VPC (ID, UUID or name; required) |

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

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