Agent commands

asc asset-library commands: read an app's Asset Library and Apple's asset specifications, and upload, rename, archive and delete its images and videos.

asc asset-library works with an app’s Asset Library in App Store Connect: the images and videos an app keeps once and places on its version pages, custom product pages, product page experiments and in-app events. It reads the library and Apple’s current asset specifications, uploads media, and renames, archives or deletes it. Placing media is done from the page that uses it, for example asc product-pages custom-pages localizations placements (see asc product-pages). Picking an Apple team, output, pagination, --confirm and exit codes work as described on the asc page; the flag tables below leave out --output, --pretty, --limit, --next, --paginate and the --…-fields flags, which are explained there.

No command here submits anything for App Review. To have library media reviewed, add it to a review submission with asc review items-add --item-type appAssetLibraryImages (or appAssetLibraryVideos), then asc review submissions-submit --id SUBMISSION_ID --confirm (see asc: review and release). Assets can be reviewed on their own only once the app has an approved version; for an app’s first version, submit them together with that version.

Wherever a flag takes an ID, an API self-link (the resource’s links.self URL) works as well. Apple decides which assets are eligible for each change and checks state and filter values.

Terminal window
asc asset-library view --app APP_ID
asc asset-library images upload --library-id LIBRARY_ID --file ./header.png

view

Reads an app’s Asset Library. Use it to find the library ID the other commands need.

Flag What it does Default
--app App ID or API self-link. Required. —
Terminal window
asc asset-library view --app APP_ID

specs

Reads Apple’s current asset dimensions and placement policies. Every filter takes comma-separated values, which Apple checks.

Flag What it does Default
--placement-type Filter by placement types. —
--placement-profile-group Filter by placement profile groups. —
--feature Filter by features. —
--spec Filter by specifications. —
Terminal window
asc asset-library specs --placement-type APP_SCREENSHOT --feature APP_STORE_VERSIONS

images

Images in an Asset Library.

images upload

Uploads an image to the Asset Library and waits until Apple has processed it. It does not place the image or submit it for review. The wait is bounded by ASC_UPLOAD_TIMEOUT (see Environment variables). If the upload fails after Apple reserved the image, the command prints a partial receipt with the image ID so you can inspect or delete it; it never deletes the image itself.

Flag What it does Default
--library-id Asset Library ID. Required. —
--file Image file to upload. Required. —
--category CREATIVE_ASSETS or APP_SCREENSHOTS_AND_PREVIEWS. CREATIVE_ASSETS
--reference-name Internal reference name. Apple’s name from the file name
--progress Print upload progress as JSON lines on stderr. false
Terminal window
asc asset-library images upload --library-id LIBRARY_ID --file ./cms-8f3a21.png --reference-name "Hero en-US 3.14"

images list

Lists the images in an Asset Library. Filters take comma-separated values. Filter and sort flags can’t be combined with --next.

Flag What it does Default
--library-id Asset Library ID or API self-link. Required. —
--category Filter by category: CREATIVE_ASSETS, APP_SCREENSHOTS_AND_PREVIEWS. —
--state Filter by asset state (Apple checks the values). —
--spec-id Filter by asset specification IDs. —
--id Filter by asset IDs. —
--reference-name Filter by internal reference names. —
--sort referenceName, createdDate or lastModifiedDate; prefix - for descending. —
Terminal window
asc asset-library images list --library-id LIBRARY_ID --paginate

images view

Reads one Asset Library image.

Flag What it does Default
--id Image ID or API self-link. Required. —
Terminal window
asc asset-library images view --id IMAGE_ID

images placements

Lists where an Asset Library image is used. Filters take comma-separated values. Filter and sort flags can’t be combined with --next.

Flag What it does Default
--id Image ID or API self-link. Required. —
--placement-type Filter by placement type: APP_SCREENSHOT, IMESSAGE_APP_SCREENSHOT, APP_PREVIEW, PRODUCT_PAGE_HEADER_ASSET, APP_STORE_SEARCH_RESULTS_ASSET, SEARCH_RESULTS_ADS_ASSET, TODAY_TAB_ADS_ASSET, EVENT_CARD_ASSET, EVENT_DETAILS_PAGE_ASSET, RETENTION_MESSAGE_ASSET. —
--placement-group Filter by placement group IDs. —
--placement-id Filter by placement IDs. —
--state Filter by placement state (Apple checks the values). —
--video-id Filter by library video IDs. —
--version-localization Filter by version localization IDs. —
--custom-page-localization Filter by custom product page localization IDs. —
--treatment-localization Filter by experiment treatment localization IDs. —
--event-localization Filter by in-app event localization IDs. —
--sort createdDate, lastModifiedDate or placementGroupPosition; prefix - for descending. —
Terminal window
asc asset-library images placements --id IMAGE_ID

images rename

Changes an image’s internal reference name.

Flag What it does Default
--id Image ID or API self-link. Required. —
--name New internal reference name. Required. —
Terminal window
asc asset-library images rename --id ID --name NAME

images archive

Archives an image. Only approved assets can be archived, and archived assets can’t be used in new placements.

Flag What it does Default
--id Image ID or API self-link. Required. —
--confirm Confirm the change. Required. false
Terminal window
asc asset-library images archive --id ID --confirm

