---
title: LNCLI (Self Host)
slug: lncli-self-host
docTags: 
createdAt: 2024-02-29T14:49:37.701Z
---

3Access 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](https://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.&#x20;



![](https://api.archbee.com/api/optimize/CGGF0VLgJQypTJbZ1FbQy/6a5Gel1p1FeAWq2YM8nn1_image.png)

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:

:::BlockQuote
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:

:::BlockQuote
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.

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

Next we have to connect LNCLI to the bash path:

```none
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:

```none
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](https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md) for the full LND installation documentation.

If you need assistance with this please let us know on [Discord](https://voltage.cloud/discord) or at our [Support page](https://voltage.cloud/support).
