mirror of
https://github.com/prdlk/dotfiles.git
synced 2026-11-04 19:57:37 +00:00
33 lines
683 B
Markdown
33 lines
683 B
Markdown
---
|
|||
|
|
name: linear-documents
|
||
|
|
description: Manage Linear documents. Use for creating and viewing documentation.
|
||
|
|
allowed-tools: Bash
|
||
|
|
---
|
||
|
|
|
||
|
|
# Documents
|
||
|
|
|
||
|
|
```bash
|
||
|
|
# List documents
|
||
|
|
linear-cli d list
|
||
|
|
linear-cli d list --output json
|
||
|
|
|
||
|
|
# Get document
|
||
|
|
linear-cli d get DOC_ID
|
||
|
|
linear-cli d get DOC_ID --output json
|
||
|
|
|
||
|
|
# Create document
|
||
|
|
linear-cli d create "Design Doc" -p PROJECT_ID
|
||
|
|
linear-cli d create "RFC" -p PROJECT_ID --id-only
|
||
|
|
|
||
|
|
# Update document
|
||
|
|
linear-cli d update DOC_ID --title "New Title"
|
||
|
|
linear-cli d update DOC_ID --content "New content"
|
||
|
|
```
|
||
|
|
|
||
|
|
## Flags
|
||
|
|
|
||
|
|
| Flag | Purpose |
|
||
|
|
|------|---------|
|
||
|
|
| `-p PROJECT` | Project ID |
|
||
|
|
| `--id-only` | Return ID only |
|
||
|
|
| `--output json` | JSON output |
|