Lightning Nodes
Node Guides

LNCLI (Self Host)

4min

Access the LNCLI command line tool and remotely access your Voltage node on your local machine. We have instructions on Bash based platforms Linux/Mac. If you are using Windows, we encourage you to seek direct assistance from Lightning Labs on their community support page at lightningcommunity.slack.com.

LINUX/MAC

First, download your admin.macaroon from your node's Macaroon Bakery. Put the admin.macaroon file on the same machine as the machine you are going to be accessing lncli with and take note of the directory you save it to.



Document image


Ensure you have dependencies installed. Copy paste the following commands:

Linux(Ubuntu/Debian x86-64): sudo apt install git

For mac, do brew install git

Next, we need to install GO:

wget https://dl.google.com/go/go1.19.7.linux-amd64.tar.gz sha256sum go1.19.7.linux-amd64.tar.gz | awk -F " " '{ print $1 }'

The final output of the command above should be

7a75720c9b066ae1750f6bcc7052aba70fa3813f4223199ee2a2315fd3eb533d

If it isn't, then the target REPO HAS BEEN MODIFIED, and you shouldn't install this version of Go. If it matches, then proceed to install Go:

sudo tar -C /usr/local -xzf go1.19.7.linux-amd64.tar.gz export PATH=$PATH:/usr/local/go/bin

Great, next we need to install LND.

git clone https://github.com/lightningnetwork/lnd cd lnd make install

Next we have to connect LNCLI to the bash path:

Text


Now we can try getinfo and see if the connection is working:

Text


If you see no errors, you are connected to your node! You can now instead of getinfo, can use -help and that will show you a list of RPC calls available.

Click here for the full LND installation documentation.

If you need assistance with this please let us know on Discord or at our Support page.