mirror of
https://github.com/LBRYFoundation/lbry.com.git
synced 2025-08-23 17:47:26 +00:00
1.9 KiB
1.9 KiB
title | category |
---|---|
How do I use the LBRY Command Line Interface (CLI) tool? | setup |
In addition to the JSON commands available in the LBRY API Quickstart Guide as a method to interact with the LBRY protocol, there is another way through the command line tools (CLI). This will allow you to run any available commands from the LBRY CLI documentation. You must be running the LBRY app or daemon in order to interact with the protocol.
Windows
- Open a Command Prompt application window
- Type
cd "c:\Program Files (x86)\LBRY\resources\app\dist"
and click Enter - Type
lbrynet-cli status
and click Enter. This will return the LBRYnet status data - See examples below or LBRY CLI documentation for additional commands
MacOS
- Open a Terminal window
- Type
cd /Applications/LBRY.app/Contents/Resources/app/dist
- Type
./lbrynet-cli status
and click Enter. This will return the LBRYnet status data - See examples below or LBRY CLI documentation for additional commands
Ubuntu / Linux
- Open a Terminal window
- Type
cd /opt/LBRY/resources/app/dist
- Type
./lbrynet-cli status
and click Enter. This will return the LBRYnet status data - See examples below or LBRY CLI documentation for additional commands
Common/Sample Commands
lbrynet-cli claim list mine
- Show list of own claims, inlcluding channelslbrynet-cli resolve one
- Retreive information about winning claim at lbry://onelbrynet-cli claim_list one
- Retreive information about all claims at lbry://onelbrynet-cli claim_abandon --claim_id=<claimid>
- Abandon claim by claim id (from claim info)lbrynet-cli claim_abandon --txid=<txid> --nout=<nout>
- Abandon claim by transaction id and nout (from claim info)