# Keep your store page text in files

> Have an Agent write your App Store listing text into files in the project, change or review them there, and have the Agent check them and send the changes back to App Store Connect.

Source: https://air.build/docs/app-store/keep-your-store-page-in-files/

An Agent can write the text of your App Store page into files in the project: one file per language for the app, and one per language for a version. You change or review the text there, all languages side by side, and the Agent checks the files and sends what changed to App Store Connect.

> [!NOTE]
> AirBuild has no button for this. You ask an Agent in the Project's chat, and it uses `asc metadata` (listed under `metadata` in [asc: apps and App Store listing](https://air.build/docs/cli/asc-apps/#metadata)). To change the listing on screen, field by field, see [Prepare your App Store page](https://air.build/docs/app-store/prepare-your-store-page/).

## What the files hold

By default, the text of each language:

| File | Fields (the names used in the file) |
| --- | --- |
| `app-info/` and the language, for example `app-info/en-US.json` | The app's name (`name`), subtitle (`subtitle`), privacy policy URL (`privacyPolicyUrl`), privacy choices URL (`privacyChoicesUrl`) and privacy policy text (`privacyPolicyText`). |
| `version/`, the version and the language, for example `version/1.4/en-US.json` | The version's description (`description`), keywords (`keywords`), marketing URL (`marketingUrl`), promotional text (`promotionalText`), support URL (`supportUrl`) and What's New text (`whatsNew`). |

- metadata/
  - app-info/
    - en-US.json
    - fr-FR.json
  - version/
    - 1.4/
      - en-US.json
      - fr-FR.json

On request, the Agent adds more, each in one file at the top of the folder: the categories (`categories.json`), the age rating answers (`age-rating.json`) and the App Review contact and demo account (`review-information.json`). It can also add the App Clip's text and header image and the App Preview videos.

