claude-trello-cli 0.1.1 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +215 -0
  2. package/package.json +13 -2
package/README.md ADDED
@@ -0,0 +1,215 @@
1
+ # claude-trello-cli
2
+
3
+ Point [Claude Code](https://docs.anthropic.com/en/docs/claude-code) at a Trello board and work through tasks from your terminal. Claude reads your cards and checklists, makes the code changes, and checks items off on Trello as it goes.
4
+
5
+ ## Quick Start
6
+
7
+ ```bash
8
+ npx claude-trello-cli login
9
+ cd ~/my-project
10
+ npx claude-trello-cli run
11
+ ```
12
+
13
+ That's it. No config files, no setup scripts — just sign in and go.
14
+
15
+ ## What It Does
16
+
17
+ 1. You sign in with your [Claude Trello Bridge](https://github.com/JoshJAL/claude-trello) account
18
+ 2. You pick a Trello board from your connected boards
19
+ 3. The CLI shows you all active cards and their checklist items
20
+ 4. Claude Code launches locally in your working directory
21
+ 5. As Claude completes each task, the checklist item gets checked off on Trello
22
+ 6. When all items on a card are done, the card moves to your Done list
23
+
24
+ ```
25
+ $ npx claude-trello-cli run
26
+
27
+ ? Select a board:
28
+ ❯ My Project Board
29
+ Side Project
30
+
31
+ My Project Board
32
+ ─────────────────
33
+
34
+ To Do (3 cards):
35
+ • Fix authentication bug [0/4]
36
+ • Add dark mode support [0/3]
37
+ • Update API docs [0/2]
38
+
39
+ In Progress (1 card):
40
+ • Refactor API layer [1/5]
41
+
42
+ Done (2 cards) [skipped]
43
+
44
+ Working directory: /home/you/my-project
45
+
46
+ ? Start Claude Code session? (4 active cards) Yes
47
+
48
+ ✓ Credentials loaded
49
+ Starting Claude Code session...
50
+
51
+ Session initialized (model: claude-sonnet-4-20250514)
52
+
53
+ I'll start by working on "Fix authentication bug"...
54
+ [Read]
55
+ [Edit]
56
+ ✓ Checked item on Trello
57
+ ✓ Checked item on Trello
58
+ ✓ Moved card to Done
59
+ Moving on to "Add dark mode support"...
60
+ ```
61
+
62
+ ## Install
63
+
64
+ **Run instantly** with npx (no install needed):
65
+
66
+ ```bash
67
+ npx claude-trello-cli login
68
+ ```
69
+
70
+ **Or install globally** for a shorter command:
71
+
72
+ ```bash
73
+ npm install -g claude-trello-cli
74
+
75
+ claude-trello login
76
+ claude-trello run
77
+ ```
78
+
79
+ ## Prerequisites
80
+
81
+ - **A Claude Trello Bridge account** — sign up at the web app, connect your Trello account, and save your Anthropic API key
82
+ - **Node.js 20+**
83
+ - **The web app running** (locally via `pnpm dev` or deployed) — the CLI authenticates against it
84
+
85
+ ## Commands
86
+
87
+ ### `claude-trello-cli login`
88
+
89
+ Sign in with your email and password. Your session is stored at `~/.config/claude-trello/config.json` with restricted file permissions.
90
+
91
+ ```bash
92
+ npx claude-trello-cli login
93
+ npx claude-trello-cli login --server https://your-app.vercel.app
94
+ ```
95
+
96
+ | Flag | Description |
97
+ |------|-------------|
98
+ | `-s, --server <url>` | Server URL (default: `http://localhost:3000`) |
99
+
100
+ ### `claude-trello-cli run`
101
+
102
+ The main command. Select a board interactively, review the cards, and launch a Claude Code session.
103
+
104
+ ```bash
105
+ npx claude-trello-cli run
106
+ npx claude-trello-cli run --board 60d5e2a3f1a2b40017c3d4e5
107
+ npx claude-trello-cli run --dir ~/projects/my-api
108
+ ```
109
+
110
+ | Flag | Description |
111
+ |------|-------------|
112
+ | `-b, --board <id>` | Board ID — skip interactive selection |
113
+ | `-d, --dir <path>` | Working directory (default: current directory) |
114
+
115
+ ### `claude-trello-cli boards`
116
+
117
+ List all your Trello boards with their IDs. Useful for grabbing a board ID to pass to `run --board`.
118
+
119
+ ```bash
120
+ npx claude-trello-cli boards
121
+
122
+ # Your Trello Boards (3):
123
+ #
124
+ # My Project Board 60d5e2a3f1a2b40017c3d4e5
125
+ # Side Project 507f1f77bcf86cd799439011
126
+ # Personal Tasks 612a3b4c5d6e7f8a9b0c1d2e
127
+ ```
128
+
129
+ ### `claude-trello-cli status`
130
+
131
+ Check your auth and integration status.
132
+
133
+ ```bash
134
+ npx claude-trello-cli status
135
+
136
+ # Claude Trello Bridge — Status
137
+ #
138
+ # Server: http://localhost:3000
139
+ # Auth: Signed in as Your Name
140
+ # Trello: Connected
141
+ # API Key: Configured
142
+ #
143
+ # Ready to go! Run `claude-trello run` to start.
144
+ ```
145
+
146
+ ### `claude-trello-cli logout`
147
+
148
+ Clear your stored session.
149
+
150
+ ```bash
151
+ npx claude-trello-cli logout
152
+ ```
153
+
154
+ ## How It Works
155
+
156
+ ```
157
+ Your Terminal Web App Server Trello API
158
+ │ │ │
159
+ │ 1. login (email/password) │ │
160
+ │──────────────────────────────>│ │
161
+ │ session cookie │ │
162
+ │<──────────────────────────────│ │
163
+ │ │ │
164
+ │ 2. run → fetch boards │ GET /members/me/boards │
165
+ │──────────────────────────────>│─────────────────────────>│
166
+ │ board list │ boards │
167
+ │<──────────────────────────────│<─────────────────────────│
168
+ │ │ │
169
+ │ 3. fetch cards + credentials │ │
170
+ │──────────────────────────────>│ │
171
+ │ cards, API key, token │ │
172
+ │<──────────────────────────────│ │
173
+ │ │ │
174
+ │ 4. Launch Claude Code locally │
175
+ │ ┌─────────────────────┐ │
176
+ │ │ Claude reads/edits │ │
177
+ │ │ your codebase │ │
178
+ │ │ │ 5. check_trello_item │
179
+ │ │ Task complete ──────│────────────────────────────────>│
180
+ │ │ │ 6. move_card_to_done │
181
+ │ │ Card complete ──────│────────────────────────────────>│
182
+ │ └─────────────────────┘ │
183
+ ```
184
+
185
+ 1. **Authenticate** — Signs in to the web app, stores a session cookie locally
186
+ 2. **Fetch board data** — Gets your boards, cards, and checklists via the web app's API
187
+ 3. **Load credentials** — Your encrypted Anthropic API key is decrypted server-side and sent once for the session
188
+ 4. **Run Claude Code locally** — Launches in your working directory with full codebase access
189
+ 5. **Update Trello** — As Claude finishes each checklist item, it calls the Trello API directly to check it off
190
+ 6. **Move cards** — When all items on a card are done, the card moves to your Done list
191
+
192
+ ## Security
193
+
194
+ - Your **Anthropic API key is encrypted at rest** (AES-256-GCM) in the web app's database and only decrypted for the duration of a session
195
+ - The local config file is written with **restricted permissions** (`600` — owner-only read/write)
196
+ - API credentials are **held in memory only** during a session — never written to disk by the CLI
197
+ - Claude Code runs with `acceptEdits` permission mode — it can read and edit files but requires approval for shell commands
198
+
199
+ ## Troubleshooting
200
+
201
+ **"Session expired" error**
202
+ Run `npx claude-trello-cli login` again to re-authenticate.
203
+
204
+ **"Trello not connected" or "API key not configured"**
205
+ The CLI uses your web app account's integrations. Go to the web dashboard, complete onboarding (connect Trello and save your Anthropic API key), then try the CLI again.
206
+
207
+ **Can I use the CLI without the web server running?**
208
+ No — the CLI authenticates against and fetches data from the web app. You need either a local dev server or a deployed instance running.
209
+
210
+ **Claude asked me a question — what do I do?**
211
+ Sometimes Claude needs clarification. The question appears in yellow with a `>` prompt. Type your answer and press Enter — Claude will continue working.
212
+
213
+ ## License
214
+
215
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-trello-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "CLI for Claude Trello Bridge — point Claude Code at a Trello board and work through tasks from your terminal",
5
5
  "type": "module",
6
6
  "bin": {
@@ -8,7 +8,8 @@
8
8
  "claude-trello": "dist/index.js"
9
9
  },
10
10
  "files": [
11
- "dist"
11
+ "dist",
12
+ "README.md"
12
13
  ],
13
14
  "scripts": {
14
15
  "dev": "tsx src/index.ts",
@@ -24,7 +25,17 @@
24
25
  "claude-code",
25
26
  "automation"
26
27
  ],
28
+ "author": "JoshJAL",
27
29
  "license": "MIT",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "git+https://github.com/JoshJAL/claude-trello.git",
33
+ "directory": "cli"
34
+ },
35
+ "homepage": "https://github.com/JoshJAL/claude-trello/tree/main/cli#readme",
36
+ "bugs": {
37
+ "url": "https://github.com/JoshJAL/claude-trello/issues"
38
+ },
28
39
  "engines": {
29
40
  "node": ">=20"
30
41
  },