dataset retrieve COLLECTION_NAME KEY ATTACHMENT_NAME
retrieve writes out (to local disc) the items that have been attached to a JSON record in the collection with the matching KEY
Write out all the attached files for k1 in collection named “publications.ds”
dataset retrieve publications.ds k1
Write out only the stats.xlsx file attached to k1
dataset retrieve publications.ds k1 stats.xlsx