Files
breez-sdk-liquid/cli/README.md
ok300 3df6a5c3d4 CLI: Allow choosing custom network (#151)
* CLI: Allow choosing custom network

* Cargo fmt
2024-05-02 18:27:31 +00:00

38 lines
762 B
Markdown

# breez-liquid-sdk-cli
## Setup
You'll need a Testnet LN node to test the sending and receiving operations. A simple solution is using [Alby's testnet nodes](https://thunderhub.regtest.getalby.com). Read more about Alby's test setup [here](https://github.com/getAlby/lightning-browser-extension/wiki/Test-setup).
## Commands
Start the CLI with
```bash
cargo run
```
To set a specific network, use one of
```bash
cargo run -- --network mainnet
cargo run -- --network testnet
```
To specify a custom data directory, use
```bash
cargo run -- --data-dir temp-dir
```
To set a custom log level, use
```bash
RUST_LOG=info|debug|warn cargo run
```
To specify a file to pipe logs to, use
```bash
RUST_LOG=info|debug|warn cargo run -- --log-file /tmp/log
```