# asc agreements

> asc agreements commands: the territories an app's End User License Agreement applies to.

Source: https://air.build/docs/cli/asc-agreements/

`asc agreements` reads agreement data in App Store Connect; today that is the territories of an app's custom End User License Agreement (EULA). The EULA itself is managed with `asc eula` (see [asc: apps and App Store listing](https://air.build/docs/cli/asc-apps/#eula)). Apple Developer Program agreements are a separate thing: `asc web agreements` checks, downloads and accepts them (see [asc: web session commands](https://air.build/docs/cli/asc-web/#agreements)). Picking an Apple team, output, pagination, `--confirm` and exit codes work as described on the [asc](https://air.build/docs/cli/asc/) page; the flag tables below leave out `--output`, `--pretty`, `--limit`, `--next`, `--paginate` and the `--…-fields` flags, which are explained there.

Find the EULA ID with `asc eula view --app 1234567890`; an app without a custom EULA uses Apple's standard one and has no territories to list.

| Subcommand | What it does |
| --- | --- |
| [territories](https://air.build/docs/cli/asc-agreements/#territories) | Lists the territories of an app's custom EULA. |

## territories

The territories a custom EULA applies to.

| Subcommand | What it does |
| --- | --- |
| [territories list](https://air.build/docs/cli/asc-agreements/#territories-list) | Lists the territories of an EULA. |

### territories list

Lists the territories a custom EULA applies to, as Apple's JSON (as described on [asc](https://air.build/docs/cli/asc/)). `--limit` is 1–200 per page and `--paginate` reads every page.

| Flag | What it does | Default |
| --- | --- | --- |
| `--id` | The EULA ID. Required unless `--next` is given. | — |

Leaving out `--id` without `--next` exits `2` with `Error: --id is required`.

```sh
asc agreements territories list --id "EULA_ID" --paginate
```
