You can use pip command to upgrade AWS CLI to the latest version as shown below –
## Get current AWS CLI version
## Upgrade AWS CLI to latest version
pip install --upgrade awscli
## Get updated AWS CLI version
Note: This will only work if you have installed the AWS CLI using the pip command in the first place. If you have used and another package manager or directly compiled from the source then follow this document.