# AWS Command Line Interface (CLI)

# AWS Command Line Interface (CLI)

* AWS CLI is a tool which lets you manage AWS services using a command
    
* It's a powerful way to perform tasks and manage systems, often used for programming, system administration, and automation.
    
* You can install AWS CLI in any operating system.
    

**To perform the Aws task in your command Line you need to have aws cli setup install in your system**

# 🔹Install AWS CLI

To install the AWS CLI (Command Line Interface) on your system, you can follow these steps based on your operating system:

## **1\. Windows**

1. **Download the Installer:**
    
    * Go to the [AWS CLI MSI installer page](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-windows.html).
        
    * Download the MSI installer for the AWS CLI version 2.
        
2. **Run the Installer:**
    
    * Double-click the downloaded MSI file and follow the prompts in the installation wizard.
        
3. **Verify the Installation:**
    
    * Open Command Prompt or PowerShell.
        
    * Run the command: `aws --version`.
        

## **2\. macOS**

1. **Using Homebrew (Recommended):**
    
    * Open Terminal.
        
    * Install Homebrew if you don’t already have it: `/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`.
        
    * Install AWS CLI with Homebrew: `brew install awscli`.
        
2. **Verify the Installation:**
    
    * Run the command: `aws --version`.
        
3. **Alternative Method (Direct Installation):**
    
    * Download the AWS CLI bundled installer from the [AWS CLI page](https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-mac.html).
        
    * Extract the tarball and run the installation script.
        

## **3\. Linux**

1. **Using Package Manager:**
    

* **For Debian-based distributions (like Ubuntu):**
    

```bash
sudo apt update
sudo apt install awscli
```

* For Red Hat-based distributions (like CentOS, Fedora)
    

```bash
sudo yum install awscli
```

2. **Verify the Installation:**
    
    * Run the command: `aws --version`.
        

### **Post-Installation: Configure AWS CLI**

After installing the AWS CLI, you'll need to configure it with your AWS credentials:

1. Run the configuration command:
    

```bash
aws configure
```

2. Enter your AWS Access Key ID, Secret Access Key, default region name, and output format as prompted.
    

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1726212027468/3227721f-b9fa-444e-a254-8b91fb191d30.png align="center")

# **Create a New Access Key**

1. In the IAM Dashboard, click on **Users** in the left-hand menu.
    
2. Select the user for whom you want to create the access key.
    
3. Go to the **Security credentials** tab.
    
4. In the **Access keys** section, click **Create access key**.
    
5. Choose the desired options for the access key, then click **Create access key**.
