# basemodo egress

Give an App an outgoing address of its own (dedicated), give it back (shared), or say where its traffic leaves from.

```sh
basemodo egress [OPTIONS] [dedicated|shared]
```

By default an App's outbound traffic leaves from Basemodo's shared addresses. A Dedicated Egress IP is an address of the App's own, for a partner's firewall to allowlist: a paid extra of a Workspace App, charged monthly on the Workspace's bill from now on, after its first 14 days. Shared gives it back and the charge stops. Only the App's Owner changes it.

## Arguments

- `dedicated|shared`: dedicated gives the App an outgoing address of its own (a paid extra of a Workspace App); shared gives it back. Without it, only show where its traffic leaves from.
- `--app <APP>`: The App. Default: the one named after the current folder.

Like every command, it also takes the [global options](https://basemodo.com/docs/cli#global-options) `--json` and `--api-url`.

## Examples

Give the App of this folder an address of its own, and print it:

```sh
basemodo egress dedicated
```

Give it back to the shared pool:

```sh
basemodo egress shared --app crm
```

Say where an App's traffic leaves from:

```sh
basemodo egress --app crm --json
```

## Output

With `--json`, it prints {"app", "pool" (shared, quarantine or dedicated), "address": {"v4", "v6"} (only while dedicated)}. A personal App is an error with code dedicated_ip_not_on_plan; a declined card, card_declined.

## From an agent

Basemodo's [MCP](https://basemodo.com/docs/mcp) serves it as the tool [`egress`](https://basemodo.com/docs/mcp/tools/egress). It changes things, so an agent's client may ask you before it runs. Its arguments are the command's, named as JSON keys: `pool` (text), `app` (text). It answers what the command prints with `--json`.