# asc alternative-distribution

> asc alternative-distribution commands: domains, keys and packages for distributing an app outside the App Store in the EU.

Source: https://air.build/docs/cli/asc-alternative-distribution/

`asc alternative-distribution` manages what an app needs for distribution outside the App Store in the EU: the web domains allowed to distribute it, the public keys, and the alternative distribution packages Apple makes for each App Store version, with their versions, variants and deltas. Apple first requires the Alternative Distribution Addendum for EU Apps; the Account Holder reviews and signs it in App Store Connect under Agreements. Neither Apple's API nor `asc` can sign it. 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.

```sh
asc alternative-distribution domains list
asc alternative-distribution packages create --app-store-version-id "APP_STORE_VERSION_ID"
```

## domains

Manage alternative distribution domains.

### domains list

List alternative distribution domains.

No flags besides the shared ones.

```sh
asc alternative-distribution domains list
```

### domains view

View an alternative distribution domain.

| Flag | What it does | Default |
| --- | --- | --- |
| `--domain-id` | Alternative distribution domain ID. Required. | — |

```sh
asc alternative-distribution domains view --domain-id "DOMAIN_ID"
```

### domains create

Create an alternative distribution domain.

| Flag | What it does | Default |
| --- | --- | --- |
| `--domain` | Domain name. Required. | — |
| `--reference-name` | Reference name for the domain. Required. | — |

```sh
asc alternative-distribution domains create --domain "example.com" --reference-name "Example"
```

### domains delete

Delete an alternative distribution domain.

| Flag | What it does | Default |
| --- | --- | --- |
| `--confirm` | Confirm deletion. Required. | off |
| `--domain-id` | Alternative distribution domain ID. Required. | — |

```sh
asc alternative-distribution domains delete --domain-id "DOMAIN_ID" --confirm
```

## keys

Manage alternative distribution keys.

### keys list

List alternative distribution keys.

No flags besides the shared ones.

```sh
asc alternative-distribution keys list
```

### keys view

View an alternative distribution key.

| Flag | What it does | Default |
| --- | --- | --- |
| `--key-id` | Alternative distribution key ID. Required. | — |

```sh
asc alternative-distribution keys view --key-id "KEY_ID"
```

### keys create

Create an alternative distribution key.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App Store Connect app ID (or ASC_APP_ID). | — |
| `--public-key` | Public key content. | — |
| `--public-key-path` | Path to public key file. | — |

```sh
asc alternative-distribution keys create --app "APP_ID" --public-key "KEY_DATA"
```

### keys delete

Delete an alternative distribution key.

| Flag | What it does | Default |
| --- | --- | --- |
| `--confirm` | Confirm deletion. Required. | off |
| `--key-id` | Alternative distribution key ID. Required. | — |

```sh
asc alternative-distribution keys delete --key-id "KEY_ID" --confirm
```

### keys app

Get an app's alternative distribution key.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App Store Connect app ID (or ASC_APP_ID). Required. | — |

```sh
asc alternative-distribution keys app --app "APP_ID"
```

## packages

Manage alternative distribution packages.

### packages view

View an alternative distribution package.

| Flag | What it does | Default |
| --- | --- | --- |
| `--package-id` | Alternative distribution package ID. Required. | — |

```sh
asc alternative-distribution packages view --package-id "PACKAGE_ID"
```

### packages create

Create an alternative distribution package.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app-store-version-id` | App Store version ID for the package. Required. | — |

```sh
asc alternative-distribution packages create --app-store-version-id "APP_STORE_VERSION_ID"
```

### packages app-store-version

Get the package for an app store version.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app-store-version-id` | App Store version ID. Required. | — |

```sh
asc alternative-distribution packages app-store-version --app-store-version-id "APP_STORE_VERSION_ID"
```

### packages versions list

List alternative distribution package versions.

| Flag | What it does | Default |
| --- | --- | --- |
| `--package-id` | Alternative distribution package ID. Required. | — |

```sh
asc alternative-distribution packages versions list --package-id "PACKAGE_ID"
```

### packages versions view

View an alternative distribution package version.

| Flag | What it does | Default |
| --- | --- | --- |
| `--version-id` | Alternative distribution package version ID. Required. | — |

```sh
asc alternative-distribution packages versions view --version-id "VERSION_ID"
```

### packages versions deltas

List alternative distribution package deltas.

| Flag | What it does | Default |
| --- | --- | --- |
| `--version-id` | Alternative distribution package version ID. Required. | — |

```sh
asc alternative-distribution packages versions deltas --version-id "VERSION_ID"
```

### packages versions variants

List alternative distribution package variants.

| Flag | What it does | Default |
| --- | --- | --- |
| `--version-id` | Alternative distribution package version ID. Required. | — |

```sh
asc alternative-distribution packages versions variants --version-id "VERSION_ID"
```

### packages variants

Get an alternative distribution package variant.

| Flag | What it does | Default |
| --- | --- | --- |
| `--variant-id` | Alternative distribution package variant ID. Required. | — |

```sh
asc alternative-distribution packages variants --variant-id "VARIANT_ID"
```

### packages deltas

Get an alternative distribution package delta.

| Flag | What it does | Default |
| --- | --- | --- |
| `--delta-id` | Alternative distribution package delta ID. Required. | — |

```sh
asc alternative-distribution packages deltas --delta-id "DELTA_ID"
```
