How to Download / Export All Images from Sanity

2 replies
Last updated: Apr 10, 2021
I’m sure this is easy(ish), but how would I download all images I have uploaded into Sanity onto my machine? Maybe the CLI tool? Thanks!
Apr 9, 2021, 5:15 AM
if you run this command in your studio directory, it’ll give you a zip file with all the images
sanity dataset export <dataset-name> . --types sanity.imageAsset
Apr 9, 2021, 5:41 AM
user G
Thanks! This worked like a charm and you’re my new favorite person for the weeken! You saved me about an hour of manual work 🙂
Apr 10, 2021, 2:12 AM

Sanity.io – build remarkable experiences at scale

Sanity is a customizable solution that treats content as data to power your digital business. Free to get started, and pay-as-you-go on all plans.

Categorized in