> ## Documentation Index
> Fetch the complete documentation index at: https://docs.profclaw.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# profclaw linear

> Manage Linear integration - connect workspaces, sync issues, and automate ticket workflows.

## Synopsis

```bash theme={null}
profclaw linear <subcommand> [flags]
```

## Description

`linear` manages the profClaw Linear integration. Linear is a modern project management tool popular with engineering teams. Once connected, profClaw can watch for new issues, respond to status transitions, and assign agent tasks to work on Linear tickets.

## Subcommands

| Subcommand | Description |
| - | - |
| `status` | Show Linear connection and team status |
| `connect` | Configure Linear API key and team |
| `disconnect` | Remove the Linear integration |
| `teams` | List connected Linear teams |
| `sync <team>` | Manually sync issues from a team |
| `issues` | List synced Linear issues |

## `linear connect`

**--token** `string`

Linear API key. Generate at `linear.app/settings/api`.

**--team** `string`

Linear team ID or key to connect.

## `linear sync <team>`

**team** `string` *required*

Team ID or key to sync issues from.

**--state** `string`

Filter by issue state name (e.g., `Todo`, `In Progress`, `Backlog`).

**--label** `string`

Filter by issue label.

**--limit** `string` (default: 50)

Maximum issues to sync.

## Examples

```bash Check Linear integration status theme={null}
profclaw linear status
```

```bash Connect to Linear theme={null}
profclaw linear connect --token lin_api_... --team ENG
```

```bash List teams theme={null}
profclaw linear teams
```

```bash Sync issues from a team theme={null}
profclaw linear sync ENG
```

```bash Sync only Todo issues theme={null}
profclaw linear sync ENG --state Todo
```

```bash List synced issues theme={null}
profclaw linear issues
```

```bash Disconnect Linear theme={null}
profclaw linear disconnect
```

## Automation Triggers

When connected, profClaw can respond to Linear webhooks:

| Event | Action |
| - | - |
| `Issue.create` | Dispatch agent task for new issues |
| `Issue.update` | Trigger on state change (e.g., "In Progress") |
| `Comment.create` | Respond to `@profclaw` mentions |

## Environment Variables

```bash theme={null}
LINEAR_API_KEY=lin_api_...
LINEAR_WEBHOOK_SECRET=...
```

## Related

* [`profclaw github`](https://docs.profclaw.ai/cli/github) - GitHub integration
* [`profclaw jira`](https://docs.profclaw.ai/cli/jira) - Jira integration
* [`profclaw sync`](https://docs.profclaw.ai/cli/sync) - Cross-platform sync
* [Linear Integration Guide](https://docs.profclaw.ai/integrations/linear.md) - Full setup instructions


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.