Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/).
## [Unreleased]

### Added
- `planecli attachment get` (aliases `download`, `dl`) downloads work item attachments: `get ISSUE [SELECTOR] [--all] [--dir DIR | -o FILE] [--force] [--json]`. SELECTOR is an attachment id or exact file name; a name shared by several attachments needs an id or `--all`, which saves every match with repeated names suffixed (`image-2.png`). Files stream to disk through the presigned storage redirect, and existing files are not overwritten without `--force`
- `planecli intake` command group: `ls`, `create`, `accept`, `decline`, `delete`, `enabled` for project intake queues. Mutations take the work item UUID shown in the `Issue ID` column of `intake ls`. `accept`/`decline` require the project Admin role (the API silently ignores the change for lower roles, so the CLI verifies it and fails loudly). `delete` also permanently deletes the underlying work item for any status other than `accepted`

## [0.5.1] - 2026-07-03
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The main differentiator is **intelligent fuzzy search**: reference any resource
- **Documents**: Create, read, update, and delete project documents
- **Intake**: Manage a project's intake queue — list, create, triage (accept/decline), and delete items
- **Comments**: Add, update, and delete comments on work items
- **Attachments**: Upload, list, and download work item file attachments
- **Users**: List workspace members and identify the authenticated user
- **Fuzzy Search**: Intelligent resource resolution — `--project "Front"` finds "Frontend"
- **Dual Output**: Rich tables (default) or JSON with `--json` for scripting
Expand Down Expand Up @@ -261,6 +262,24 @@ planecli comment update <comment-id> --issue ABC-123 --body "Updated comment"
planecli comment delete <comment-id> --issue ABC-123
```

### Attachments

```bash
# List a work item's attachments
planecli attachment ls ABC-123

# Upload a file (asks before adding a second file with the same name; --force skips the check)
planecli attachment attach ABC-123 -f ./screenshot.png

# Download: the only attachment, one by id or exact file name, or all of them
planecli attachment get ABC-123
planecli attachment get ABC-123 3f2a9c1e-... # by id
planecli attachment get ABC-123 report.pdf -o ~/report.pdf
planecli attachment get ABC-123 --all -d ./downloads # repeated names saved as name-2.ext, ...
```

A file name shared by several attachments (pasted screenshots are all `image.png`) needs an id, or `--all` to save every match. Existing files in `--dir` are never overwritten unless `--force` is given; `--json` prints the saved paths.

### Users

```bash
Expand Down Expand Up @@ -288,6 +307,7 @@ planecli --no-cache wi ls -p "Frontend"
| `planecli work-item` | `wi`, `issues`, `issue` |
| `planecli project` | `projects` |
| `planecli comment` | `comments` |
| `planecli attachment` | `attachments` |
| `planecli document` | `documents`, `doc`, `docs` |
| `planecli users` | `user` |
| `planecli module` | `modules` |
Expand Down
4 changes: 4 additions & 0 deletions skills/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,10 @@ planecli doc create --title "Spec" --content "## Details..." -p "Project" --json
# Comments
planecli comment ls ABC-123 --json
planecli comment create ABC-123 --body "Fixed in PR #456" --json

# Attachments (get saves to disk; a shared name like image.png needs an id or --all)
planecli attachment ls ABC-123 --json
planecli attachment get ABC-123 --all -d ./downloads --json
```

## Gotchas
Expand Down
21 changes: 21 additions & 0 deletions skills/references/command-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
- [States](#states)
- [Documents](#documents)
- [Comments](#comments)
- [Attachments](#attachments)
- [Intake](#intake)
- [Users](#users)
- [Cache](#cache)
Expand All @@ -34,6 +35,7 @@ Environment variable `PLANECLI_NO_CACHE=1` disables cache globally.
| `project` | `projects` |
| `document` | `doc`, `docs`, `documents` |
| `comment` | `comments` |
| `attachment` | `attachments` |
| `module` | `modules` |
| `label` | `labels` |
| `state` | `states` |
Expand Down Expand Up @@ -294,6 +296,25 @@ oldest → newest — not the first N chronologically. A limit of `0` or a negat
value returns no comments (consistent with the `[:limit]` semantics used elsewhere,
where `0` means "none").

## Attachments

Command group: `planecli attachment` (alias: `attachments`)

```
planecli attachment ls ISSUE [--project/-p PROJECT]
planecli attachment attach ISSUE -f FILE [--force] [--project/-p PROJECT]
planecli attachment get ISSUE [SELECTOR] [--all] [--dir/-d DIR | --output/-o FILE] [--force] [--project/-p PROJECT]
```

`get` (aliases `download`, `dl`) saves files to disk and never prints their content.
SELECTOR is an attachment id or exact file name; it may be omitted when the work item
has one attachment or `--all` is given. A name shared by several attachments
(screenshots are all `image.png`) fails with the list of ids unless `--all` is given,
which saves every match as `image.png`, `image-2.png`, ... Existing files in `--dir`
(default: the current directory) are sidestepped the same way unless `--force`;
`-o` saves exactly one attachment and overwrites. `--json` prints
`[{id, name, type, size, path}]` with absolute paths.

## Intake

Command group: `planecli intake` (no alias)
Expand Down
2 changes: 2 additions & 0 deletions src/planecli/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
)

# Import and register sub-apps
from planecli.commands.attachments import attachment_app # noqa: E402
from planecli.commands.cache_cmd import cache_app # noqa: E402
from planecli.commands.comments import comment_app # noqa: E402
from planecli.commands.cycles import cycle_app # noqa: E402
Expand All @@ -32,6 +33,7 @@

app.command(project_app)
app.command(wi_app)
app.command(attachment_app)
app.command(comment_app)
app.command(doc_app)
app.command(intake_app)
Expand Down
Loading