Media Library

Media CLI command reference

CLI reference documentation for the media command.

Interact with Media Library with the npx sanity media command.

The media command must be run from within a directory that contains a valid santy.cli.ts configuration file. We recommend running it from within an existing Sanity project. Learn more about configuring Media Library.

Commands

create-aspect

delete-aspect

deploy-aspect

export

import

Was this page helpful?