Installing the AWS Command Line Interface. The primary distribution method for the AWS CLI on Linux, Windows, and macOS is pip, a package manager for Python that provides an easy way to install, upgrade, and remove Python packages and their dependencies. Write an infrastructure application in TypeScript and Python using CDK for Terraform. The easiest way to find the CLI is to fire up your favorite search engine, and search for 'download aws cli.' In this case I'm on a Mac, Resume Transcript Auto-Scroll. The AWS Command Line Interface (CLI) is an instrument given by AWS to deal with our AWS administrations. Utilizing this single instrument, we are ready to oversee diverse AWS administrations from the order line.
Released:
AWS Shell
Project description
aws-shell - The interactive productivity booster for the AWS CLI
Installation
The aws-shell requires python and pip to install.You can install the aws-shell using pip:
If you are not installing into a virtualenv you can run:
Mac OS X (10.11 El Capitan) users: There is a known issue with Apple andits included python package dependencies (more info athttps://github.com/pypa/pip/issues/3165).We are investigating ways to fix this issue but in the meantime,to install the aws-shell, you can run:sudo pip install aws-shell--upgrade--ignore-installed six
Once you’ve installed the aws-shell, you can now run:
To exit the shell, press Ctrl-D.
Upgrading the aws-shell
If you want to upgrade to the latest version of the aws-shell,you can run:
You can also use this upgrade command whenever a new version of the AWS CLI isreleased that includes new services and API updates. You will then beable to use these new services and API updates in the aws-shell.
Supported Python Versions
The aws-shell works on the same python versions supported by the AWS CLI:
- 2.6.5 and greater
- 2.7.x and greater
- 3.3.x and greater
- 3.4.x and greater
Configuration
The aws-shell uses the same configuration settings as the AWS CLI.If you’ve never used the AWS CLI before, the easiest way to getstarted is to run the configure command:
For more information about configure settings, see theAWS CLI Getting Started Guide.
Basic Usage
The aws-shell accepts the same commands as the AWS CLI, except you don’tneed to provide the aws prefix. For example, here are a few commandsyou can try:
Profiles
The aws-shell supports AWS CLI profiles. You have two options to useprofiles. First, you can provide a profile when you start the aws-shell:
When you do this all the server side completion as well as CLI commandsyou run will automatically use the prod profile.
You can also change the current profile while you’re in the aws-shell:
You can also check what profile you’ve configured in the aws-shell using:
After changing your profile using the .profile dot command, allserver side completion as well as CLI commands will automatically usethe new profile you’ve configured.
Features
Auto Completion of Commands and Options
The aws-shell provides auto completion of commands andoptions as you type.
Shorthand Auto Completion
The aws-shell can also fill in an example of theshorthand syntax used for various AWS CLI options:
Server Side Auto Completion
The aws-shell also leverages boto3, the AWS SDK for Python, to auto completeserver side resources such as Amazon EC2 instance Ids, Amazon Dynamodb tablenames, AWS IAM user names, Amazon S3 bucket names, etc.
This feature is under active development. The list of supported resourcescontinues to grow.
Fuzzy Searching
Every auto completion value supports fuzzy searching. This enables you tospecify the commands, options, and values you want to run with even lesstyping. You can try typing:
- The first letter of each sub word: ec2 describe-reserved-instances-offerings-> ec2 drio
- A little bit of each word: ec2 describe-instances -> ec2 descinst
- Any part of the command: dynamodb table -> Offers all commands thatcontain the subsequence table.
Inline Documentation
The aws-shell will automatically pull up documentation as you type commands.It will show inline documentation for CLI options. There is also a separatedocumentation panel that will show documentation for the current command oroption you are typing. Pressing F9 will toggle focus to the documentation panelallowing you to navigate it using your selected keybindings.
Fish-Style Auto Suggestions
The aws-shell supports Fish-style auto-suggestions. Use the right arrow key tocomplete a suggestion.
Command History
The aws-shell records the commands you run and writes them to~/.aws/shell/history. You can use the up and down arrow keys to scrollthrough your history.
Toolbar Options
The aws-shell has a bottom toolbar that provides several options:
- F2 toggles between fuzzy and substring matching
- F3 toggles between VI and Emacs key bindings
- F4 toggles between single and multi column auto completions
- F5 shows and hides the help documentation pane
- F9 toggles focus between the cli and documentation pane
- F10 or Ctrl-D exits the aws-shell
As you toggle options in the toolbar, your preferences are persistedto the ~/.aws/shell/awsshellrc file so that the next time you runthe aws-shell, your preferences will be restored.
Dot Commands
The aws-shell provides additional commands specific to the aws-shell.The commands are available by adding the . prefix before a command.
Exiting the Shell
You can run the .exit or .quit commands to exit the shell.
Creating Shell Scripts with .edit
There are times when you may want to take a sequence of commandsyou’ve run in the aws-shell and combine them into a shell script.In addition to the command history that’s persisted to thehistory file, the aws-shell also keeps track of all the commandsyou’ve run since you first started your aws-shell session.
You can run the .edit command to open all these commands inan editor. The aws-shell will use the EDITOR environmentvariable before defaulting to notepad on Windows andvi on other platforms.
Changing Profiles with .profile
You can change the current AWS CLI profile used by the aws-shellby using the .profile dot command. If you run the .profilecommand with no arguments, the currently configured shell profilewill be printed.
.cd
You can change the current working directory of the aws-shell by usingthe .cd command:
Executing Shell Commands
The aws-shell integrates with other commands in several ways.First, you can pipe AWS CLI commands to other processes as wellas redirect output to a file:
Second, if you want to run a shell command rather than an AWS CLIcommand, you can add the ! prefix to your command:
Developer Preview Status
The aws-shell is currently in developer preview.We welcome feedback, feature requests, and bug reports.There may be backwards incompatible changes made in orderto respond to customer feedback as we continue to iterateon the aws-shell.
More Information
Below are miscellaneous links for more information:
Release historyRelease notifications | RSS feed
0.2.2
0.2.1
0.2.0
0.1.1
0.1.0
0.0.1
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Filename, size | File type | Python version | Upload date | Hashes |
---|---|---|---|---|
Filename, size aws_shell-0.2.2-py2.py3-none-any.whl (50.6 kB) | File type Wheel | Python version py2.py3 | Upload date | Hashes |
Filename, size aws-shell-0.2.2.tar.gz (55.4 kB) | File type Source | Python version None | Upload date | Hashes |

Hashes for aws_shell-0.2.2-py2.py3-none-any.whl
Algorithm | Hash digest |
---|---|
SHA256 | dc7a7d8bd831021f4fe6fe67d35757d9f8bf83a28693d3fff57aa114861f7367 |
MD5 | c6d1b5cf652ed2b8d784e58be28c2b0d |
BLAKE2-256 | cb019e5d72ebf69dc670ceaab4cfe4d4db92256ae2c332fc5b16c90301065ed6 |
Hashes for aws-shell-0.2.2.tar.gz
Algorithm | Hash digest |
---|---|
SHA256 | fd1699ea5f201e7cbaacaeb34bf1eb88c8fe6dc6b248bce1b3d22b3e099a41e5 |
MD5 | 89b53102973bffd07a69fc74a93ac67c |
BLAKE2-256 | 0131ee166a91c865a855af4f15e393974eadf57762629fc2a163a3eb3f470ac5 |
Installer
Download and run the MSI Installer.
Python, pip and AWS CLI
To install Python 3 and pip
If you don’t have Python 3 and pip install do the following.
Download and install the Python 3 installer from Python.org
Install aws-cli via pip
Using the Windows Command Prompt verify that both python and pip are installed.
Install the aws-cli via pip
Adding the AWS CLI Executable to your Command Line Path
After installing with pip
, add the aws
program to your OS’s PATH
environment variable.
Python 3 and pip –
C:Program FilesPython37Scripts
Python 3 and pip –user option –
%USERPROFILE%AppDataLocalProgramsPythonPython37Scripts
To modify your PATH variable (Windows) Os x mavericks download free.
Press the Windows key and type
environment variables
.Choose Edit environment variables for your account.
Choose PATH and then choose Edit.
Add paths to the Variable value field, separated by semicolons. For example:
C:existingpath
;
C:newpath
Choose OK twice to apply the new settings.
Close any running command prompts and re-open.
Brew Method
Brew is a package manager that helps install a bunch of packages that apple didn’t include. It can save you a-lot of time.
Install brew (skip if already installed)
Paste this into the terminal prompt. The script explains what it will do then pauses before it does. Age of empire 3 mac download full version free.
Install aws-cli
Pip Method
Check if pip and python is installed.
If python is not installed download and install Python 3.6 from Python.org
If pip is not installed run the following provided by the Python Packaging Authority.
Install aws-cli via pip
Adding the AWS CLI Executable to your Command Line Path
After installing with pip
, you may need to add the aws
program to your OS’s PATH
environment variable. The location of the program depends on where Python is installed.
If you don’t know where it was installed run the following command. The first output path may be to a symlink, so we need to run -al to where it points.
pip
installs programs in the same folder that contains the Python program. Add this folder to your PATH
variable.
To modify your PATH variable (Linux, macOS, or Unix)
Find your shell’s profile script in your user folder. If you are not sure which shell you have, run echo $SHELL
.
- Bash –
.bash_profile
,.profile
, or.bash_login
- Zsh –
.zshrc
- Tcsh –
.tcshrc
,.cshrc
or.login
.
Add an export command to your profile script.
This command adds a path, ~/.local/bin
in this example, to the current PATH variable.
Load the profile into your current session.
Check if your AWS CLI install was successful.
Configure AWS-CLI with aws configure
After this command is run, it will ask for 4 pieces of information:
The most important pieces of information are AWS Access Key ID [****************DXAQ]:
and AWS Secret Access Key [****************0lUP]:
To get your access key information –
Download Aws Cli Msi
- Navigate and sign into AWS Console
- Go to the “IAM” section
- Click on “Users”
- Find you username and click on it
- Click on the “Security credentials” and click create access key.
The two other pieces of information remaining are Default region name
and Default output format
. Set your region to where you would like your commands to run. I typically leave the output format as None, however text, json and table are available.
Aws Cli Mac Install
Related posts
Install Aws Cli 2
- Quick Guide: Setting up AWS CLI with MFA / Cross-Account Roles March 20, 2019
- GuardDuty in a multi-account organization with Terraform February 1, 2019
- Testing Lambdas locally with aws-sam-cli January 4, 2019
