> ## Documentation Index
> Fetch the complete documentation index at: https://docs.etherscan.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Command Line Interface (CLI)

Etherscan's CLI gives you command line access to our API V2.

These structured inputs have proven beneficial to AI agents, by encapsulating authentication and individual API methods to simple --flags.

This official CLI will also be maintained to be 1:1 to the existing APIs as soon as any changes are made.

## Installation

Download the build from our [Release page](https://github.com/etherscan/etherscan-cli/releases) for your environment.

Start by providing your API key for authentication.

```
etherscan login
```

From here you can handover to your agent, who will have access to all the API V2 endpoints. Plus utility tools to check available rate limits, supported chains etc below.

## Prompts

<Columns cols={2}>
  <Prompt description="List down supported chains and chain IDs." icon="link" iconType="solid" actions={["copy"]}>
    Run the `etherscan chains list` CLI command to list the latest supported chains Etherscan API V2 offers. If the user is referring to a specific network, address it if its supported or not.
  </Prompt>

  <Prompt description="Check an address's current ETH balance." icon="coin" iconType="solid" actions={["copy"]}>
    Run the `etherscan account balance &lt;address&gt;` CLI command with the address specified by the user to check the current ETH balance. If no address is specified, use "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045" and mention clearly that this is an example address.
  </Prompt>
</Columns>
