2016-09-06 09:17:41 +02:00
'\" t
. \" Title: lightning-cli
. \" Author: [see the "AUTHOR" section]
. \" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
2018-02-12 00:25:43 +01:00
. \" Date: 02/11/2018
2016-09-06 09:17:41 +02:00
. \" Manual: \ \&
. \" Source: \ \&
. \" Language: English
. \"
2018-02-12 00:25:43 +01:00
.TH "LIGHTNING\-CLI" "1" "02/11/2018" "\ \&" "\ \&"
2016-09-06 09:17:41 +02:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
lightning-cli \- Control lightning daemon
.SH "SYNOPSIS"
.sp
\fB lightning\- cli\fR [\fI OPTIONS\fR ] \fI command\fR \& ...
.SH "DESCRIPTION"
.sp
\fB lightning\- cli\fR sends commands to the lightning daemon\& .
.SH "OPTIONS"
.PP
\fB \- \- lightning\- dir\fR =\fI DIR\fR
.RS 4
Set the directory for the lightning daemon we\(cq re talking to; defaults to
\fI $HOME/\& .lightning\fR \& .
.RE
.PP
\fB \- \- rpc\- file\fR =\fI FILE\fR
.RS 4
2017-12-28 14:40:01 +01:00
Named pipe to use to talk to lightning daemon: default is
2016-09-06 09:17:41 +02:00
\fI lightning\- rpc\fR
in the lightning directory\& .
.RE
.PP
2018-02-12 00:25:43 +01:00
\fB \- \- keywords\fR /\fB \- k\fR
.RS 4
Use format
\fI key\fR =\fI value\fR
for parameters in any order
.RE
.PP
\fB \- \- order\fR /\fB \- o\fR
.RS 4
Follow strictly the order of parameters for the command
.RE
.PP
\fB \- \- json\fR /\fB \- J\fR
.RS 4
Return result in JSON format (default unless
\fI help\fR
command)
.RE
.PP
\fB \- \- human\- readable\fR /\fB \- H\fR
.RS 4
Return result in human\- readable output (default for
\fI help\fR
command)
.RE
.PP
2016-09-06 09:17:41 +02:00
\fB \- \- help\fR /\fB \- h\fR
.RS 4
Print summary of options to standard output and exit\& .
.RE
.PP
\fB \- \- version\fR /\fB \- V\fR
.RS 4
Print version number to standard output and exit\& .
.RE
.SH "COMMANDS"
.sp
\fI lightning\- cli\fR simply uses the JSON RPC interface to talk to \fI lightningd\fR , and prints the results\& . Thus the commands available depend entirely on the lightning daemon itself\& .
2018-01-20 16:49:39 +01:00
.SH "ARGUMENTS"
.sp
2018-02-12 00:25:43 +01:00
Arguments may be provided positionally or using \fI key\fR =\fI value\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), \fI true\fR , \fI false\fR , or \fI null\fR \& . Other arguments are treated as strings\& .
2018-01-20 16:49:39 +01:00
.sp
Some commands have optional arguments\& . You may use \fI null\fR to skip optional arguments to provide later arguments\& .
2016-09-06 09:17:41 +02:00
.SH "EXAMPLES"
.PP
\fB Example\ \& 1.\ \& List commands\fR
.sp
2018-01-22 10:49:48 +01:00
lightning\- cli help
2016-09-06 09:17:41 +02:00
.SH "BUGS"
.sp
This manpage documents how it should work, not how it does work\& . The pretty printing of results isn\(cq t pretty\& .
.SH "AUTHOR"
.sp
Rusty Russell <rusty@rustcorp\& .com\& .au> is mainly to blame\& .
.SH "RESOURCES"
.sp
Main web site: https://github\& .com/ElementsProject/lightning
.SH "COPYING"
.sp
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\& .