Update AWS CLI on macOS
2024年02月15日
% sudo installer -pkg AWSCLIV2.pkg -target /
Verify that the shell can find and run the
% which aws
% aws --version
Install or update to the latest version of the AWS CLI
% curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg"
% Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 37.4M 100 37.4M 0 0 3270k 0 0:00:11 0:00:11 --:--:-- 6420k
% sudo installer -pkg AWSCLIV2.pkg -target /
Password: installer: Package name is AWS Command Line Interface installer: Upgrading at base path / installer: The upgrade was successful.
Verify that the shell can find and run the
aws
command in your $PATH
.% which aws
/usr/local/bin/aws
% aws --version
aws-cli/2.15.20 Python/3.11.6 Darwin/22.2.0 exe/x86_64 prompt/off
References
Install or update to the latest version of the AWS CLI