@getalby/cli 0.4.0 → 0.4.1
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/build/index.js +9 -7
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -25,14 +25,16 @@ import { registerAuthCommand } from "./commands/auth.js";
|
|
|
25
25
|
const program = new Command();
|
|
26
26
|
program
|
|
27
27
|
.name("@getalby/cli")
|
|
28
|
-
.description("CLI for Nostr Wallet Connect (NIP-47) with lightning tools\n
|
|
28
|
+
.description("CLI for Nostr Wallet Connect (NIP-47) with lightning tools\n" +
|
|
29
|
+
" Run 'auth' or 'connect' first to set up a wallet connection.\n\n" +
|
|
29
30
|
" Examples:\n" +
|
|
31
|
+
" $ npx @getalby/cli auth https://my.albyhub.com --app-name OpenClaw\n" +
|
|
30
32
|
' $ npx @getalby/cli connect "nostr+walletconnect://..."\n' +
|
|
31
33
|
" $ npx @getalby/cli get-balance\n" +
|
|
32
34
|
" $ npx @getalby/cli pay-invoice --invoice lnbc...")
|
|
33
|
-
.version("0.4.
|
|
34
|
-
.option("-c, --connection-secret <string>", "NWC connection secret (nostr+walletconnect://...) or path to file containing it (preferred)")
|
|
35
|
+
.version("0.4.1")
|
|
35
36
|
.option("-w, --wallet-name <name>", "Use a named wallet's connection secret (~/.alby-cli/connection-secret-<name>.key)")
|
|
37
|
+
.option("-c, --connection-secret <string>", "NWC connection secret (nostr+walletconnect://...) or path to file containing it (preferred)")
|
|
36
38
|
.option("-v, --verbose", "Print status messages to stderr")
|
|
37
39
|
.addHelpText("after", `
|
|
38
40
|
Connection Secret Resolution (in order of priority):
|
|
@@ -48,7 +50,7 @@ Security:
|
|
|
48
50
|
- NEVER share any part of a connection secret (pubkey, secret, relay etc.) with anyone
|
|
49
51
|
as this can be used to gain access to your wallet or reduce your wallet's privacy.`);
|
|
50
52
|
// Register common wallet commands
|
|
51
|
-
program.commandsGroup("Wallet Commands (
|
|
53
|
+
program.commandsGroup("Wallet Commands (requires wallet connection):");
|
|
52
54
|
registerGetBalanceCommand(program);
|
|
53
55
|
registerGetBudgetCommand(program);
|
|
54
56
|
registerGetInfoCommand(program);
|
|
@@ -57,7 +59,7 @@ registerPayInvoiceCommand(program);
|
|
|
57
59
|
registerLookupInvoiceCommand(program);
|
|
58
60
|
registerListTransactionsCommand(program);
|
|
59
61
|
// Register advanced wallet commands
|
|
60
|
-
program.commandsGroup("Advanced Wallet Commands (
|
|
62
|
+
program.commandsGroup("Advanced Wallet Commands (requires wallet connection):");
|
|
61
63
|
registerPayKeysendCommand(program);
|
|
62
64
|
registerGetWalletServiceInfoCommand(program);
|
|
63
65
|
registerWaitForPaymentCommand(program);
|
|
@@ -66,14 +68,14 @@ registerMakeHoldInvoiceCommand(program);
|
|
|
66
68
|
registerSettleHoldInvoiceCommand(program);
|
|
67
69
|
registerCancelHoldInvoiceCommand(program);
|
|
68
70
|
// Register lightning tool commands
|
|
69
|
-
program.commandsGroup("Lightning Tools (no
|
|
71
|
+
program.commandsGroup("Lightning Tools (no wallet connection required):");
|
|
70
72
|
registerFiatToSatsCommand(program);
|
|
71
73
|
registerSatsToFiatCommand(program);
|
|
72
74
|
registerParseInvoiceCommand(program);
|
|
73
75
|
registerVerifyPreimageCommand(program);
|
|
74
76
|
registerRequestInvoiceFromLightningAddressCommand(program);
|
|
75
77
|
// Register fetch command for payment-protected resources
|
|
76
|
-
program.commandsGroup("HTTP 402 Payments (
|
|
78
|
+
program.commandsGroup("HTTP 402 Payments (requires wallet connection):");
|
|
77
79
|
registerFetch402Command(program);
|
|
78
80
|
// Register setup commands
|
|
79
81
|
program.commandsGroup("Setup:");
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@getalby/cli",
|
|
3
3
|
"description": "CLI for Nostr Wallet Connect (NIP-47) with a few additional useful lightning tools",
|
|
4
4
|
"repository": "https://github.com/getAlby/cli.git",
|
|
5
|
-
"version": "0.4.
|
|
5
|
+
"version": "0.4.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "build/index.js",
|
|
8
8
|
"bin": {
|