Gumroad — Printing Press CLI skill

Gumroad's seller API as an agent-ready CLI and MCP server.

by bheemreddy181·Apache-2.0 license·GitHub ↗

★ 2,037 Stars on the repo·Checked

npx degit mvanhorn/printing-press-library/library/commerce/gumroad#main ~/.claude/skills/gumroad

SKILL.md · 11.6 KB · names 1 other file — download is this file only · installs the whole folder to ~/.claude/skills/gumroad

Files of Gumroad — Printing Press CLI

Files 1 file
Show the full text287 lines

Gumroad — Printing Press CLI

Prerequisites: Install the CLI

This skill drives the gumroad-pp-cli binary. You must verify the CLI is installed before invoking any command from this skill. If it is missing, install it first:

  1. Install via the Printing Press installer. It defaults binaries to $HOME/.local/bin on macOS/Linux and %LOCALAPPDATA%\Programs\PrintingPress\bin on Windows:
    npx -y @mvanhorn/printing-press-library install gumroad --cli-only
    
  2. Verify: gumroad-pp-cli --version
  3. Ensure the reported install directory is on $PATH for the agent/runtime that will invoke this skill.

If the npx install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):

go install github.com/mvanhorn/printing-press-library/library/commerce/gumroad/cmd/gumroad-pp-cli@latest

If --version reports "command not found" after install, the runtime cannot see the binary directory on $PATH. Do not proceed with skill commands until verification succeeds.

When to Use This CLI

Use this skill when the user asks to inspect or operate a Gumroad seller account, especially products, sales, subscribers, payouts, licenses, offer codes, or tax data. Prefer sync/search/analytics for broad questions and direct endpoint commands for a specific object or mutation.

Unique Capabilities

These capabilities aren't available in any other tool for this API.

Local seller intelligence
  • sync --resources products,sales,subscribers,payouts --latest-only --json — Refresh a local SQLite snapshot of the seller-facing Gumroad resources that agents inspect most often.

    Use this before research or reporting tasks so later searches and analytics are grounded in one consistent seller snapshot.

    gumroad-pp-cli sync --resources products,sales,subscribers,payouts --latest-only --json
    
  • search — Search locally synced products, sales, subscribers, payouts, and tax records through one command.

    Use this when the user remembers a buyer, product, license, or payout clue but not the exact Gumroad object ID.

    gumroad-pp-cli search "annual plan" --data-source local --json --limit 20
    
  • analytics — Group and count synced Gumroad records locally for fast summaries without additional API traffic.

    Use this for lightweight revenue, subscriber, product, and payout triage after a sync.

    gumroad-pp-cli analytics --type sales --group-by product_id --limit 10 --json
    
Operational monitoring
  • tail — Poll selected Gumroad resources and emit NDJSON changes for scripts or agent monitors.

    Use this for one-off checks after a launch, refund, payout, or product update.

    gumroad-pp-cli tail --resource sales --interval 30s --json
    

Command Reference

earnings — Manage earnings

  • gumroad-pp-cli earnings — Retrieve an annual earnings breakdown for the authenticated user. Requires view_tax_data scope.

files — Manage files

  • gumroad-pp-cli files abort — Cancel a multipart upload started by /files/presign. Requires edit_products scope.
  • gumroad-pp-cli files complete — Finalize a multipart upload started by /files/presign. Requires edit_products scope.
  • gumroad-pp-cli files presign — Start a multipart upload and return presigned URLs for each part. Requires edit_products scope.

licenses — Manage licenses

  • gumroad-pp-cli licenses decrement-uses-count — Decrement the uses count of a license. Requires edit_products scope.
  • gumroad-pp-cli licenses disable — Disable a license. Requires edit_products scope.
  • gumroad-pp-cli licenses enable — Enable a license. Requires edit_products scope.
  • gumroad-pp-cli licenses rotate — Rotate a license key. The old key will no longer be valid. Requires edit_products scope.
  • gumroad-pp-cli licenses verify — Verify a license key.

payouts — Manage payouts

  • gumroad-pp-cli payouts get — Retrieve details of a payout. Requires view_payouts scope.
  • gumroad-pp-cli payouts get-upcoming — Retrieve upcoming payouts. Requires view_payouts scope.
  • gumroad-pp-cli payouts list — Retrieve payouts for the authenticated user. Requires view_payouts scope.

