Command Line Interface
litd can be accessed using the litcli, lncli, pool, loop and frcli command line interfaces (CLI).
Litd comes with a command line interface litcli. This interface is primarily used to generate new sessions for Lightning Node Connect (LNC) and interact with LND Accounts. These tools can be used to connect remotely to your node, e.g. to Lightning Terminal or mobile wallets.
In addition, litd optionally bundles LND, Pool, Loop and Faraday with their command line interfaces. When compiling
litd, by default, it doesn’t make
frcli, as these might already be on your system. To specifically compile them, run make
go-install-cliand refer to our installation guide.
These command line interfaces by default point at their standalone clients, so when using litd in integrated mode the arguments have to be slightly adjusted to allow proper communication amongst the clients.
In remote mode,
tapdare run as part of the same binary by default, although each daemon may be run separately, or remote.
litcli sessions add --label="My LNC" --type admin
By default, a pairing phrase created with litcli is valid for 3 months and is set to "readonly", meaning invoices cannot be paid or created and channels cannot be opened. You may extend this with the
In integrated mode, all binaries including LND are run as one. All of these services are exposed both via port 8443 and 10009, by default the TLS certificate can be found in
In some cases this certificate path has to be specified for the connection to succeed.
loop --tlscertpath ~/.lit/tls.cert --rpcserver=localhost:8443 terms in
pool --tlscertpath ~/.lit/tls.cert --rpcserver=localhost:8443 accounts list
frcli --tlscertpath ~/.lit/tls.cert --rpcserver=localhost:8443 insights
tapcli --tlscertpath ~/.lit/tls.cert --rpcserver=localhost:8443 --network=mainnet accounts list
In integrated mode, LND is available through the same port as when run as a standalone process. The TLS certificate is stored in its expected location as well, hence no modification to this cli call are necessary.