Skip to main content

get attachment

The get attachment command downloads a file attachment:

bsafe get attachment <filename> --itemid <id>

The get attachment command takes a filename and exact id. By default, get attachment will download the attachment to the current working directory. You can use the -- output option to specify a different output directory, for example:

bsafe get attachment photo.png --itemid 99ee88d2-6046-4ea7-92c2-acac464b1412 --output /Users/myaccount/Pictures/

When using --output, the path must end with a forward slash (/) to specify a directory or a filename. For example, /Users/myaccount/Pictures/photo.png.