Media Library

Media

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

Usage details are available in the aspects guide.

delete-aspect

deploy-aspect

export

import

Was this page helpful?

Media | Sanity Docs