Skip to content

jira issue attachment download

  • Usage: jira issue attachment download KEY ATTACHMENT_ID [--to PATH] [flags]

Download one attachment by ID and write it to a file. Use it after attachment list when you need the file content locally.

Binary content is always written to a file, never stdout, so JSON output stays parseable. Existing target files are protected unless --force is set. --dry-run validates the target path and prints the planned write without downloading.

Safety

--dry-run

Preview without downloading

--force

Overwrite existing target file

Output

--to <PATH>

Write the attachment to PATH (default: current directory)

Accepts a file.

Examples

jira issue attachment download PROJ-123 10500 # (1)!
jira issue attachment download PROJ-123 10500 --to ./report.pdf --force # (2)!
jira issue attachment download PROJ-123 10500 --to ./report.pdf --dry-run # (3)!
  1. Download an attachment to the current directory
  2. Download to a specific path, overwriting if it exists
  3. Preview the download target without contacting Jira