This project is a command-line tool written in Go that helps manage the AWS CLI on your system. It checks if the AWS CLI is installed, and if not, it downloads and installs the correct version based on your system's architecture and operating system.
- Detects if AWS CLI is installed
- Downloads and installs AWS CLI if not present
- Supports both Linux and MacOS systems
- Manage multiple AWS profiles with ease
- Interactive and colorful UI for better user experience
- Track and switch between profiles quickly
- Test AWS connections
To install this tool, you can clone the repository and build the project:
git clone https://github.com/user-cube/aws-cli-manager.git
cd aws-cli-manager
go buildgo install github.com/user-cube/aws-cli-manager/v2@latestYou can also download the compiled binary from the releases page.
Please change VERSION and ARCH to the desired version and architecture before running the following command:
VERSION=1.2.0
ARCH=linux_amd64
wget https://github.com/user-cube/aws-cli-manager/releases/download/$VERSION/aws-cli-manager_$VERSION_$ARCH.tar.gzAfter downloading the tarball, extract the contents and run the tool:
tar -xvf aws-cli-manager_$VERSION_$ARCH.tar.gz
sudo cp aws-cli-manager /usr/local/bin/aws-cli-managerAfter building the project, you can run the tool with:
./aws-cli-managerIf you copied the binary to /usr/local/bin, you can run the tool with:
aws-cli-manageraws-cli-manager- Interactive profile selectionaws-cli-manager profile add- Add a new AWS profileaws-cli-manager profile select- Select a profile interactivelyaws-cli-manager profile select [NAME]- Select a specific profile by nameaws-cli-manager current- Show the currently selected profile
aws-cli-manager install- Install AWS CLI if not already installedaws-cli-manager test- Test the connection to AWSaws-cli-manager completion [SHELL]- Generate shell completion scripts
The AWS CLI Manager now features an enhanced UI with:
- Color-coded outputs for better readability
- Interactive prompts with improved selection indicators (→)
- Profile highlighting to show your current active profile
- Formatted tables for profile information
- Clearer success/error messaging
The demo directory contains several scripts to demonstrate the features of AWS CLI Manager:
To take screenshots for documentation or presentations, you can use these scripts:
# Set up demo scripts
cd demo
chmod +x *.sh
# Generate dummy AWS profiles (safe for screenshots)
./generate_dummy_profiles.sh
# Run the dummy profile screenshot script
./make_demo.shThe dummy profiles include:
demo-dev(us-east-1) - Basic profiledemo-staging(eu-west-1) - Initially selected profiledemo-prod(us-west-2) - SSO-enabled profiledemo-admin(us-east-2) - SSO-enabled profile
These profiles use fake credentials and are safe to include in screenshots.
To enable autocompletion for the tool, you can run the following command:
echo 'source <(aws-cli-manager completion SHELL)' >> ~/.SHEELrcPlease replace SHELL with the shell you are using (bash, zsh, fish).
If you don't to add the command to your shell configuration file, you can run the following command:
aws-cli-manager completion SHELL -hThis will output a command that you can run to enable autocompletion without modifying your shell configuration file.
