@getalby/cli
Advanced tools
+9
-7
@@ -28,10 +28,12 @@ #!/usr/bin/env node | ||
| .name("@getalby/cli") | ||
| .description("CLI for Nostr Wallet Connect (NIP-47) with lightning tools\n\n" + | ||
| .description("CLI for Nostr Wallet Connect (NIP-47) with lightning tools\n" + | ||
| " Run 'auth' or 'connect' first to set up a wallet connection.\n\n" + | ||
| " Examples:\n" + | ||
| " $ npx @getalby/cli auth https://my.albyhub.com --app-name OpenClaw\n" + | ||
| ' $ npx @getalby/cli connect "nostr+walletconnect://..."\n' + | ||
| " $ npx @getalby/cli get-balance\n" + | ||
| " $ npx @getalby/cli pay-invoice --invoice lnbc...") | ||
| .version("0.4.0") | ||
| .version("0.4.1") | ||
| .option("-w, --wallet-name <name>", "Use a named wallet's connection secret (~/.alby-cli/connection-secret-<name>.key)") | ||
| .option("-c, --connection-secret <string>", "NWC connection secret (nostr+walletconnect://...) or path to file containing it (preferred)") | ||
| .option("-w, --wallet-name <name>", "Use a named wallet's connection secret (~/.alby-cli/connection-secret-<name>.key)") | ||
| .option("-v, --verbose", "Print status messages to stderr") | ||
@@ -52,3 +54,3 @@ .addHelpText("after", ` | ||
| // Register common wallet commands | ||
| program.commandsGroup("Wallet Commands (require --connection-secret):"); | ||
| program.commandsGroup("Wallet Commands (requires wallet connection):"); | ||
| registerGetBalanceCommand(program); | ||
@@ -62,3 +64,3 @@ registerGetBudgetCommand(program); | ||
| // Register advanced wallet commands | ||
| program.commandsGroup("Advanced Wallet Commands (require --connection-secret):"); | ||
| program.commandsGroup("Advanced Wallet Commands (requires wallet connection):"); | ||
| registerPayKeysendCommand(program); | ||
@@ -72,3 +74,3 @@ registerGetWalletServiceInfoCommand(program); | ||
| // Register lightning tool commands | ||
| program.commandsGroup("Lightning Tools (no --connection-secret required):"); | ||
| program.commandsGroup("Lightning Tools (no wallet connection required):"); | ||
| registerFiatToSatsCommand(program); | ||
@@ -80,3 +82,3 @@ registerSatsToFiatCommand(program); | ||
| // Register fetch command for payment-protected resources | ||
| program.commandsGroup("HTTP 402 Payments (require --connection-secret):"); | ||
| program.commandsGroup("HTTP 402 Payments (requires wallet connection):"); | ||
| registerFetch402Command(program); | ||
@@ -83,0 +85,0 @@ // Register setup commands |
+1
-1
@@ -5,3 +5,3 @@ { | ||
| "repository": "https://github.com/getAlby/cli.git", | ||
| "version": "0.4.0", | ||
| "version": "0.4.1", | ||
| "type": "module", | ||
@@ -8,0 +8,0 @@ "main": "build/index.js", |
74790
0.2%1336
0.15%