[egulu CLI reference](../index.md) / [egulu cache-rules](index.md)

# egulu cache-rules create

POST /v1/projects/{project}/locations/{location}/cacheRules

```sh
egulu cache-rules create <NAME> [options]
```

## API operation

[CacheRules_create](../../api/media/CacheRules_create.md): `POST /v1/projects/{project}/locations/{location}/cacheRules` (media module)

## Arguments

| Name | Required | Description |
|---|---|---|
| `NAME` | yes | the cacheRuleId |

## Options

| Option | Takes | Required | Description |
|---|---|---|---|
| `--hostname` | value | no | hostname |
| `--location` | value | yes | location |
| `--origin-cache-control` | value | no | originCacheControl |
| `--path-pattern` | value | no | pathPattern |
| `--priority` | value | no | priority |
| `--project` | value | yes | project |
| `--query-allow` | value | no | queryAllow: comma-separated, or @file with one item a line |
| `--query-string` | value | no | queryString |
| `--ttl-seconds` | value | no | ttlSeconds |

The [global options](../index.md) apply too.
