# asc metadata

> asc metadata commands: keep an app's App Store text in local files and change App Store Connect only from them, with plans, approvals, validation and keyword tooling.

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

`asc metadata` keeps an app's listing text in local JSON files: `pull` writes what App Store Connect has, you edit the files, `plan` compares them and writes a review, `approve` marks it approved, and `apply` changes App Store Connect (`push` applies without the review step). By default it covers app info localizations (name, subtitle, privacy policy URL, privacy choices URL, privacy policy text) and version localizations (description, keywords, marketing URL, promotional text, support URL, what's new); `--include` adds `categories`, `age-rating`, `review-information`, `app-clip` and `previews`. Review information never stores the demo account password in the file: `pull` writes `@env:ASC_DEMO_ACCOUNT_PASSWORD`, and the file must use `@env:NAME` or `@file:PATH`. Screenshots are not part of `metadata` (use `asc screenshots`), and copyright is set with `asc versions create` or `update --copyright` (see [asc versions](https://air.build/docs/cli/asc-versions/)). 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 metadata pull --app "APP_ID" --version "1.2.3" --dir ./metadata
asc metadata plan --app "APP_ID" --version "1.2.3" --dir ./metadata
asc metadata approve --all
asc metadata apply --app "APP_ID" --version "1.2.3" --dir ./metadata --review-dir .asc/metadata/review --confirm
```

## init

Create canonical metadata template files.

Every supported field starts as an empty string. Fill the ones you want to apply and remove the keys you want to leave unset before `validate`, `apply` or `push`. Changes nothing in App Store Connect. Prints `dir`, `locale`, `version`, `fileCount`, the `files` written and `nextSteps`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--dir` | Metadata root directory. Required. | — |
| `--force` | Overwrite existing metadata template files in --dir. | off |
| `--locale` | Metadata locale to scaffold. | `en-US` |
| `--version` | Optional app version string; when set, writes a version localization template. | — |

```sh
asc metadata init --dir "./metadata"
```

## pull

Pull metadata from App Store Connect into canonical files.

Without `--include` it pulls localizations. `--include localizations,app-clip,previews` also brings App Clip text, header images and App Preview videos; `categories`, `age-rating` and `review-information` write `categories.json`, `age-rating.json` and `review-information.json` under `--dir`. Without `--version` it uses the newest editable version, then one removed from sale by the developer, then the live version, and names it on stderr; pass `--platform` when the app has candidate versions on more than one platform. Prints `appId`, `appInfoId`, `version`, `versionId`, `dir`, `includes`, `locales`, `fileCount` and the `files` written.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--app-info` | App Info ID (optional override for apps with multiple app-infos). | — |
| `--dir` | Output root directory. Required. | — |
| `--force` | Overwrite existing metadata files in --dir. | off |
| `--include` | Included scopes: localizations,app-clip,previews,categories,age-rating,review-information (comma-separated). | `localizations` |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--version` | App version string (for example 1.2.3); defaults to the app's active editable version, then a developer-removed version, else the live version. | — |

```sh
asc metadata pull --app "APP_ID" --dir "./metadata"
```

## plan

Plan metadata changes and write a review artifact.

Compares the files under `--dir` with App Store Connect and writes the plan into `--review-dir` for `approve` and `apply`. Changes nothing in App Store Connect. Prints the artifact: `reviewDir`, `planPath`, `approvalPath`, `planHash`, the options used and the `plan` (adds, updates and deletes).

| Flag | What it does | Default |
| --- | --- | --- |
| `--allow-deletes` | Plan destructive delete operations (disables default locale fallback for missing locales). | off |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--app-info` | App Info ID (optional override). | — |
| `--dir` | Metadata root directory. Required. | — |
| `--if-exists` | Behavior when the resource already exists: fail, skip, update. | `fail` |
| `--include` | Included scopes: localizations,app-clip,previews,categories,age-rating,review-information (comma-separated). | `localizations` |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--review-dir` | Directory for metadata review artifacts. | `.asc/metadata/review` |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata plan --app "APP_ID" --version "1.2.3" --dir "./metadata"
```

## approve

Approve a metadata review plan.

Writes `approved.json` next to the plan in `--review-dir`. Pass exactly one of `--all`, `--key` or `--scope`. Prints the approval: `planHash`, `mode`, `note`, `approvedKeys` and any `pendingKeys`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--all` | Approve every planned metadata change. | off |
| `--key` | Approve specific plan key(s), comma-separated. | — |
| `--note` | Optional reviewer note written to approved.json. | — |
| `--review-dir` | Directory containing metadata review artifacts. | `.asc/metadata/review` |
| `--scope` | Approve all changes in scope(s): app-info, version, store-assets, categories, age-rating, review-information. | — |

```sh
asc metadata approve --all
```

## apply

Apply metadata changes from canonical files.

Only fields present in the files are planned; a missing field is left alone, not deleted. An existing `app-info/` or `version/VERSION/` folder manages every locale in it; a missing one leaves that part alone. With `--allow-deletes`, locales missing locally are deleted remotely. Clearing a field with an explicit `null`, deletes, `--review-dir` and asset scopes need `--confirm`. Validating previews needs `ffprobe` (FFmpeg) on the PATH. After applying, values are read back and a mismatch fails the run. `--dir` must hold at least one metadata `.json` file or selected store asset. With `--review-dir`, it applies only the approved plan and needs `--confirm` unless `--dry-run`. Prints the plan result: `appId`, `version`, `versionId`, `dryRun`, `applied`, `includes`, `adds`, `updates`, `deletes` and the actions taken.

| Flag | What it does | Default |
| --- | --- | --- |
| `--allow-deletes` | Allow destructive delete operations when applying changes (disables default locale fallback for missing locales). | off |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--app-info` | App Info ID (optional override). | — |
| `--confirm` | Confirm mutations (required for deletes, field clears, --review-dir, or asset scopes). | off |
| `--dir` | Metadata root directory. Required. | — |
| `--dry-run` | Preview changes without mutating App Store Connect. | off |
| `--if-exists` | Behavior when the resource already exists: fail, skip, update. | `fail` |
| `--include` | Included scopes: localizations,app-clip,previews,categories,age-rating,review-information (comma-separated). | `localizations` |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--review-dir` | Apply only after verifying metadata review artifacts in this directory. | — |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata apply --app "APP_ID" --version "1.2.3" --dir "./metadata" --dry-run
```

## status

Show local metadata review approval status.

Reads `--review-dir` only. Prints `ready`, `approvalMatchesPlan`, `planHash`, `totalCount`, `approvedCount`, `pendingCount` and the approved and pending keys.

| Flag | What it does | Default |
| --- | --- | --- |
| `--review-dir` | Directory containing metadata review artifacts. | `.asc/metadata/review` |

```sh
asc metadata status
```

## keywords

Manage canonical version-localization keyword metadata.

Most of these work on the `keywords` field of local `metadata/version/VERSION/LOCALE.json` files; `push` writes straight to App Store Connect. The default locale file is not supported by these commands.

| Command | What it does |
| --- | --- |
| [keywords import](https://air.build/docs/cli/asc-metadata/#keywords-import) | Import keyword exports into the local files. |
| [keywords audit](https://air.build/docs/cli/asc-metadata/#keywords-audit) | Audit live keywords for quality issues. |
| [keywords plan](https://air.build/docs/cli/asc-metadata/#keywords-plan) | Preview keyword-only changes. |
| [keywords diff](https://air.build/docs/cli/asc-metadata/#keywords-diff) | Diff local keywords against App Store Connect. |
| [keywords localize](https://air.build/docs/cli/asc-metadata/#keywords-localize) | Copy one locale's keywords into other locales. |
| [keywords apply](https://air.build/docs/cli/asc-metadata/#keywords-apply) | Apply keyword-only changes. |
| [keywords push](https://air.build/docs/cli/asc-metadata/#keywords-push) | Push locale-keyed keywords straight to a version. |
| [keywords sync](https://air.build/docs/cli/asc-metadata/#keywords-sync) | Import, plan and (with `--confirm`) apply in one step. |

### keywords import

Import provider keyword exports into canonical metadata files.

Formats: `csv` (a header row with locale and keywords, keyword or term columns), `json` (a locale-keyed map, an array of localization objects or one object), `text` (a comma- or newline-separated list; needs `--locale`) and `astro-csv` (an Astro keyword export; needs `--locale` unless the file has locales). With `--input -` (stdin), `--format` must be set. Writes only local files and prints, per locale file, what was written or would be.

| Flag | What it does | Default |
| --- | --- | --- |
| `--dir` | Metadata root directory. Required. | — |
| `--dry-run` | Preview local file changes without writing files. | off |
| `--format` | Input format: auto, csv, json, text, or astro-csv. | `auto` |
| `--input` | Import file path or - for stdin. Required. | — |
| `--locale` | Default locale for inputs without a locale column/field. | — |
| `--side-data-report-file` | Optional path to write side-data report JSON when research fields are present. | — |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata keywords import --dir "./metadata" --version "1.2.3" --locale "en-US" --input "./keywords.csv"
```

### keywords audit

Audit live ASC keywords for ASO-quality issues.

Reads the live keywords and app-info localizations and reports duplicate phrases within a locale, phrases repeated across locales, character budget use and underfilled fields, overlap with the app name or subtitle, blocked terms, and malformed separators or empty segments. Pass exactly one of `--version` or `--version-id`. With `--strict`, warnings make it exit non-zero.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--app-info` | App Info ID (optional override for apps with multiple app-infos). | — |
| `--blocked-term` | Blocked term to flag during keyword audit (repeatable). | — |
| `--blocked-terms-file` | Optional newline/comma-separated blocked terms file (supports # comments). | — |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--strict` | Treat warnings as errors (exit non-zero). | off |
| `--version` | App version string (for example 1.2.3). | — |
| `--version-id` | App Store version ID. | — |

```sh
asc metadata keywords audit --app "APP_ID" --version "1.2.3"
```

### keywords plan

Preview keyword-only changes against App Store Connect.

Compares only the `keywords` field of the local files with App Store Connect. Changes nothing. Prints `appId`, `version`, `versionId`, `dir`, and the planned `adds` and `updates`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--dir` | Metadata root directory. Required. | — |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata keywords plan --app "APP_ID" --version "1.2.3" --dir "./metadata"
```

### keywords diff

Diff local canonical keywords against App Store Connect.

The same comparison as `keywords plan`, laid out for reading before `apply`. Changes nothing.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--dir` | Metadata root directory. Required. | — |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata keywords diff --app "APP_ID" --version "1.2.3" --dir "./metadata"
```

### keywords localize

Copy one locale's canonical keywords into other locales.

Copies the keywords of one locale into other locale files as a starting point. It does not translate. The source locale must differ from every target locale. Writes only local files.

| Flag | What it does | Default |
| --- | --- | --- |
| `--dir` | Metadata root directory. Required. | — |
| `--dry-run` | Preview local file changes without writing files. | off |
| `--from-locale` | Source locale to copy keywords from. Required. | — |
| `--overwrite` | Overwrite existing target keyword fields. | off |
| `--to-locales` | Target locales (comma-separated). Required. | — |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata keywords localize --dir "./metadata" --version "1.2.3" --from-locale "en-US" --to-locales "fr-FR,de-DE"
```

### keywords apply

Apply keyword-only metadata changes to App Store Connect.

Changes only the `keywords` field of version localizations; other fields stay as they are. Prints the plan with `applied`, `total`, `succeeded` and `failed`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--confirm` | Confirm remote keyword mutations. Required. | off |
| `--dir` | Metadata root directory. Required. | — |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata keywords apply --app "APP_ID" --version "1.2.3" --dir "./metadata" --confirm
```

### keywords push

Push locale-keyed keywords directly to an App Store version.

Skips local files and changes App Store Connect right away. The input is a JSON object keyed by locale, with at least one entry; each value is a keyword string or an object with a `keywords` field. `--continue-on-error=false` stops at the first failing locale.

| Flag | What it does | Default |
| --- | --- | --- |
| `--continue-on-error` | Continue processing locales after failures (default true). | on |
| `--input` | Input JSON file path. Required. | — |
| `--version-id` | App Store version ID. Required. | — |

```sh
asc metadata keywords push --version-id "VERSION_ID" --input "./keywords.json"
```

### keywords sync

Import keyword input and sync the resulting keyword plan.

Imports the input into the local files, plans the keyword changes for those locales, and applies them only with `--confirm`. Without `--confirm` it writes the files (unless `--dry-run`) and prints the plan.

| Flag | What it does | Default |
| --- | --- | --- |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--confirm` | Confirm remote keyword mutations after import. | off |
| `--dir` | Metadata root directory. Required. | — |
| `--dry-run` | Preview import and remote keyword changes without writing or mutating. | off |
| `--format` | Input format: auto, csv, json, text, or astro-csv. | `auto` |
| `--input` | Import file path or - for stdin. Required. | — |
| `--locale` | Default locale for inputs without a locale column/field. | — |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--side-data-report-file` | Optional path to write side-data report JSON when research fields are present. | — |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata keywords sync --app "APP_ID" --version "1.2.3" --dir "./metadata" --input "./keywords.csv"
```

## push

Push metadata changes from canonical files.

Like `apply`, but without the review and approval step. The same rules apply: only fields in the files are changed, `--allow-deletes` deletes locales missing locally, and clears, deletes and asset scopes need `--confirm`. Prints the same plan result as `apply`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--allow-deletes` | Allow destructive delete operations when applying changes (disables default locale fallback for missing locales). | off |
| `--app` | App Store Connect app ID (or ASC_APP_ID env). Required. | — |
| `--app-info` | App Info ID (optional override). | — |
| `--confirm` | Confirm mutations (required for deletes, field clears, --review-dir, or asset scopes). | off |
| `--dir` | Metadata root directory. Required. | — |
| `--dry-run` | Preview changes without mutating App Store Connect. | off |
| `--if-exists` | Behavior when the resource already exists: fail, skip, update. | `fail` |
| `--include` | Included scopes: localizations,app-clip,previews,categories,age-rating,review-information (comma-separated). | `localizations` |
| `--platform` | Optional platform: IOS, MAC_OS, TV_OS, or VISION_OS. | — |
| `--version` | App version string (for example 1.2.3). Required. | — |

```sh
asc metadata push --app "APP_ID" --version "1.2.3" --dir "./metadata" --dry-run
```

## validate

Validate canonical metadata files (offline by default).

Checks offline: strict JSON (unknown keys rejected), required fields, character limits, URL syntax and length, and implausibly short names and descriptions. `--check-urls` adds HTTP checks of the support and privacy policy URLs; `--subscription-app` checks that the description links to Terms of Use or an EULA. Prints `dir`, `filesScanned`, `issues`, `errorCount`, `warningCount` and `valid`.

| Flag | What it does | Default |
| --- | --- | --- |
| `--check-urls` | Fetch support and privacy policy URLs to detect redirects and root pages. | off |
| `--dir` | Metadata root directory. Required. | — |
| `--subscription-app` | Enable subscription-specific Terms of Use / EULA link checks. | off |

```sh
asc metadata validate --dir "./metadata"
```
