Linear CLI
for cmdhub.
Linear resources through the cmdhub CLI.
cmdhub get linear
data_object Agent Contract
Agents should start with auth/status and discovery commands, inspect schemas before composition, and treat commands marked as mutating as state-changing operations.
Output
Use human output for normal reads, `--json` for scripting or complete structured fields, and `--jsonl` for upstream pipe inputs.
Auth
Linear OAuth or API key. Used for Linear workspaces, teams, users, states, cycles, labels, projects, issues, and comments.
Refs
Prefer list/search, then short refs or piped JSONL. Use `resolve` to inspect cached refs.
Schemas
Use `linear schema` and `catalog.json` to inspect fields, flags, examples, and side effects.
Auth scopes
readwriteissues:createcomments:createterminal Command Reference
Generated from source. Global flags apply to all commands.
Global Flags
--json
bool
Emit JSON machine output--jsonl
bool
Emit JSONL records for piping--output, -o
string
Compatibility output mode: json|jsonl. Prefer --json or --jsonl--view
string = summary
View mode: summary|full--profile
string = default
Config/auth profile--config
string
Config path override--quiet, -q
bool
Suppress non-essential diagnostics--debug
bool
Enable debug diagnostics--limit
int = 50
Maximum items to emit--page-size
int = 50
Requested upstream page size--cursor
string
Continuation cursor--no-paginate
bool
Fetch only one page--version, -v
bool
Print version informationlinear agent
Plan agent-oriented Linear command adaptationslinear agent adapt
Dry-run a JSONL item adaptation to a Linear command--dry-run
bool
Plan without mutating Linear--to
string
Target Linear command, such as "linear issue create"linear attachment
Manage Linear attachment recordslinear attachment create
Create a Linear external URL attachment--issue
string
Issue ref, identifier, URL, or ID--metadata-json
string
Attachment metadata JSON object--subtitle
string
Attachment subtitle--title
string
Attachment title--url
string
External URL to attachlinear attachment delete
Delete a Linear external URL attachment--dry-run
bool
Preview without changing Linear state--yes
bool
Confirm attachment deletionlinear attachment get
Get a Linear attachmentlinear attachment list
List Linear attachment records--include-archived
bool
Include archived Linear records--issue
string
Issue ref, identifier, URL, or IDlinear attachment update
Update a Linear external URL attachment--metadata-json
string
Attachment metadata JSON object--subtitle
string
Attachment subtitle--title
string
Attachment titlelinear auth
Manage Linear authenticationlinear auth login
Authenticate with Linear--api-key
bool
authenticate with a Linear personal API key instead of OAuth--api-key-stdin
bool
read the Linear API key from stdinlinear auth logout
Remove stored Linear credentialslinear auth refresh
Refresh stored Linear credentialslinear auth status
Show Linear auth statuslinear auth whoami
Show the current Linear user and workspacelinear capabilities
Describe capabilities--section
string
Show one capability section: scopes, schemas, or commandslinear comment
Manage Linear comment recordslinear comment create
Create a Linear issue comment--body
string
Comment markdown body--body-file
string
Read comment body from a file--issue
string
Issue ref, identifier, URL, or IDlinear comment delete
Delete a Linear issue comment--dry-run
bool
Preview without changing Linear state--yes
bool
Confirm comment deletionlinear comment get
Get a Linear commentlinear comment update
Update a Linear issue comment--body
string
Comment markdown body--body-file
string
Read comment body from a filelinear config
Inspect local configurationlinear config explain
Explain resolved configurationlinear cycle
Manage Linear cycle recordslinear cycle get
Get a Linear cyclelinear cycle list
List Linear cycle records--include-archived
bool
Include archived Linear records--team
string
Team ref, key, name, or IDlinear doctor
Run diagnosticslinear document
Manage Linear document recordslinear document get
Get a Linear documentlinear document list
List Linear document records--include-archived
bool
Include archived Linear recordslinear document search
Search Linear document records--include-archived
bool
Include archived Linear records--query
string
Search textlinear initiative
Manage Linear initiative recordslinear initiative get
Get a Linear initiativelinear initiative list
List Linear initiative records--include-archived
bool
Include archived Linear recordslinear initiative search
Search Linear initiative records--include-archived
bool
Include archived Linear records--query
string
Search textlinear issue
Manage Linear issue recordslinear issue archive
Archive a Linear issue--dry-run
bool
Preview without changing Linear state--yes
bool
Confirm the issue archive operationlinear issue create
Create a Linear issue--assignee
string
Assignee user ref, email, name, ID, or me--cycle
string
Cycle ref, number, name, or ID--description
string
Issue markdown description--description-file
string
Read issue markdown description from a file--due-date
string
Due date in YYYY-MM-DD form--label
stringArray = []
Issue label ref, name, or ID; repeatable--priority
string
Priority: none, urgent, high, medium, low, or 0-4--project
string
Project ref, slug, name, or ID--state
string
Workflow state ref, name, or ID--team
string
Team ref, key, name, or ID--title
string
Issue titlelinear issue get
Get a Linear issuelinear issue label
Manage labels on Linear issueslinear issue label add
Add a label on a Linear issue--label
string
Label ref, name, or IDlinear issue label remove
Remove a label on a Linear issue--label
string
Label ref, name, or IDlinear issue list
List Linear issue records--assignee
string
Assignee user ref, email, name, ID, or me--created-after
string
Only include issues created after this date or RFC3339 timestamp--creator
string
Creator user ref, email, name, ID, or me--cycle
string
Cycle ref, number, name, or ID--due-after
string
Only include issues due on or after this YYYY-MM-DD date--due-before
string
Only include issues due on or before this YYYY-MM-DD date--include-archived
bool
Include archived Linear records--label
string
Issue label ref, name, or ID--priority
string
Priority: none, urgent, high, medium, low, or 0-4--project
string
Project ref, slug, name, or ID--state
string
Workflow state ref, name, or ID--state-type
string
Workflow state type such as backlog, unstarted, started, completed, or canceled--team
string
Team ref, key, name, or ID--updated-after
string
Only include issues updated after this date or RFC3339 timestamplinear issue search
Search Linear issue records--assignee
string
Assignee user ref, email, name, ID, or me--created-after
string
Only include issues created after this date or RFC3339 timestamp--creator
string
Creator user ref, email, name, ID, or me--cycle
string
Cycle ref, number, name, or ID--due-after
string
Only include issues due on or after this YYYY-MM-DD date--due-before
string
Only include issues due on or before this YYYY-MM-DD date--include-archived
bool
Include archived Linear records--label
string
Issue label ref, name, or ID--priority
string
Priority: none, urgent, high, medium, low, or 0-4--project
string
Project ref, slug, name, or ID--query
string
Search text--state
string
Workflow state ref, name, or ID--state-type
string
Workflow state type such as backlog, unstarted, started, completed, or canceled--team
string
Team ref, key, name, or ID--updated-after
string
Only include issues updated after this date or RFC3339 timestamplinear issue unarchive
Unarchive a Linear issue--dry-run
bool
Preview without changing Linear state--yes
bool
Confirm the issue unarchive operationlinear issue update
Update a Linear issue--assignee
string
Assignee user ref, email, name, ID, or me--clear-assignee
bool
Remove issue assignee--clear-cycle
bool
Remove issue cycle--clear-due-date
bool
Remove issue due date--clear-project
bool
Remove issue project--cycle
string
Cycle ref, number, name, or ID--description
string
Issue markdown description--description-file
string
Read issue markdown description from a file--due-date
string
Due date in YYYY-MM-DD form--label
stringArray = []
Issue label ref, name, or ID; repeatable--priority
string
Priority: none, urgent, high, medium, low, or 0-4--project
string
Project ref, slug, name, or ID--state
string
Workflow state ref, name, or ID--title
string
Issue titlelinear label
Manage Linear label recordslinear label get
Get a Linear labellinear label list
List Linear label records--include-archived
bool
Include archived Linear records--team
string
Team ref, key, name, or IDlinear mcp
Run the MCP serverRun a stdio Model Context Protocol server for this adapter.
The server exposes read-only resource commands by default. Mutating commands are listed only when explicitly allowed with –allow and remain gated by the command contract safety class.
--allow
stringArray = []
Allow mutating command keys such as gmail.message.archive or gmail.message.label.*--allow-dangerous
bool
Allow --allow wildcards to include destructive or sends_external commands--concurrency
int
Maximum concurrent MCP subprocesses--max-output
int64 = 0
Maximum stdout/stderr bytes captured per MCP command--print-config
bool
Print MCP tool configuration and exit--timeout
duration = 0s
Per-command MCP subprocess timeout, for example 45s or 2mlinear profile
Manage provider profileslinear profile create
Create an unauthenticated provider profilelinear profile delete
Delete a local provider profilelinear profile list
List provider profileslinear profile rename
Rename a local provider profilelinear profile use
Set the default provider profilelinear project
Manage Linear project recordslinear project archive
Archive a Linear project--dry-run
bool
Preview without changing Linear state--yes
bool
Confirm the project archive operationlinear project create
Create a Linear project--description
string
Project markdown description--description-file
string
Read project markdown description from a file--name
string
Project name--start-date
string
Project start date in YYYY-MM-DD form--status
string
Project status name or type--target-date
string
Project target date in YYYY-MM-DD form--team
string
Team ref, key, name, or IDlinear project get
Get a Linear projectlinear project list
List Linear project records--include-archived
bool
Include archived Linear recordslinear project search
Search Linear project records--include-archived
bool
Include archived Linear records--query
string
Search textlinear project unarchive
Unarchive a Linear project--dry-run
bool
Preview without changing Linear state--yes
bool
Confirm the project unarchive operationlinear project update
Update a Linear project--clear-start-date
bool
Remove project start date--clear-target-date
bool
Remove project target date--description
string
Project markdown description--description-file
string
Read project markdown description from a file--name
string
Project name--start-date
string
Project start date in YYYY-MM-DD form--status
string
Project status name or type--target-date
string
Project target date in YYYY-MM-DD formlinear resolve
Resolve a local ref, short id, or URL aliaslinear schema
Emit schema hints--in
bool
Show input schema--input
bool
Show input schema--out
bool
Show output schemalinear state
Manage Linear state recordslinear state get
Get a Linear statelinear state list
List Linear state records--include-archived
bool
Include archived Linear records--team
string
Team ref, key, name, or IDlinear team
Manage Linear team recordslinear team get
Get a Linear teamlinear team list
List Linear team records--include-archived
bool
Include archived Linear recordslinear team search
Search Linear team records--include-archived
bool
Include archived Linear records--query
string
Search textlinear user
Manage Linear user recordslinear user get
Get a Linear userlinear user list
List Linear user records--include-archived
bool
Include archived Linear recordslinear user search
Search Linear user records--include-archived
bool
Include archived Linear records--query
string
Search textlinear version
Show version informationlinear view
Manage Linear view recordslinear view get
Get a Linear viewlinear view issue
List issues from a Linear viewlinear view issue list
List Linear issues from a saved view--include-archived
bool
Include archived Linear issueslinear view list
List Linear view records--include-archived
bool
Include archived Linear recordslinear view search
Search Linear view records--include-archived
bool
Include archived Linear records--query
string
Search textplay_circle Live Examples
Output captured from a real workspace. Regenerate with
scripts/gen-docs.sh --update.
auth
Authenticated as kestrelphilip@gmail.com Next steps: - Issues: linear issue list --limit 10 - Teams: linear team list --limit 10 - Doctor: linear doctor - Capabilities: linear capabilities
Linear identity Field Value ------------- ----- Profile default Account kestrelphilip@gmail.com User kestrelphilip Workspace cmdhub-test Workspace key cmdhub-test Auth mode oauth User URL [u1] URLs: - [u1] https://linear.app/cmdhub-test/profiles/kestrelphilip Next steps: - Issues: linear issue list --limit 10 - Teams: linear team list --limit 10 - Doctor: linear doctor - Capabilities: linear capabilities
linear doctor: WARN Account: kestrelphilip@gmail.com Checks: credential_backend ok, credential_security warn, profiles ok, oauth_config ok, auth ok, scopes ok, connectivity ok CHECK STATUS DETAIL credential_backend OK using file credential_security WARN credential backend stores local plaintext secrets profiles OK active profile "default" oauth_config OK Linear built-in public PKCE OAuth client id is configured auth OK stored Linear OAuth token expires at 2026-07-07T08:51:45Z scopes OK stored Linear token covers required scopes connectivity OK Linear GraphQL API reachable Next steps: - Status: linear auth status - Capabilities: linear capabilities
alt_route Composition Patterns
Bridge your ecosystem with zero middleware.
# Inspect auth state and available command schemas
linear auth status --json
linear schema
linear comment listList Linear comment records--include-archivedbool Include archived Linear records--issuestring Issue ref, identifier, URL, or ID