products — Manage products

  • gumroad-pp-cli products create — Create a new product as a draft. Requires edit_products or account scope.
  • gumroad-pp-cli products delete — Permanently delete a product.
  • gumroad-pp-cli products get — Retrieve details of a product.
  • gumroad-pp-cli products list — Retrieve all existing products for the authenticated user.
  • gumroad-pp-cli products update — Update an existing product. Collection fields such as files, tags, and rich_content replace the full collection.

resource-subscriptions — Manage resource subscriptions

  • gumroad-pp-cli resource-subscriptions create — Subscribe to a resource webhook. Requires view_sales scope.
  • gumroad-pp-cli resource-subscriptions delete — Unsubscribe from a resource.
  • gumroad-pp-cli resource-subscriptions list — Show active subscriptions for the input resource. Requires view_sales scope.

sales — Manage sales

  • gumroad-pp-cli sales get — Retrieve details of a sale. Requires view_sales scope.
  • gumroad-pp-cli sales list — Retrieve successful sales by the authenticated user. Requires view_sales scope.

subscribers — Manage subscribers

  • gumroad-pp-cli subscribers <id> — Retrieve details of a subscriber. Requires view_sales scope.

tax-forms — Manage tax forms

  • gumroad-pp-cli tax-forms — Retrieve 1099 tax forms for the authenticated user. Requires view_tax_data scope.

user — Manage user

  • gumroad-pp-cli user — Retrieve the authenticated user's data.
Finding the right command

When you know what you want to do but not which command does it, ask the CLI directly:

gumroad-pp-cli which "<capability in your own words>"

which resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code 0 means at least one match; exit code 2 means no confident match — fall back to --help or use a narrower query.

Recipes

List live products
gumroad-pp-cli products list --agent

Returns compact JSON for the authenticated seller's products.

Find a buyer or license locally
gumroad-pp-cli search "customer query" --data-source local --json

Searches previously synced seller data without making additional API calls.

Review payout history
gumroad-pp-cli payouts list --after 2026-01-01 --agent

Reads payout records with pagination metadata when the token has view_payouts scope.

Auth Setup

Create a Gumroad OAuth application, authorize it with the scopes needed for your workflow, and provide the resulting access token as GUMROAD_ACCESS_TOKEN. The MCP bundle exposes this as a sensitive user configuration value.

Run gumroad-pp-cli doctor to verify setup.

Agent Mode

Add --agent to any command. Expands to: --json --compact --no-input --no-color --yes.

  • Pipeable — JSON on stdout, errors on stderr

  • Filterable — --select keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:

    gumroad-pp-cli earnings --year 42 --agent --select id,name,status
    
  • Previewable — --dry-run shows the request without sending

  • Offline-friendly — sync/search commands can use the local SQLite store when available

  • Non-interactive — never prompts, every input is a flag

  • Explicit retries — use --idempotent only when an already-existing create should count as success, and --ignore-missing only when a missing delete target should count as success

Response envelope

Commands that read from the local store or the API wrap output in a provenance envelope:

{
  "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
  "results": <data>
}

Parse .results for data and .meta.source to know whether it's live or local. A human-readable N results (live) summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.

Agent Feedback

When you (or the agent) notice something off about this CLI, record it:

gumroad-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
gumroad-pp-cli feedback --stdin < notes.txt
gumroad-pp-cli feedback list --json --limit 10

Entries are stored locally at ~/.gumroad-pp-cli/feedback.jsonl. They are never POSTed unless GUMROAD_FEEDBACK_ENDPOINT is set AND either --send is passed or GUMROAD_FEEDBACK_AUTO_SEND=true. Default behavior is local-only.

Write what surprised you, not a bug report. Short, specific, one line: that is the part that compounds.

Output Delivery

Every command accepts --deliver <sink>. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:

Sink Effect
stdout Default; write to stdout only
file:<path> Atomically write output to <path> (tmp + rename)
webhook:<url> POST the output body to the URL (application/json or application/x-ndjson when --compact)

Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.

Named Profiles

A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.

gumroad-pp-cli profile save briefing --json
gumroad-pp-cli --profile briefing earnings --year 42
gumroad-pp-cli profile list --json
gumroad-pp-cli profile show briefing
gumroad-pp-cli profile delete briefing --yes

Explicit flags always win over profile values; profile values win over defaults. agent-context lists all available profiles under available_profiles so introspecting agents discover them at runtime.

Exit Codes

Code Meaning
0 Success
2 Usage error (wrong arguments)
3 Resource not found
4 Authentication required
5 API error (upstream issue)
7 Rate limited (wait and retry)
10 Config error

Argument Parsing

