# 📜  Useful Commands

_**Check Light node wallet balance**_

```bash
celestia state balance --node.store ~/.celestia-light/
```

_**Get wallet address**_

```bash
cd $HOME/celestia-node
./cel-key list --node.type light --keyring-backend test
```

_**Restore an existing cel\_key**_

```bash
KEY_NAME="my_celes_key"
cd ~/celestia-node
./cel-key add $KEY_NAME --keyring-backend test --node.type light  --recover
```

_**Check light node status**_

```bash
celestia header sync-state --node.store ~/.celestia-light/
```

_**Get Node ID**_

```bash
celestia p2p info --node.store ~/.celestia-light/
```

_**(Optional) Add permissions for transferring keys to another server**_

```bash
chmod -R 700 ~/.celestia-light
```

_**Reset node**_

```bash
celestia light unsafe-reset-store
```

### _Delete light node_ <a href="#delete" id="delete"></a>

```bash
sudo systemctl stop celestia-light
sudo systemctl disable celestia-light
sudo rm /etc/systemd/system/celestia-light*
rm -rf $HOME/celestia-node $HOME/.celestia-light
```
