rgb-cln/doc/lightning-cli.1.txt

73 lines
1.8 KiB
Plaintext
Raw Normal View History

LIGHTNING-CLI(1)
==================
:doctype: manpage
NAME
----
lightning-cli - Control lightning daemon
SYNOPSIS
--------
*lightning-cli* ['OPTIONS'] 'command'...
DESCRIPTION
-----------
*lightning-cli* sends commands to the lightning daemon.
OPTIONS
-------
*--lightning-dir*='DIR'::
Set the directory for the lightning daemon we're talking to; defaults to
'$HOME/.lightning'.
*--rpc-file*='FILE'::
2017-12-28 13:40:01 +00:00
Named pipe to use to talk to lightning daemon: default is 'lightning-rpc'
in the lightning directory.
*--help*/*-h*::
Print summary of options to standard output and exit.
*--version*/*-V*::
Print version number to standard output and exit.
COMMANDS
--------
'lightning-cli' simply uses the JSON RPC interface to talk to 'lightningd',
and prints the results. Thus the commands available depend entirely on the
lightning daemon itself.
ARGUMENTS
---------
Arguments are provided positionally after the command name.
Arguments may be integer numbers (composed entirely of digits),
floating-point numbers (has a radix point but otherwise composed
of digits), 'true', 'false', or 'null'.
Other arguments are treated as strings.
Some commands have optional arguments.
You may use 'null' to skip optional arguments to provide
later arguments.
EXAMPLES
--------
.List commands
===================================================================
lighting-cli help
===================================================================
BUGS
----
This manpage documents how it should work, not how it does work. The
pretty printing of results isn't pretty.
AUTHOR
------
Rusty Russell <rusty@rustcorp.com.au> is mainly to blame.
RESOURCES
---------
Main web site: https://github.com/ElementsProject/lightning
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.