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"| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run, -n | bool | false | print the intended operation and variables without executing |
--title | string | - | attachment title (defaults to the file name) |
lin attachment delete
Delete an attachment (requires --confirm=<id>)
lin attachment delete <id>| Flag | Type | Default | Description |
|---|---|---|---|
--confirm | string | - | confirm the destructive action by repeating the resource id |
--dry-run, -n | bool | false | print the intended operation and variables without executing |
lin attachment get
Show one attachment
lin attachment get <id>lin attachment link
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| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run, -n | bool | false | print the intended operation and variables without executing |
--title | string | - | attachment title |
lin attachment list
List the attachments of an issue
lin attachment list <issue-id>| Flag | Type | Default | Description |
|---|---|---|---|
--all, -a | bool | false | follow cursors until exhaustion |
--cursor | string | - | resume from a previous next_cursor |
--limit, -l | int | 50 | page size |
lin attachment update
Update an attachment's title or subtitle
lin attachment update <id>| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run, -n | bool | false | print the intended operation and variables without executing |
--subtitle | string | - | attachment subtitle |
--title | string | - | 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>| Flag | Type | Default | Description |
|---|---|---|---|
--dry-run, -n | bool | false | print the intended operation and variables without executing |