Attachments are files uploaded to a card. Upload local files, download with the original filename, or delete.
plnk attachment list --card <cardId>
plnk attachment list --card 1234 --output jsonplnk attachment upload --card <cardId> <file>
plnk attachment upload --card 1234 ./spec.png
plnk attachment upload --card 1234 /path/to/report.pdfDownloads the file using its original filename from Planka. Requires --card to look up the attachment metadata.
# Download to current directory with original filename
plnk attachment download <attachmentId> --card <cardId>
# Download to a specific path
plnk attachment download <attachmentId> --card <cardId> --out ./downloads/spec.pngWithout --out, the file saves to the current directory using whatever name it was uploaded with.
plnk attachment delete <attachmentId>
plnk attachment delete 555 --yes# Upload a spec document
plnk attachment upload --card 1234 ./design-spec.pdf
# See what's attached
plnk attachment list --card 1234 --output json
# Download it (saves as "design-spec.pdf" in current dir)
plnk attachment download 555 --card 1234
# Download to a specific location
plnk attachment download 555 --card 1234 --out ~/Downloads/design-spec.pdf
# Clean up
plnk attachment delete 555 --yes