Lightning Nodes
Node Guides
LNCLI (Self Host)
4 min
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 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 23 4 linux amd64 tar gz sha256sum go1 23 4 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 23 4 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 export path=$path /{system username}/lnd/cmd/ export path=$path /{system username}/go/bin/ now we can try getinfo and see if the connection is working lncli rpcserver=yournodename m voltageapp io tlscertpath="" \ macaroonpath=/pathtothe/admin macaroon/ getinfo 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