# Install CircleCI CLI

## In this learning path

- [Introduction](https://learn.arm.com/learning-paths/servers-and-cloud-computing/circleci-on-aws/)
- [Get Started with CircleCI on AWS Graviton](https://learn.arm.com/learning-paths/servers-and-cloud-computing/circleci-on-aws/background/)
- [Create an AWS EC2 Arm64 Graviton Instance](https://learn.arm.com/learning-paths/servers-and-cloud-computing/circleci-on-aws/instance/)
- [Install CircleCI CLI](https://learn.arm.com/learning-paths/servers-and-cloud-computing/circleci-on-aws/circlecli-installation/)
- [Create a resource class in CircleCI](https://learn.arm.com/learning-paths/servers-and-cloud-computing/circleci-on-aws/resource-class/)
- [Install CircleCI machine runner on AWS Graviton](https://learn.arm.com/learning-paths/servers-and-cloud-computing/circleci-on-aws/circleci-runner-installation/)
- [Verify CircleCI Arm64 Self-Hosted runner](https://learn.arm.com/learning-paths/servers-and-cloud-computing/circleci-on-aws/validation/)
- [Next Steps](https://learn.arm.com/learning-paths/servers-and-cloud-computing/circleci-on-aws/_next-steps/)

This guide walks you through how to install the CircleCI command line interface (CLI). With the CLI, you can work with CircleCI from your terminal to check configuration files, manage pipelines, and run self-hosted runners on your EC2 instance.

## Install the required packages

Before installing the CircleCI CLI, ensure your system has the necessary tools for downloading and extracting files:

```
sudo apt update && sudo apt install -y curl tar gzip coreutils gpg git
```

## Download and extract the CircleCI CLI

Next, download the CircleCI CLI binary for Linux arm64 and extract it:

```
curl -fLSs https://github.com/CircleCI-Public/circleci-cli/releases/download/v0.1.33494/circleci-cli_0.1.33494_linux_arm64.tar.gz | tar xz
sudo mv circleci-cli_0.1.33494_linux_arm64/circleci /usr/local/bin/
```

- The `curl` command fetches the official CircleCI CLI archive from GitHub.
- The `| tar xz` command extracts the compressed binary in a single step.
- After extraction, a new folder named `circleci-cli_0.1.33494_linux_arm64` appears in your current directory.

## Verify the installation

To ensure that the CLI is installed successfully, check its version:

```
circleci version
```

The first time this runs, an interactive shell might open. For now, press `Ctrl+C` to abort. You should now see an output similar to:

```
__output__
0.1.33494+7cc6570 (release)
```

If this version number appears, the CircleCI CLI installation on your AWS Graviton instance was successful!
