Linear Uploads
Download attachments and images from Linear issues using linear-cli.
Download to File
# Download image/attachment to file
linear-cli up fetch "https://uploads.linear.app/..." -f image.png
# Download screenshot
linear-cli up fetch "https://uploads.linear.app/abc/def/screenshot.png" -f /tmp/screenshot.png
Output to Stdout
# Pipe to other tools
linear-cli up fetch "https://uploads.linear.app/..." | base64
# Pipe to file
linear-cli up fetch "https://uploads.linear.app/..." > file.png
Finding Upload URLs
Upload URLs are found in:
- Issue descriptions
- Comments (use
linear-cli cm list ISSUE_ID --output json)
URLs follow pattern: https://uploads.linear.app/{org}/{upload}/{filename}
Tips
- Requires valid Linear API key
- Use
-f/--fileto specify output filename - Without
-f, outputs raw bytes to stdout (for piping)
When to Use Each Mode
Use -f (file) when you need to view the image:
# Download to /tmp, then use Read tool to view
linear-cli up fetch "https://uploads.linear.app/..." -f /tmp/screenshot.png
# Then: Read tool on /tmp/screenshot.png (Claude is multimodal)
Use stdout when piping to other CLI tools:
# Pipe to base64, imagemagick, etc.
linear-cli up fetch "https://uploads.linear.app/..." | base64