Parse $ARGUMENTS:

  1. Empty, help, or --help → show gumroad-pp-cli --help output
  2. Starts with install → ends with mcp → MCP installation; otherwise → see Prerequisites above
  3. Anything else → Direct Use (execute as CLI command with --agent)

MCP Server Installation

Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:

claude mcp add gumroad-pp-mcp -- gumroad-pp-mcp

Verify: claude mcp list

Direct Use

  1. Check if installed: which gumroad-pp-cli If not found, offer to install (see Prerequisites at the top of this skill).
  2. Match the user query to the best command from the Unique Capabilities and Command Reference above.
  3. Execute with the --agent flag:
    gumroad-pp-cli <command> [subcommand] [args] --agent
    
  4. If ambiguous, drill into subcommand help: gumroad-pp-cli <command> --help.
1---
2name: pp-gumroad
3description: "Gumroad's seller API as an agent-ready CLI and MCP server. Trigger phrases: `gumroad products`, `gumroad sales`, `gumroad payouts`, `gumroad subscribers`, `verify gumroad license`, `gumroad offer codes`."
4author: "Bheem Reddy"
5license: "Apache-2.0"
6argument-hint: "<command> [args] | install cli|mcp"
7allowed-tools: "Read Bash"
8metadata:
9 openclaw:
10 requires:
11 bins:
12 - gumroad-pp-cli
13---
14 
15# Gumroad — Printing Press CLI
16 
17## Prerequisites: Install the CLI
18 
19This skill drives the `gumroad-pp-cli` binary. **You must verify the CLI is installed before invoking any command from this skill.** If it is missing, install it first:
20 
211. Install via the Printing Press installer. It defaults binaries to `$HOME/.local/bin` on macOS/Linux and `%LOCALAPPDATA%\Programs\PrintingPress\bin` on Windows:
22 ```bash
23 npx -y @mvanhorn/printing-press-library install gumroad --cli-only
24 ```
252. Verify: `gumroad-pp-cli --version`
263. Ensure the reported install directory is on `$PATH` for the agent/runtime that will invoke this skill.
27 
28If the `npx` install fails (no Node, offline, etc.), fall back to a direct Go install (requires Go 1.26.6 or newer):
29 
30```bash
31go install github.com/mvanhorn/printing-press-library/library/commerce/gumroad/cmd/gumroad-pp-cli@latest
32```
33 
34If `--version` reports "command not found" after install, the runtime cannot see the binary directory on `$PATH`. Do not proceed with skill commands until verification succeeds.
35 
36## When to Use This CLI
37 
38Use this skill when the user asks to inspect or operate a Gumroad seller account, especially products, sales, subscribers, payouts, licenses, offer codes, or tax data. Prefer sync/search/analytics for broad questions and direct endpoint commands for a specific object or mutation.
39 
40## Unique Capabilities
41 
42These capabilities aren't available in any other tool for this API.
43 
44### Local seller intelligence
45 
46- **`sync --resources products,sales,subscribers,payouts --latest-only --json`** — Refresh a local SQLite snapshot of the seller-facing Gumroad resources that agents inspect most often.
47 
48 _Use this before research or reporting tasks so later searches and analytics are grounded in one consistent seller snapshot._
49 
50 ```bash
51 gumroad-pp-cli sync --resources products,sales,subscribers,payouts --latest-only --json
52 ```
53- **`search`** — Search locally synced products, sales, subscribers, payouts, and tax records through one command.
54 
55 _Use this when the user remembers a buyer, product, license, or payout clue but not the exact Gumroad object ID._
56 
57 ```bash
58 gumroad-pp-cli search "annual plan" --data-source local --json --limit 20
59 ```
60- **`analytics`** — Group and count synced Gumroad records locally for fast summaries without additional API traffic.
61 
62 _Use this for lightweight revenue, subscriber, product, and payout triage after a sync._
63 
64 ```bash
65 gumroad-pp-cli analytics --type sales --group-by product_id --limit 10 --json
66 ```
67 
68### Operational monitoring
69 
70- **`tail`** — Poll selected Gumroad resources and emit NDJSON changes for scripts or agent monitors.
71 
72 _Use this for one-off checks after a launch, refund, payout, or product update._
73 
74 ```bash
75 gumroad-pp-cli tail --resource sales --interval 30s --json
76 ```
77 
78## Command Reference
79 
80**earnings** — Manage earnings
81 
82- `gumroad-pp-cli earnings` — Retrieve an annual earnings breakdown for the authenticated user. Requires view_tax_data scope.
83 
84**files** — Manage files
85 
86- `gumroad-pp-cli files abort` — Cancel a multipart upload started by /files/presign. Requires edit_products scope.
87- `gumroad-pp-cli files complete` — Finalize a multipart upload started by /files/presign. Requires edit_products scope.
88- `gumroad-pp-cli files presign` — Start a multipart upload and return presigned URLs for each part. Requires edit_products scope.
89 
90**licenses** — Manage licenses
91 
92- `gumroad-pp-cli licenses decrement-uses-count` — Decrement the uses count of a license. Requires edit_products scope.
93- `gumroad-pp-cli licenses disable` — Disable a license. Requires edit_products scope.
94- `gumroad-pp-cli licenses enable` — Enable a license. Requires edit_products scope.
95- `gumroad-pp-cli licenses rotate` — Rotate a license key. The old key will no longer be valid. Requires edit_products scope.
96- `gumroad-pp-cli licenses verify` — Verify a license key.
97 
98**payouts** — Manage payouts
99 
100- `gumroad-pp-cli payouts get` — Retrieve details of a payout. Requires view_payouts scope.
101- `gumroad-pp-cli payouts get-upcoming` — Retrieve upcoming payouts. Requires view_payouts scope.
102- `gumroad-pp-cli payouts list` — Retrieve payouts for the authenticated user. Requires view_payouts scope.
103 
104**products** — Manage products
105 
106- `gumroad-pp-cli products create` — Create a new product as a draft. Requires edit_products or account scope.
107- `gumroad-pp-cli products delete` — Permanently delete a product.
108- `gumroad-pp-cli products get` — Retrieve details of a product.
109- `gumroad-pp-cli products list` — Retrieve all existing products for the authenticated user.
110- `gumroad-pp-cli products update` — Update an existing product. Collection fields such as files, tags, and rich_content replace the full collection.
111 
112**resource-subscriptions** — Manage resource subscriptions
113 
114- `gumroad-pp-cli resource-subscriptions create` — Subscribe to a resource webhook. Requires view_sales scope.
115- `gumroad-pp-cli resource-subscriptions delete` — Unsubscribe from a resource.
116- `gumroad-pp-cli resource-subscriptions list` — Show active subscriptions for the input resource. Requires view_sales scope.
117 
118**sales** — Manage sales
119 
120- `gumroad-pp-cli sales get` — Retrieve details of a sale. Requires view_sales scope.
121- `gumroad-pp-cli sales list` — Retrieve successful sales by the authenticated user. Requires view_sales scope.
122 
123**subscribers** — Manage subscribers
124 
125- `gumroad-pp-cli subscribers <id>` — Retrieve details of a subscriber. Requires view_sales scope.
126 
127**tax-forms** — Manage tax forms
128 
129- `gumroad-pp-cli tax-forms` — Retrieve 1099 tax forms for the authenticated user. Requires view_tax_data scope.
130 
131**user** — Manage user
132 
133- `gumroad-pp-cli user` — Retrieve the authenticated user's data.
134 
135 
136### Finding the right command
137 
138When you know what you want to do but not which command does it, ask the CLI directly:
139 
140```bash
141gumroad-pp-cli which "<capability in your own words>"
142```
143 
144`which` resolves a natural-language capability query to the best matching command from this CLI's curated feature index. Exit code `0` means at least one match; exit code `2` means no confident match — fall back to `--help` or use a narrower query.
145 
146## Recipes
147 
148 
149### List live products
150 
151```bash
152gumroad-pp-cli products list --agent
153```
154 
155Returns compact JSON for the authenticated seller's products.
156 
157### Find a buyer or license locally
158 
159```bash
160gumroad-pp-cli search "customer query" --data-source local --json
161```
162 
163Searches previously synced seller data without making additional API calls.
164 
165### Review payout history
166 
167```bash
168gumroad-pp-cli payouts list --after 2026-01-01 --agent
169```
170 
171Reads payout records with pagination metadata when the token has view_payouts scope.
172 
173## Auth Setup
174 
175Create a Gumroad OAuth application, authorize it with the scopes needed for your workflow, and provide the resulting access token as GUMROAD_ACCESS_TOKEN. The MCP bundle exposes this as a sensitive user configuration value.
176 
177Run `gumroad-pp-cli doctor` to verify setup.
178 
179## Agent Mode
180 
181Add `--agent` to any command. Expands to: `--json --compact --no-input --no-color --yes`.
182 
183- **Pipeable** — JSON on stdout, errors on stderr
184- **Filterable** — `--select` keeps a subset of fields. Dotted paths descend into nested structures; arrays traverse element-wise. Critical for keeping context small on verbose APIs:
185 
186 ```bash
187 gumroad-pp-cli earnings --year 42 --agent --select id,name,status
188 ```
189- **Previewable** — `--dry-run` shows the request without sending
190- **Offline-friendly** — sync/search commands can use the local SQLite store when available
191- **Non-interactive** — never prompts, every input is a flag
192- **Explicit retries** — use `--idempotent` only when an already-existing create should count as success, and `--ignore-missing` only when a missing delete target should count as success
193 
194### Response envelope
195 
196Commands that read from the local store or the API wrap output in a provenance envelope:
197 
198```json
199{
200 "meta": {"source": "live" | "local", "synced_at": "...", "reason": "..."},
201 "results": <data>
202}
203```
204 
205Parse `.results` for data and `.meta.source` to know whether it's live or local. A human-readable `N results (live)` summary is printed to stderr only when stdout is a terminal — piped/agent consumers get pure JSON on stdout.
206 
207## Agent Feedback
208 
209When you (or the agent) notice something off about this CLI, record it:
210 
211```
212gumroad-pp-cli feedback "the --since flag is inclusive but docs say exclusive"
213gumroad-pp-cli feedback --stdin < notes.txt
214gumroad-pp-cli feedback list --json --limit 10
215```
216 
217Entries are stored locally at `~/.gumroad-pp-cli/feedback.jsonl`. They are never POSTed unless `GUMROAD_FEEDBACK_ENDPOINT` is set AND either `--send` is passed or `GUMROAD_FEEDBACK_AUTO_SEND=true`. Default behavior is local-only.
218 
219Write what *surprised* you, not a bug report. Short, specific, one line: that is the part that compounds.
220 
221## Output Delivery
222 
223Every command accepts `--deliver <sink>`. The output goes to the named sink in addition to (or instead of) stdout, so agents can route command results without hand-piping. Three sinks are supported:
224 
225| Sink | Effect |
226|------|--------|
227| `stdout` | Default; write to stdout only |
228| `file:<path>` | Atomically write output to `<path>` (tmp + rename) |
229| `webhook:<url>` | POST the output body to the URL (`application/json` or `application/x-ndjson` when `--compact`) |
230 
231Unknown schemes are refused with a structured error naming the supported set. Webhook failures return non-zero and log the URL + HTTP status on stderr.
232 
233## Named Profiles
234 
235A profile is a saved set of flag values, reused across invocations. Use it when a scheduled agent calls the same command every run with the same configuration - HeyGen's "Beacon" pattern.
236 
237```
238gumroad-pp-cli profile save briefing --json
239gumroad-pp-cli --profile briefing earnings --year 42
240gumroad-pp-cli profile list --json
241gumroad-pp-cli profile show briefing
242gumroad-pp-cli profile delete briefing --yes
243```
244 
245Explicit flags always win over profile values; profile values win over defaults. `agent-context` lists all available profiles under `available_profiles` so introspecting agents discover them at runtime.
246 
247## Exit Codes
248 
249| Code | Meaning |
250|------|---------|
251| 0 | Success |
252| 2 | Usage error (wrong arguments) |
253| 3 | Resource not found |
254| 4 | Authentication required |
255| 5 | API error (upstream issue) |
256| 7 | Rate limited (wait and retry) |
257| 10 | Config error |
258 
259## Argument Parsing
260 
261Parse `$ARGUMENTS`:
262 
2631. **Empty, `help`, or `--help`** → show `gumroad-pp-cli --help` output
2642. **Starts with `install`** → ends with `mcp` → MCP installation; otherwise → see Prerequisites above
2653. **Anything else** → Direct Use (execute as CLI command with `--agent`)
266 
267## MCP Server Installation
268 
269Install the MCP binary from this CLI's published public-library entry or pre-built release, then register it:
270 
271```bash
272claude mcp add gumroad-pp-mcp -- gumroad-pp-mcp
273```
274 
275Verify: `claude mcp list`
276 
277## Direct Use
278 
2791. Check if installed: `which gumroad-pp-cli`
280 If not found, offer to install (see Prerequisites at the top of this skill).
2812. Match the user query to the best command from the Unique Capabilities and Command Reference above.
2823. Execute with the `--agent` flag:
283 ```bash
284 gumroad-pp-cli <command> [subcommand] [args] --agent
285 ```
2864. If ambiguous, drill into subcommand help: `gumroad-pp-cli <command> --help`.
287 

Discussion

Alternatives

Also in Sponsors & membershipsSee all 328 in Content creator →