One Space
Replace XYZ with your space and tempdir with the directory you want to put the attachments in.
--action runFromAttachmentList --space XYZ --common "--action getAttachment --id @pageId@ --name \"@attachment@\" --file tempdir" --continue
All Spaces
Replace tempdir with the directory you want to put the attachments in.
--action runFromAttachmentList --space @all --common "--action getAttachment --id @pageId@ --name \"@attachment@\" --file tempdir" --continue