Ledger Live CLI | Developers

Ledger Live CLI

Estimated reading time: One minute


Using a local version of Ledger Live to test your integration can be time consuming. If you would rather have a faster process, you can use the CLI.

Set up

Clone ledger-live-common repository

cd ledger-live-common
cd cli

You can test that your local Live Common and your device works correctly by executing a CLI command like:

ledger-live version      # should print live-common version
ledger-live deviceInfo   # should display information about connected device
Ensure yarn global bin is in your $PATH. You can build automatically the CLI by running yarn watch in a separate terminal to ensure ledger-live bin is always up-to-date with your work.

If everything is fine, you are ready to start integrating your blockchain!

Ledger Live CLI cmd example

Do not forget to clean dbdata and libcoredb directories between cmds.

ledger-live sync -c bitcoin -i 0 -s native_segwit   # using device
ledger-live sync -c bitcoin --xpub 'xpub......'    # using xpub
ledger-live getAddress -c bitcoin --path "84'/0'/0'/0/0" --derivationMode ''
ledger-live send -i 0 -s segwit --recipient 13LcRWZyZnZu1xrABuAK9Ayftg4kfVs1AA --amount 0.00056 --feePerByte 5

Did you find this page helpful?

How would you improve this page for developers?

Required programming skills
Getting Started
Theme Features