2019-08-10 02:12:44 +02:00
|
|
|
|
.TH "LIGHTNING-CLI" "1" "" "" "lightning-cli"
|
|
|
|
|
.SH NAME
|
|
|
|
|
lightning-cli - Control lightning daemon
|
|
|
|
|
.SH SYNOPSIS
|
|
|
|
|
|
|
|
|
|
\fBlightning-cli\fR [\fIOPTIONS\fR] \fIcommand\fR…
|
|
|
|
|
|
|
|
|
|
.SH DESCRIPTION
|
|
|
|
|
|
|
|
|
|
\fBlightning-cli\fR sends commands to the lightning daemon\.
|
|
|
|
|
|
|
|
|
|
.SH OPTIONS
|
|
|
|
|
|
|
|
|
|
\fB--lightning-dir\fR=\fIDIR\fR
|
|
|
|
|
Set the directory for the lightning daemon we’re talking to; defaults to
|
|
|
|
|
\fI$HOME/\.lightning\fR\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fB--rpc-file\fR=\fIFILE\fR
|
2017-12-28 14:40:01 +01:00
|
|
|
|
Named pipe to use to talk to lightning daemon: default is
|
2019-08-10 02:12:44 +02:00
|
|
|
|
\fIlightning-rpc\fR in the lightning directory\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fB--keywords\fR/\fB-k\fR
|
|
|
|
|
Use format \fIkey\fR=\fIvalue\fR for parameters in any order
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fB--order\fR/\fB-o\fR
|
2018-02-12 00:25:43 +01:00
|
|
|
|
Follow strictly the order of parameters for the command
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fB--json\fR/\fB-J\fR
|
|
|
|
|
Return result in JSON format (default unless \fIhelp\fR command)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fB--raw\fR/\fB-R\fR
|
2019-04-08 11:58:44 +02:00
|
|
|
|
Return raw JSON directly as lightningd replies
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fB--human-readable\fR/\fB-H\fR
|
|
|
|
|
Return result in human-readable output (default for \fIhelp\fR command)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fB--help\fR/\fB-h\fR
|
|
|
|
|
Print summary of options to standard output and exit\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
\fB--version\fR/\fB-V\fR
|
|
|
|
|
Print version number to standard output and exit\.
|
|
|
|
|
|
|
|
|
|
.SH COMMANDS
|
|
|
|
|
|
|
|
|
|
\fIlightning-cli\fR simply uses the JSON RPC interface to talk to
|
|
|
|
|
\fIlightningd\fR, and prints the results\. Thus the commands available depend
|
|
|
|
|
entirely on the lightning daemon itself\.
|
|
|
|
|
|
|
|
|
|
.SH ARGUMENTS
|
|
|
|
|
|
|
|
|
|
Arguments may be provided positionally or using \fIkey\fR=\fIvalue\fR after the
|
|
|
|
|
command name, based on either \fB-o\fR or \fB-k\fR option\. Arguments may be
|
|
|
|
|
integer numbers (composed entirely of digits), floating-point numbers
|
|
|
|
|
(has a radix point but otherwise composed of digits), \fItrue\fR, \fIfalse\fR,
|
|
|
|
|
or \fInull\fR\. Other arguments are treated as strings\.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Some commands have optional arguments\. You may use \fInull\fR to skip
|
|
|
|
|
optional arguments to provide later arguments\.
|
|
|
|
|
|
|
|
|
|
.SH EXAMPLES
|
|
|
|
|
|
|
|
|
|
Example 1\. List commands
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lightning-cli help
|
|
|
|
|
|
|
|
|
|
.SH BUGS
|
|
|
|
|
|
|
|
|
|
This manpage documents how it should work, not how it does work\. The
|
|
|
|
|
pretty printing of results isn’t pretty\.
|
|
|
|
|
|
|
|
|
|
.SH AUTHOR
|
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
|
Rusty Russell \fI<rusty@rustcorp.com.au\fR> is mainly to blame\.
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
.SH RESOURCES
|
|
|
|
|
|
2019-08-31 14:30:56 +02:00
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
2019-08-10 02:12:44 +02:00
|
|
|
|
|
|
|
|
|
.SH COPYING
|
|
|
|
|
|
|
|
|
|
Note: the modules in the ccan/ directory have their own licenses, but
|
|
|
|
|
the rest of the code is covered by the BSD-style MIT license\.
|
|
|
|
|
|