# How to delegate to P-OPS Validator using Ledger Nano S + CLI
Download Harmony CLI tool
1. For Linux
Enter the following command into your shell of choice:
If you have permission issues, enter the commands with "sudo" at the beginning, i.e. "sudo curl -LO https://harmony.one/hmycli && sudo mv hmycli hmy && sudo chmod +x hmy"
2. For MacOS
hmy
depends on some dynamic libraries, hence we recommend using the shell wrapper. Enter there commands into your terminal:
Now you can use hmy.sh
as a wrapper over hmy
and you should assume that all references to hmy
in these documents refer to hmy.sh
. For example, the command ./hmy
becomes ./hmy.sh --
.
Note that since hmy
is not statically linked, you cannot arbitrarily move hmy.sh
to anywhere on your filesystem like you could with a single binary.
Interacting with Ledger to delegate to P-OPS validator
When using Ledger with HMY CLI, the only difference here is that you have to add parameter --ledger
on every command.
With that in mind, you can run any other command via HMY CLI using your Ledger.
Make sure HMY CLI is being run with super user permissions when interacting with Ledger.
Below, are a few practical examples on how to interact with your Ledger device.
1. Displaying your Address
For example, if you want to show your Ledger address you would simply run:
2. Displaying your Balance
3. Sending Delegation to P-OPS Validator (the address is one1kf42rl6yg2avkjsu34ch2jn8yjs64ycn4n9wdj)
For a complete reference of all commands available, please check the HMY CLI cookbook.
Last updated