@krodak/clickup-cli 1.43.0 → 1.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude-plugin/plugin.json +1 -1
- package/README.md +1 -0
- package/dist/chunk-ISEGUZ6H.js +324 -0
- package/dist/index.js +1312 -83
- package/dist/writer-EYKGCPNB.js +17 -0
- package/package.json +1 -1
- package/skills/clickup-cli/SKILL.md +22 -4
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import {
|
|
3
|
+
readBundleData,
|
|
4
|
+
renderBundleMarkdown,
|
|
5
|
+
safeAttachmentFilename,
|
|
6
|
+
taskDir,
|
|
7
|
+
writeBundleData,
|
|
8
|
+
writeTaskBundle
|
|
9
|
+
} from "./chunk-ISEGUZ6H.js";
|
|
10
|
+
export {
|
|
11
|
+
readBundleData,
|
|
12
|
+
renderBundleMarkdown,
|
|
13
|
+
safeAttachmentFilename,
|
|
14
|
+
taskDir,
|
|
15
|
+
writeBundleData,
|
|
16
|
+
writeTaskBundle
|
|
17
|
+
};
|
package/package.json
CHANGED
|
@@ -3,11 +3,11 @@ name: clickup
|
|
|
3
3
|
description: 'Use when managing ClickUp tasks, sprints, or comments via the `cup` CLI tool. Triggers: task queries, status updates, sprint tracking, creating subtasks, posting comments, threaded replies, standup summaries, searching tasks, checking overdue items, assigning tasks, listing spaces and lists, opening tasks in browser, checking auth or config, setting custom fields, deleting tasks, managing tags, managing checklists, editing comments, task links, time tracking, attachments, file uploads, listing members, listing fields, duplicating tasks, bulk operations, goals, key results, saved filters, favorites.'
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
# ClickUp CLI (`cup`) - skill version 1.
|
|
6
|
+
# ClickUp CLI (`cup`) - skill version 1.45.0
|
|
7
7
|
|
|
8
8
|
Reference for AI agents using the `cup` CLI tool. Covers task management, sprint tracking, comments, time tracking, custom fields, goals, docs, and project workflows.
|
|
9
9
|
|
|
10
|
-
> **Version check:** Run `cup --version`. If your installed version is older than 1.
|
|
10
|
+
> **Version check:** Run `cup --version`. If your installed version is older than 1.45.0, update with `npm install -g @krodak/clickup-cli` and refresh this skill with `cup skill`.
|
|
11
11
|
|
|
12
12
|
## Install & Configure
|
|
13
13
|
|
|
@@ -158,6 +158,7 @@ All commands support `--help` for full flag details. All commands support `--jso
|
|
|
158
158
|
| `cup chat followers <channelId>` | List channel followers |
|
|
159
159
|
| `cup chat replies <messageId>` | List message replies |
|
|
160
160
|
| `cup chat reactions <messageId>` | List reactions on a message |
|
|
161
|
+
| `cup export user\|team\|roadmap\|initiatives\|docs\|all ... [--out dir] [--dry-run] [--item-id n] [--yes]` | Export tasks/docs to a local archive (lossless JSON + markdown). See Export below |
|
|
161
162
|
|
|
162
163
|
### Write
|
|
163
164
|
|
|
@@ -210,8 +211,8 @@ All commands support `--help` for full flag details. All commands support `--jso
|
|
|
210
211
|
| `cup key-result-update <keyResultId> [--progress n] [--note text]` | Update key result |
|
|
211
212
|
| `cup key-result-delete <keyResultId>` | Delete key result |
|
|
212
213
|
| `cup doc-create <title> [-c content]` | Create a doc (root page is named after the title; `-c` writes its markdown content) |
|
|
213
|
-
| `cup doc-page-create <docId> <name> [-c content] [--parent-page pageId]`
|
|
214
|
-
| `cup doc-page-edit <docId> <pageId> [--name text] [-c content]`
|
|
214
|
+
| `cup doc-page-create <docId> <name> [-c content\|--content-file path] [--parent-page pageId]` | Create doc page (`--content-file` reads markdown from a file or `-` for stdin) |
|
|
215
|
+
| `cup doc-page-edit <docId> <pageId> [--name text] [-c content\|--content-file path]` | Edit doc page (`--content-file` reads markdown from a file or `-` for stdin) |
|
|
215
216
|
| `cup doc-delete <docId>` | **Not supported** — ClickUp has no delete-Doc API (HTTP 405). Fails fast; delete Docs in the UI. Use `cup doc-page-delete` for a single page |
|
|
216
217
|
| `cup doc-page-delete <docId> <pageId>` | Delete doc page |
|
|
217
218
|
| `cup space-create <name>` | Create a space |
|
|
@@ -427,6 +428,23 @@ cup doc-page-create <docId> "Section" --parent-page <pageId>
|
|
|
427
428
|
cup doc-page-edit <docId> <pageId> -c "# Updated"
|
|
428
429
|
```
|
|
429
430
|
|
|
431
|
+
### Export (knowledge transfer / off-boarding)
|
|
432
|
+
|
|
433
|
+
Every task stored once (`tasks/<id>/task.json` + `task.md` + comments + attachments); each scope adds an index. Slices compose into one `--out` dir; shared tasks are fetched once. Re-runs skip what is already there.
|
|
434
|
+
|
|
435
|
+
```bash
|
|
436
|
+
cup export user me --out ./archive # my tasks, incl. closed + archived
|
|
437
|
+
cup export team "Kayenta" --out ./archive # every list in a space
|
|
438
|
+
cup export roadmap <listId> --item-id 1004 --out ./archive # initiatives grouped with subtask trees
|
|
439
|
+
cup export docs --out ./archive # every doc as markdown page trees
|
|
440
|
+
cup export all --dry-run # plan: counts, estimated time
|
|
441
|
+
cup export all --yes --out ./archive # whole workspace (long-running; confirms)
|
|
442
|
+
```
|
|
443
|
+
|
|
444
|
+
- `--item-id` is the initiative `custom_item_id` (team convention; `cup task-types` lists them).
|
|
445
|
+
- `all` refuses to run non-interactively without `--yes`; always `--dry-run` first to see the estimate.
|
|
446
|
+
- Whiteboards, dashboards, automations have no API: export those from the UI by hand.
|
|
447
|
+
|
|
430
448
|
### Workspace structure
|
|
431
449
|
|
|
432
450
|
```bash
|