dodopayments-cli 3.0.2 → 3.1.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/README.md +16 -14
- package/dist/index.js +113 -110
- package/package.json +5 -4
- package/scripts/build.ts +1 -2
package/README.md
CHANGED
|
@@ -37,7 +37,7 @@ Manage your [Dodo Payments](https://dodopayments.com/) resources, test webhooks,
|
|
|
37
37
|
|
|
38
38
|
- **Interactive TUI** — launch `dodo` with no arguments to open the full interactive interface with command palette, history, and live notifications.
|
|
39
39
|
- **AI assistant built in** — ask questions or take actions in plain English with `/ai`. No extra setup, runs `dodopayments-mcp` locally.
|
|
40
|
-
- **
|
|
40
|
+
- **Encrypted at rest** — API keys are stored in `~/.dodopayments/config.json`, AES-256-GCM encrypted with a machine-derived key. No plaintext credentials on disk.
|
|
41
41
|
- **Auto update** — the CLI checks for new versions and notifies you in-app. Run `/update` to upgrade in place.
|
|
42
42
|
- **Webhook tooling** — listen for live webhooks or trigger payloads offline for local development.
|
|
43
43
|
|
|
@@ -103,9 +103,9 @@ The login flow will:
|
|
|
103
103
|
1. Open your browser to the Dodo Payments API Keys page.
|
|
104
104
|
2. Prompt you to paste your API Key.
|
|
105
105
|
3. Ask you to select an environment — **Test Mode** or **Live Mode**.
|
|
106
|
-
4. Store the credentials
|
|
106
|
+
4. Store the credentials encrypted at `~/.dodopayments/config.json` (AES-256-GCM, machine-bound key).
|
|
107
107
|
|
|
108
|
-
> **
|
|
108
|
+
> **Upgrading from v3.0.x?** Your previous keychain-stored credentials won't carry over — just run `dodo login` once to re-authenticate.
|
|
109
109
|
|
|
110
110
|
### Switching modes / logging out
|
|
111
111
|
|
|
@@ -151,11 +151,11 @@ For example:
|
|
|
151
151
|
|
|
152
152
|
```bash
|
|
153
153
|
dodo payments list 1
|
|
154
|
-
dodo customers
|
|
155
|
-
dodo wh trigger
|
|
154
|
+
dodo customers list
|
|
155
|
+
dodo wh trigger payment.success http://localhost:3000/webhook
|
|
156
156
|
```
|
|
157
157
|
|
|
158
|
-
The reference tables below show every command. In the TUI, prefix them with `/`; in direct mode, drop the `/`.
|
|
158
|
+
The reference tables below show every command. In the TUI, prefix them with `/`; in direct mode, drop the `/`. Commands marked `(TUI only)` are interactive wizards and only work inside the TUI.
|
|
159
159
|
|
|
160
160
|
---
|
|
161
161
|
|
|
@@ -198,16 +198,16 @@ The assistant respects your active environment (Test / Live).
|
|
|
198
198
|
| Command | Description |
|
|
199
199
|
| --- | --- |
|
|
200
200
|
| `/customers list <page>` | List customers |
|
|
201
|
-
| `/customers create` | Create a new customer |
|
|
202
|
-
| `/customers update <id>` | Update an existing customer |
|
|
201
|
+
| `/customers create` | Create a new customer (TUI only) |
|
|
202
|
+
| `/customers update <id>` | Update an existing customer (TUI only) |
|
|
203
203
|
|
|
204
204
|
### Discounts
|
|
205
205
|
|
|
206
206
|
| Command | Description |
|
|
207
207
|
| --- | --- |
|
|
208
208
|
| `/discounts list <page>` | List discounts |
|
|
209
|
-
| `/discounts create` | Create a new percentage-based discount |
|
|
210
|
-
| `/discounts delete <id>` | Remove a discount by ID |
|
|
209
|
+
| `/discounts create` | Create a new percentage-based discount (TUI only) |
|
|
210
|
+
| `/discounts delete <id>` | Remove a discount by ID (TUI only) |
|
|
211
211
|
|
|
212
212
|
### Licenses
|
|
213
213
|
|
|
@@ -234,7 +234,7 @@ The assistant respects your active environment (Test / Live).
|
|
|
234
234
|
|
|
235
235
|
| Command | Description |
|
|
236
236
|
| --- | --- |
|
|
237
|
-
| `/checkout new` | Interactively create a hosted checkout session and get a payment link |
|
|
237
|
+
| `/checkout new` | Interactively create a hosted checkout session and get a payment link (TUI only) |
|
|
238
238
|
|
|
239
239
|
### Webhooks
|
|
240
240
|
|
|
@@ -242,10 +242,12 @@ Manage and test webhooks directly from the CLI.
|
|
|
242
242
|
|
|
243
243
|
| Command | Description |
|
|
244
244
|
| --- | --- |
|
|
245
|
-
| `/wh listen
|
|
246
|
-
| `/wh trigger
|
|
245
|
+
| `/wh listen <url>` | Listen for webhooks in real time and forward them to `<url>` |
|
|
246
|
+
| `/wh trigger <event> <url>` | Trigger a test webhook event offline — even while logged out |
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
In the TUI, omitting the args (`/wh listen` or `/wh trigger`) opens an interactive wizard. In direct mode (`dodo wh …`), both arguments are required.
|
|
249
|
+
|
|
250
|
+
The interactive `/wh trigger` flow guides you through:
|
|
249
251
|
|
|
250
252
|
1. Setting a destination **endpoint URL**
|
|
251
253
|
2. Selecting a specific **event** to trigger
|