> For the complete documentation index, see [llms.txt](https://docs.harmony.one/home/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.harmony.one/home/general/ecosystem/wallets/hardware-wallets/ledger/using-with-hmy-cli.md).

# Ledger with HMY CLI

## Download & Setup HMY

To interact with your Ledger device using the HMYC CLI, please click [here](https://docs.harmony.one/home/wallets/harmony-cli/download-setup) to download and configure it first.

## Interacting with Ledger

{% hint style="success" %}
When using Ledger with HMY CLI, the only difference here is that you have to add parameter `--ledger`on every command.
{% endhint %}

With that in mind, you can run any other command via HMY CLI using your Ledger.

{% hint style="warning" %}
Make sure HMY CLI is being run with super user permissions when interacting with Ledger.
{% endhint %}

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:

#### Using the Binary:

```
./hmy keys list --ledger
```

#### Using the Shell Wrapper:

```
./hmy.sh -- keys list --ledger
```

### 2. Displaying your Balance

#### Using the Binary:

```bash
./hmy balances --node="<endpoint-address>" <ONE-address> --ledger
```

#### Using the Shell Wrapper:

```bash
./hmy.sh -- balances --node="<endpoint-address>" <ONE-address> --ledger
```

### 3. Sending Transactions

#### Using the Binary:

```bash
./hmy transfer --node="<endpoint_address>" \
 --from <ONE_address> --to <ONE_address> \
 --from-shard <shard> --to-shard <shard> \
 --amount <amount> --chain-id <chain-id> --passphrase --ledger
```

#### Using the Shell Script:

```bash
./hmy.sh -- transfer --node="<endpoint_address>" \
 --from <ONE_address> --to <ONE_address> \
 --from-shard <shard> --to-shard <shard> \
 --amount <amount> --chain-id <chain-id> --passphrase --ledger
```

For a complete reference of all commands available, please check the HMY CLI [cookbook](https://docs.harmony.one/home/wallets/harmony-cli/cookbook).


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.harmony.one/home/general/ecosystem/wallets/hardware-wallets/ledger/using-with-hmy-cli.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
