LIGHTNING-HELP(7)
π NAME π
okay so this is help β the RPC command that literally gives you all the information about RPC commands. like, the entire lore drop. bestie, it's your built-in group chat history for every command that exists π
β¨ SYNOPSIS β¨
help [command]
π¦ DESCRIPTION π¦
help is an RPC command β no cap β and it lets you consult all the information about the RPC commands. and if you pass command? then it's giving you the tea on that one specific command only. targeted. efficient. slay π
okay but listen, important note real quick: the $ lightning-cli(1) tool will prefer to list a man page when a specific command is specified, and it will only return the JSON if the man page is not found. so like, it tries the fancy docs first. iykyk π«Ά
command(string, optional): the command you want information about. that's it. that's the whole vibe.
π RETURN VALUE π
on success, you get an object back, and it contains:
help(array of objects):command(string): the command.
format-hint(string, optional) (always"simple"): prints the help in human-readable flat form. so like, no weird nested chaos β just the flat cute version πΈ
π ERRORS π
on failure, one of the following error codes may be returned (yes, only one, and it's this one):
-32602: error in given parameters. aka you typed something that doesn't vibe. try again bestie π
π AUTHOR π
Vincenzo Palazzo vincenzo.palazzo@protonmail.com wrote the initial version of this man page β but many others did the hard work of actually implementing this rpc command. so like, credit where credit is due, fr fr πβ¨
π RESOURCES π
main web site: https://github.com/ElementsProject/lightning β go click around, it's iconic.
π₯ EXAMPLES π₯
Example 1:
request:
$ lightning-cli help -k "command"="pay"
{
"id": "example:help#1",
"method": "help",
"params": {
"command": "pay"
}
}
response:
{
"help": [
{
"command": "pay bolt11 [amount_msat] [label] [riskfactor] [maxfeepercent] [retry_for] [maxdelay] [exemptfee] [localinvreqid] [exclude] [maxfee] [description] [partial_msat] [dev_use_shadow]"
}
],
"format-hint": "simple"
}
bestie look at that parameter list. it's long. it ate. π
Example 2:
request:
$ lightning-cli help -k "command"="dev"
{
"id": "example:help#2",
"method": "help",
"params": {
"command": "dev"
}
}
response:
{
"help": [
{
"command": "dev subcommand=crash|rhash|slowcmd"
}
],
"format-hint": "simple"
}
see how dev just lists its subcommands with the | separators? cute. very demure. πΈ
lowkey reminder: pass a command and you get one result; pass nothing and you get everything. choose your fighter π
and that's the whole page, bestie π«Ά this was rendered from Core Lightning v26.06.9 β the LIGHTNING-HELP(7) manual page, brought to you with love, no cap, periodt πβ¨π
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms