linLinear CLI
Commands

lin attachment

Upload files and manage issue attachments

Upload files and manage issue attachments

lin attachment add

Upload a file and attach it to an issue

lin attachment add <issue-id> <file>

Example

lin attachment add ENG-123 ./screenshot.png --title "Login bug"
FlagTypeDefaultDescription
--dry-run, -nboolfalseprint the intended operation and variables without executing
--titlestring-attachment title (defaults to the file name)

lin attachment delete

Delete an attachment (requires --confirm=<id>)

lin attachment delete <id>
FlagTypeDefaultDescription
--confirmstring-confirm the destructive action by repeating the resource id
--dry-run, -nboolfalseprint the intended operation and variables without executing

lin attachment get

Show one attachment

lin attachment get <id>

Attach a URL to an issue (no upload)

lin attachment link <issue-id> <url>

Example

lin attachment link ENG-123 https://example.com/spec --title Spec
FlagTypeDefaultDescription
--dry-run, -nboolfalseprint the intended operation and variables without executing
--titlestring-attachment title

lin attachment list

List the attachments of an issue

lin attachment list <issue-id>
FlagTypeDefaultDescription
--all, -aboolfalsefollow cursors until exhaustion
--cursorstring-resume from a previous next_cursor
--limit, -lint50page size

lin attachment update

Update an attachment's title or subtitle

lin attachment update <id>
FlagTypeDefaultDescription
--dry-run, -nboolfalseprint the intended operation and variables without executing
--subtitlestring-attachment subtitle
--titlestring-attachment title

lin attachment upload

Runs steps 1-2 of the upload dance and prints {asset_url, markdown}. Embed images inline in descriptions/comments with the markdown value; Linear signs the asset URL at render time.

lin attachment upload <file>
FlagTypeDefaultDescription
--dry-run, -nboolfalseprint the intended operation and variables without executing

On this page