images unarchive

Restores an archived image so it can be used in new placements again.

Flag What it does Default
--id Image ID or API self-link. Required. —
Terminal window
asc asset-library images unarchive --id ID

images delete

Deletes an eligible image from the Asset Library. To take an image off one page but keep it in the library, delete the placement instead.

Flag What it does Default
--id Image ID or API self-link. Required. —
--confirm Confirm the deletion. Required. false
Terminal window
asc asset-library images delete --id ID --confirm

videos

Videos in an Asset Library.

videos upload

Uploads a video (.mp4, .m4v or .mov) to the Asset Library, independently of any app version, placement or review submission, and waits until Apple has processed it. It needs ffprobe (FFmpeg) to inspect the file; dimensions, frame rate, duration, audio and file size must match Apple’s current asset specifications (asc asset-library specs). ASC_UPLOAD_TIMEOUT bounds the upload and processing; for videos it defaults to 30 minutes, since Apple often takes 10 to 15 minutes to process one. If it fails after Apple reserved the video, the command prints a partial receipt with the video ID; nothing is deleted automatically. With --time-code the poster frame is set in the same request and the command also waits for that frame; a frame Apple can’t generate fails the command.

Flag What it does Default
--library-id Asset Library ID. Required. —
--file Video file to upload. Required. —
--category CREATIVE_ASSETS or APP_SCREENSHOTS_AND_PREVIEWS. CREATIVE_ASSETS
--reference-name Internal reference name. Apple’s name from the file name
--time-code Poster frame time code: HH:MM:SS:FF or HH:MM:SS.mmm. —
Terminal window
asc asset-library videos upload --library-id LIBRARY_ID --file ./header.mp4 --time-code 00:00:03:00

videos list

Lists the videos in an Asset Library. Filters take comma-separated values. Filter and sort flags can’t be combined with --next.

Flag What it does Default
--library-id Asset Library ID or API self-link. Required. —
--category Filter by category: CREATIVE_ASSETS, APP_SCREENSHOTS_AND_PREVIEWS. —
--state Filter by asset state (Apple checks the values). —
--spec-id Filter by asset specification IDs. —
--id Filter by asset IDs. —
--reference-name Filter by internal reference names. —
--sort referenceName, createdDate or lastModifiedDate; prefix - for descending. —
Terminal window
asc asset-library videos list --library-id LIBRARY_ID

videos view

Reads one Asset Library video.

Flag What it does Default
--id Video ID or API self-link. Required. —
Terminal window
asc asset-library videos view --id VIDEO_ID

videos placements

Lists where an Asset Library video is used. Filters take comma-separated values. Filter and sort flags can’t be combined with --next.

Flag What it does Default
--id Video ID or API self-link. Required. —
--placement-type Filter by placement type: APP_SCREENSHOT, IMESSAGE_APP_SCREENSHOT, APP_PREVIEW, PRODUCT_PAGE_HEADER_ASSET, APP_STORE_SEARCH_RESULTS_ASSET, SEARCH_RESULTS_ADS_ASSET, TODAY_TAB_ADS_ASSET, EVENT_CARD_ASSET, EVENT_DETAILS_PAGE_ASSET, RETENTION_MESSAGE_ASSET. —
--placement-group Filter by placement group IDs. —
--placement-id Filter by placement IDs. —
--state Filter by placement state (Apple checks the values). —
--image-id Filter by library image IDs. —
--version-localization Filter by version localization IDs. —
--custom-page-localization Filter by custom product page localization IDs. —
--treatment-localization Filter by experiment treatment localization IDs. —
--event-localization Filter by in-app event localization IDs. —
--sort createdDate, lastModifiedDate or placementGroupPosition; prefix - for descending. —
Terminal window
asc asset-library videos placements --id VIDEO_ID

videos rename

Changes a video’s internal reference name.

Flag What it does Default
--id Video ID or API self-link. Required. —
--name New internal reference name. Required. —
Terminal window
asc asset-library videos rename --id ID --name NAME

videos set-poster-frame

Sets the frame shown before a video plays. The change affects every placement that uses the video, and a poster frame can’t be changed once the asset is approved.

Flag What it does Default
--id Video ID or API self-link. Required. —
--time-code Poster frame time code: HH:MM:SS:FF or HH:MM:SS.mmm. Required. —
Terminal window
asc asset-library videos set-poster-frame --id ID --time-code 00:00:03:00

videos archive

Archives a video. Only approved assets can be archived, and archived assets can’t be used in new placements.

Flag What it does Default
--id Video ID or API self-link. Required. —
--confirm Confirm the change. Required. false
Terminal window
asc asset-library videos archive --id ID --confirm

videos unarchive

Restores an archived video so it can be used in new placements again.

Flag What it does Default
--id Video ID or API self-link. Required. —
Terminal window
asc asset-library videos unarchive --id ID

videos delete

Deletes an eligible video from the Asset Library. To take a video off one page but keep it in the library, delete the placement instead.

Flag What it does Default
--id Video ID or API self-link. Required. —
--confirm Confirm the deletion. Required. false
Terminal window
asc asset-library videos delete --id ID --confirm