Install CLI

Cedra Network CLI

The following steps will guide you through setting up the Aptos CLI and configuring it for use with the Cedra Network.

Step 1. Download the Aptos CLI

Visit the Aptos CLI Documentation for the latest installation instructions.

Download the appropriate binary for your operating system and architecture.

Step 2. Initialize the CLI

Run the following command to initialize the CLI and configure it for the Cedra network:

aptos init

During initialization, follow the prompts to configure the CLI:

1. Choose Network:

Type custom to set up the Cedra devnet.

2. Enter Devnet REST Endpoint:

https://devnet.cedra.dev

3. Enter Devnet Faucet Endpoint:

https://faucet.devnet.cedra.dev/

4. Enter Private Key:

Leave blank to generate a new key.

The CLI will generate a new private key if none is provided. It will also create and fund a new account with 100,000,000 Octas.

Step 3. Verify Configuration

The CLI stores configuration in a directory named .aptos in your home directory. To verify the configuration, use:

You should see an entry similar to the following:

Step 4. Test CLI

To ensure everything is working, test a simple CLI command

You should see your account information.

With this setup, you are ready to use the Aptos CLI with the Cedra network.

For detailed usage and advanced configurations, visit the official Aptos CLI Documentation.

Last updated