Skip to content

[eas-cli] Add --skip-screenshots and --skip-previews flags to metadata commands#3843

Open
TimBroddin wants to merge 1 commit into
expo:mainfrom
TimBroddin:@timbroddin/metadata-skip-screenshots-previews
Open

[eas-cli] Add --skip-screenshots and --skip-previews flags to metadata commands#3843
TimBroddin wants to merge 1 commit into
expo:mainfrom
TimBroddin:@timbroddin/metadata-skip-screenshots-previews

Conversation

@TimBroddin

Copy link
Copy Markdown

Why

eas metadata:pull downloads every screenshot and video preview from App Store Connect, and eas metadata:push syncs them back. When you only want to manage textual metadata (descriptions, keywords, review info, etc.), downloading/uploading all media assets is slow and unnecessary. This PR adds opt-out flags for both asset types.

How

  • Added a --skip-screenshots and a --skip-previews flag to both eas metadata:pull and eas metadata:push.
  • The flags are threaded through downloadMetadataAsync / uploadMetadataAsync to createAppleTasks(), which now filters out the ScreenshotsTask and/or PreviewsTask. Skipping the task entirely also avoids the per-locale screenshot/preview set fetches in prepareAsync.
  • Because push deletes remote video previews whose types are missing from the store config, metadata:pull --skip-previews logs a warning that pushing the generated config without --skip-previews would delete remote previews. (Screenshots have no such cleanup pass, so mixing the screenshot flag between pull and push is safe.)
  • Regenerated the oclif README and added a changelog entry.

Test Plan

  • New unit tests for createAppleTasks filtering (packages/eas-cli/src/metadata/apple/tasks/__tests__/index.test.ts) and for flag pass-through in download.test.ts / upload.test.ts.
  • Full metadata suite passes: 16 suites, 197 tests.
  • Verified bin/run metadata:pull --help and bin/run metadata:push --help show the new flags.
  • yarn typecheck, yarn lint, and yarn fmt:check pass.

@TimBroddin TimBroddin force-pushed the @timbroddin/metadata-skip-screenshots-previews branch from 2b95b4b to 2fa740e Compare June 10, 2026 12:33
@TimBroddin TimBroddin marked this pull request as ready for review June 10, 2026 12:38
@github-actions

Copy link
Copy Markdown

Subscribed to pull request

File Patterns Mentions
**/* @douglowder
packages/eas-cli/src/metadata/** @byCedric
packages/eas-cli/src/commands/metadata/** @byCedric

Generated by CodeMention

@TimBroddin TimBroddin force-pushed the @timbroddin/metadata-skip-screenshots-previews branch from 2fa740e to f7444e8 Compare June 10, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant