From 8e621307e23a32105287657a4371c29fccd9a65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Thu, 9 Apr 2026 23:32:41 +0200 Subject: [PATCH 1/2] fix: use -X as HTTP method flag for curl compatibility Every agent and developer expects -X from curl. Using -m caused agents to fail on their first attempt when constructing fetch commands. Co-Authored-By: Claude Opus 4.6 (1M context) --- src/commands/fetch.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/fetch.ts b/src/commands/fetch.ts index 8ad52a3..bb8c9e3 100644 --- a/src/commands/fetch.ts +++ b/src/commands/fetch.ts @@ -9,7 +9,7 @@ export function registerFetch402Command(program: Command) { "Fetch a payment-protected resource (auto-detects L402, X402, MPP)", ) .argument("", "URL to fetch") - .option("-m, --method ", "HTTP method (GET, POST, etc.)") + .option("-X, --method ", "HTTP method (GET, POST, etc.)") .option("-b, --body ", "Request body (JSON string)") .option("-H, --headers ", "Additional headers (JSON string)") .option( From b102ccbd7ce6e0c9c9b62fb9ac012eee0092b8a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Aaron?= Date: Thu, 9 Apr 2026 23:38:41 +0200 Subject: [PATCH 2/2] fix: use -X as HTTP method flag for curl compatibility Every agent and developer expects -X from curl. Using -m caused agents to fail on their first attempt when constructing fetch commands. Bumps version to 0.6.1. Co-Authored-By: Claude Opus 4.6 (1M context) --- package.json | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index cd4078b..1212f8d 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@getalby/cli", "description": "CLI for Nostr Wallet Connect (NIP-47) with a few additional useful lightning tools", "repository": "https://github.com/getAlby/cli.git", - "version": "0.6.0", + "version": "0.6.1", "type": "module", "main": "build/index.js", "bin": { diff --git a/src/index.ts b/src/index.ts index dbd985b..f677d36 100644 --- a/src/index.ts +++ b/src/index.ts @@ -38,7 +38,7 @@ program " $ npx @getalby/cli get-balance\n" + " $ npx @getalby/cli pay-invoice --invoice lnbc...", ) - .version("0.6.0") + .version("0.6.1") .option( "-w, --wallet-name ", "Use a named wallet's connection secret (~/.alby-cli/connection-secret-.key)",