# `tartan egress`

_For tartan 0.9.36._

## `tartan egress activate`

set an egress row active

```
tartan egress activate --org <string> --name <string>
```

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--name` | string | yes | the egress row's name |

## `tartan egress arm`

set an egress row arming

```
tartan egress arm --org <string> --name <string>
```

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--name` | string | yes | the egress row's name |

## `tartan egress catalog`

the shipped and org egress catalog

```
tartan egress catalog --org <string>
```

**Role:** viewer · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |

## `tartan egress catalog-add`

add a vendor destination to the org's egress catalog

```
tartan egress catalog-add --org <string> --name <string> --vendor <string> --cidrs <list>
```

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--name` | string | yes | the catalog entry's name |
| `--vendor` | string | yes | who the prefixes belong to |
| `--cidrs` | list | yes | public IPv4 prefixes, /24 or longer |

## `tartan egress deactivate`

set an egress row retired

```
tartan egress deactivate --org <string> --name <string>
```

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--name` | string | yes | the egress row's name |

## `tartan egress declare`

declare an egress row: vendor prefixes (or a catalog entry) out one site's gateways, for a scope of devices

```
tartan egress declare --org <string> --name <string> --anchor_sites <list>
```

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--name` | string | yes | the egress row's name |
| `--anchor_sites` | list | yes | the site(s) whose gateways it leaves through, by id or name (stored as ids) |
| `--cidrs` | list | no | public IPv4 prefixes, /24 or longer |
| `--catalog_ref` | string | no | a catalog entry instead of --cidrs |
| `--any_of` | bool | no | more than one anchor site: the vendor must allow every site's public IP |
| `--groups` | list | no | scope: devices in these groups |
| `--devices` | list | no | scope: these device ids |
| `--org_wide` | bool | no | scope: every device |

## `tartan egress list`

the org's egress rows

```
tartan egress list --org <string>
```

**Role:** viewer · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |

## `tartan egress scope set`

replace an egress row's scope (groups, devices, or every device)

```
tartan egress scope set --org <string> --name <string>
```

**Role:** admin · **Writes:** yes · **Steps up:** always · **Dry run:** `--dry-run`

**Person acts:** passkey prompt: the person approves this exact write with their passkey, after the CLI shows it in words

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--name` | string | yes | the egress row's name |
| `--groups` | list | no | devices in these groups |
| `--devices` | list | no | these device ids |
| `--org_wide` | bool | no | every device |

## `tartan egress show`

one egress row: prefixes, exit site and gateways, scope and how many devices it covers (a gateway's counters read 0 until its next check-in, up to 15 min)

```
tartan egress show --org <string> --name <string>
```

**Role:** viewer · **Writes:** no · **Steps up:** never

| Flag | Type | Required | What |
|---|---|---|---|
| `--org` | string | yes | org handle or id |
| `--name` | string | yes | the egress row's name |
