linLinear CLI
Commands

lin document

Create, inspect and manage documents

Create, inspect and manage documents

lin document create

Create a document (attached to a project or an initiative)

lin document create

Example

lin document create --title "Runbook" --project "Mobile app v2" --body-file runbook.md
FlagTypeDefaultDescription
--body-filestring-read the text from a file ('-' reads stdin)
--contentstring-document content (markdown)
--dry-run, -nboolfalseprint the intended operation and variables without executing
--initiativestring-attach to an initiative (UUID)
--jsonstring-raw GraphQL input payload as JSON ('-' reads stdin); exclusive with per-field flags
--projectstring-attach to a project (name or UUID)
--titlestring-document title (required)

lin document delete

Delete a document (requires --confirm=<id>)

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

lin document get

Show one document (with content)

lin document get <id>

lin document list

List documents

lin document list
FlagTypeDefaultDescription
--all, -aboolfalsefollow cursors until exhaustion
--cursorstring-resume from a previous next_cursor
--limit, -lint50page size
--projectstring-filter by project (name or UUID)
--querystring-filter by title (contains, case-insensitive)

lin document unarchive

Unarchive a document

lin document unarchive <id>
FlagTypeDefaultDescription
--dry-run, -nboolfalseprint the intended operation and variables without executing

lin document update

Update a document

lin document update <id>
FlagTypeDefaultDescription
--body-filestring-read the text from a file ('-' reads stdin)
--contentstring-document content (markdown)
--dry-run, -nboolfalseprint the intended operation and variables without executing
--titlestring-document title

On this page