lbry.com/content/faq/how-to-cli.md
Thomas Zarebczan c9e8b7ad30 Take 2
2019-11-27 19:04:31 -05:00

31 lines
1.7 KiB
Markdown

---
title: How do I use the LBRY command line interface (CLI) tool?
category: powerusers
---
As a power user, you may want to run your own commands against the LBRY SDK. This guide explains how to run any available commands from the [LBRY SDK documentation](https://lbry.tech/api/sdk). You must be running the LBRY app or daemon in order to interact with the protocol.
## Windows
1. Open a **Command Prompt** application window
2. Type `cd "C:\Program Files\LBRY\resources\static\daemon"` ([32-bit located in Program Files(x86)]) and click Enter
3. Type `lbrynet status` and click **Enter**. This will return the LBRYnet status data
4. See examples below or [LBRY SDK documentation](https://lbry.tech/api/sdk) for additional commands
## MacOS
1. Open a **Terminal** window
2. Type `cd /Applications/LBRY.app/Contents/Resources/static/daemon`
3. Type `./lbrynet status` and click **Enter**. This will return the LBRYnet status data
4. See examples below or [LBRY SDK documentation](https://lbry.tech/api/sdk) for additional commands
## Ubuntu / Linux
1. Open a **Terminal** window
2. Type `cd /opt/LBRY/resources/static/daemon`
3. Type `./lbrynet status` and click **Enter**. This will return the LBRYnet status data
4. See examples below or [LBRY SDK documentation](https://lbry.tech/api/sdk) for additional commands
## Common/sample commands
- `lbrynet claim list` - Show list of own claims, including channels
- `lbrynet support create --claim_id=<claimid> --amount=5.0` - add 5 LBC to a claim or channel
- `lbrynet resolve one` - Retrieve information about winning claim at lbry://one
- `lbrynet claim search one` - Retrieve information about all claims at lbry://one
- `lbrynet stream abandon --claim_id=<claimid>` - Abandon stream claim by claim id (from claim info)