@krodak/clickup-cli 1.5.2 → 1.6.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krodak/clickup-cli",
3
- "version": "1.5.2",
3
+ "version": "1.6.1",
4
4
  "description": "ClickUp CLI for AI agents and humans",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -9,9 +9,11 @@ Reference for AI agents using the `cup` CLI tool. Covers task management, sprint
9
9
 
10
10
  ## Setup
11
11
 
12
- Config at `~/.config/cup/config.json` with `apiToken` and `teamId`. Optional: `sprintFolderId` to pin sprint detection to a specific folder. Run `cup init` to set up interactively.
12
+ Config at `~/.config/cup/config.json` with named profiles. Each profile has `apiToken` and `teamId`. Optional: `sprintFolderId` to pin sprint detection to a specific folder. Run `cup init` to set up interactively.
13
13
 
14
- Environment variables `CU_API_TOKEN` and `CU_TEAM_ID` override config file when both are set.
14
+ Multiple profiles supported - use `cup profile add <name>` to create, `cup profile use <name>` to switch, or `-p <name>` flag for one-off overrides.
15
+
16
+ Environment variables `CU_API_TOKEN` and `CU_TEAM_ID` override config file when both are set. `CU_PROFILE` selects a profile (overridden by `-p` flag).
15
17
 
16
18
  ## Output Modes
17
19
 
@@ -109,9 +111,20 @@ All commands support `--help` for full flag details. All commands support `--jso
109
111
  | `cup tag-create <spaceId> <name> [--fg color] [--bg color]` | Create space tag |
110
112
  | `cup tag-update <spaceId> <tagName> --name <newName> [--fg c] [--bg c]` | Update space tag |
111
113
  | `cup tag-delete <spaceId> <name>` | Delete space tag |
114
+ | `cup profile list [--json]` | List all profiles |
115
+ | `cup profile add <name>` | Add a new profile (interactive) |
116
+ | `cup profile remove <name>` | Remove a profile |
117
+ | `cup profile use <name>` | Set the default profile |
112
118
  | `cup config get <key>` / `set <key> <value>` / `path` | Manage config |
113
119
  | `cup completion <shell>` | Shell completions (bash/zsh/fish) |
114
120
 
121
+ ## Global Flags
122
+
123
+ | Flag | Description |
124
+ | ------------------- | --------------------------------------------- |
125
+ | `-p, --profile <n>` | Use a specific profile for this command |
126
+ | `--json` | Force JSON output (available on all commands) |
127
+
115
128
  ## Flags & Conventions
116
129
 
117
130
  | Topic | Detail |
@@ -218,6 +231,15 @@ cup key-result-create g123 "API coverage" --type percentage --target 80
218
231
  cup key-result-update kr456 --progress 60 --note "On track"
219
232
  ```
220
233
 
234
+ ### Profiles
235
+
236
+ ```bash
237
+ cup profile add personal # add a profile (interactive)
238
+ cup profile list # list all profiles
239
+ cup profile use personal # switch default
240
+ cup tasks -p work # use specific profile for one command
241
+ ```
242
+
221
243
  ### Standup
222
244
 
223
245
  ```bash