I’ve build a prototype of a tar like gristar command which extracts grist attachments in bulk from a grist file.
gristar
If you use it, be aware that this is a prototype.