Not in the files: screenshots (see Add screenshots in [Prepare your App Store page](https://air.build/docs/app-store/prepare-your-store-page/#add-screenshots)) and the copyright line. The demo account password isn't written into the file either: the file holds a pointer to where the password is kept, and plans show it as `<redacted>`.

## Write the listing into the project

Ask in the Project's chat, for example:

```text
Put our App Store listing text for version 1.4 into a metadata folder in the project.
```

1. The Agent runs `asc metadata pull` with a folder. The `asc` help names no folder of its own; its examples use `metadata`. Name the folder you want, or let the Agent pick one and tell you.
2. Without a version, `asc` takes the newest version you can still change (for example one being prepared, rejected or waiting for review), else a version you removed from sale, else the live one, and says which version it took.
3. The Agent tells you the files it wrote.

To read them, open **Files** (see [Find the files and documents Agents made](https://air.build/docs/projects/find-files/#open-files)).

If the folder already has these files, `asc` stops with "refusing to overwrite existing file" and the file's name. Ask the Agent to write over them, or to use a new folder.

## Change the text

**Files** is for reading only. To change the text, tell the Agent what to change, for example:

```text
In metadata, rewrite the French description to match the new English one, and shorten the promotional text in every language.
```

In a local Team, you can also open the folder in your own editor: see [Open a project in Xcode, Cursor or another editor](https://air.build/docs/build/open-in-your-editor/).

Each file is JSON, for example:

```json
{
  "description": "Plan your week in a minute.",
  "keywords": "planner,calendar,tasks",
  "whatsNew": "A new widget for today's tasks."
}
```

What the files mean when they're sent back:

- A field left out of a file stays as it is in App Store Connect. Leaving out a field doesn't delete it.
- A field set to `""` is refused: "cannot be empty; omit the key to leave the remote value unchanged".
- A field set to `null` is cleared. Not every field can be cleared: for those, the check says the field "cannot be null".
- A language with a new file is added. The app file of a new language needs a `name`. To add languages on screen instead, see [Add languages to your App Store page](https://air.build/docs/app-store/localize-your-store-page/).

## Check the files

Ask the Agent to check the files before they go out. It runs `asc metadata validate`, which reads the files without contacting Apple. The `asc` help lists what it checks:

- the files hold only known fields, and the fields that are required
- the character limits of each field (for the limits, see [Prepare your App Store page](https://air.build/docs/app-store/prepare-your-store-page/#fill-in-the-store-page))
- that the marketing, support, privacy policy and privacy choices URLs are valid web addresses
- a name or description that looks too short (a warning only)

Two checks run only when you ask. To check that the support and privacy policy pages open, without redirects and not just a site's front page, ask the Agent to check the URLs (`--check-urls`). For an app that sells subscriptions, ask it to check that the description links to your Terms of Use (`--subscription-app`).

The result counts the errors and warnings, and lists each one with the file, the field and the message; for a limit, also the length and the limit. With errors, it ends with "metadata validate: found" and the number of errors. Ask the Agent to fix them and check again.

## Send the changes to App Store Connect

Ask the Agent to show the changes first, for example:

```text
Show me what sending the metadata folder to version 1.4 would change. Don't send it yet.
```

1. The Agent runs `asc metadata push --dry-run`, which changes nothing. It lists each change with the language, the field, the reason, and the text before and after.
2. Read the list. To change something, ask the Agent to edit the files and show the changes again.
3. Ask it to send them. It runs `asc metadata push` with the version.

A push that only adds or changes text doesn't need a confirmation, so it goes out as soon as the Agent runs it. That's why it's worth asking for the list first. When a push clears a field, sends App Clip or App Preview files, or deletes a language, `asc` needs `--confirm`, so the Agent asks you first.

Languages that are in App Store Connect but have no file are left alone. They're deleted only if you ask for it: then `asc` deletes each language in App Store Connect that has no file in the folder (`app-info/`, or the version's folder under `version/`), and the Agent asks you first. A deleted language's text is gone from App Store Connect; keep its file if you may want it back.

The result counts the changes that succeeded, were skipped and failed. To see the listing, open **App Information** › **Store Page**: see [Prepare your App Store page](https://air.build/docs/app-store/prepare-your-store-page/#open-app-information).

The version has to exist in App Store Connect. To make it, see [Ship an update to your app](https://air.build/docs/app-store/ship-an-update/#start-the-next-version).

## Approve each change first

To approve the changes before anything is sent, ask the Agent to plan them:

1. The Agent runs `asc metadata plan`. It compares the files with App Store Connect and writes the plan into the project, by default under `.asc/metadata/review`. Nothing is sent.
2. It shows you the planned changes. Tell it which ones you approve: all of them, a part (for example everything under `app-info`), or single changes. It records them with `asc metadata approve`. `asc metadata status` shows how many are approved and how many wait.
3. When every change is approved, it applies the plan with `asc metadata apply`. That needs `--confirm`, so the Agent asks you first.

`asc` applies only the plan you approved. If something you didn't approve is still in the plan, it stops with "approved metadata plan is incomplete; pending key(s):" and the changes. If the files or App Store Connect changed since you approved, it stops with "approved metadata plan drifted; rerun asc metadata plan and asc metadata approve": ask the Agent to plan again and show you the new plan.

To see what changed between two versions already in App Store Connect, see [Compare your store text between two versions](https://air.build/docs/app-store/compare-store-text-between-versions/).

## Questions

**The Agent says the version wasn't found.**

The message is "app store version not found for version" and the number. The version doesn't exist in App Store Connect yet. See [Ship an update to your app](https://air.build/docs/app-store/ship-an-update/#start-the-next-version).

**The Agent asks which platform.**

The app has that version on more than one platform, for example iOS and macOS. Tell the Agent which one.

**Some languages failed.**

The push ends with "localization(s) failed" and the number, and `asc` writes a file with the failures. Changes that succeeded stay; the result marks each one succeeded or failed. Ask the Agent what each failure says, fix the files and send them again.

**A new language is refused.**

The message says the language "requires name when creating a new locale". Add the app's `name` to that language's file in `app-info/`.

**The folder is empty or has the wrong files.**

`asc` needs at least one `.json` file in the folder, and refuses fields it doesn't know. Ask the Agent to write the listing again into a new folder and start from there.

**It says ffprobe is required.**

The folder has App Preview videos, and `asc` checks them with FFmpeg's `ffprobe`. Ask the Agent to install FFmpeg, or to send the text without the videos.

**Our listing is in fastlane files.**

See [Bring your store listing from fastlane](https://air.build/docs/app-store/bring-your-listing-from-fastlane/). Those files use another layout.
