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!
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
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 🙂

Sanity – Build the way you think, not the way your CMS thinks

Sanity is the developer-first content operating system that gives you complete control. Schema-as-code, GROQ queries, and real-time APIs mean no more workarounds or waiting for deployments. Free to start, scale as you grow.

Was this answer helpful?