AWS CLI Cheat sheet - List of All CLI commands Setup Install AWS CLI. AWS CLI is an common CLI tool for managing the AWS resources. With this single tool we can manage all the aws resources. Sudo apt-get install -y python-dev python-pip sudo pip install awscli aws -version aws configure Bash one-liners. Install AWS Command Line Interface (CLI) on Ubuntu 18.04 LTS. 12 months ago. By Shahriar Shovon. AWS CLI or Amazon Web Service Command Line Interface is a command line tool for managing and administering your Amazon Web Services.
ImportantUsing sudo to complete a command grants the command full access to yoursystem. We recommend using that command only when no more secure option exists. Forcommands like pip, we recommend that you avoid using sudo byusing a or by specifying the -user option toinstall in the user's folders instead of the system's folders.If you use the yum package manager, you can install the AWS CLI with the command:yum install aws-cli. You can use the command: yum update toget the latest version available in the yum repository. NoteThe yum repository is not owned or maintained by Amazon and might not contain thelatest version. Instead, we recommend that you use pip to get the latestversion.PrerequisitesVerify that Python and pip are already installed. For more information, see.To install or upgrade the AWS CLI on Amazon Linux (user).Use pip3 install to install the latest version of the AWS CLI.
We recommendthat if you have Python version 3+ installed that you use pip3. If yourun the command from within a, then you don't need to use the -useroption.
ExampleThere are a number of different ways to install the AWS CLI on your machine, depending on what operating system and environment you are using:On Microsoft Windows – use the MSI installer.On Linux, OS X, or Unix – use pip (a package manager for Python software) or install manually with the bundled installer.Install using pip:You will need python to be installed (version 2, 2.6.5+,3 or 3.3+). Check with python -versionpip -helpGiven that both of these are installed, use the following command to install the aws cli. Sudo pip install awscliInstall on WindowsThe AWS CLI is supported on Microsoft Windows XP or later. For Windows users, the MSI installation package offers a familiar and convenient way to install the AWS CLI without installing any other prerequisites.