在Mac以Homebrew安裝AWS CLI命令工具。
安裝環境:
- MacBook Pro Apple M1 Pro
- macOS Ventura 13.0.1
- Homebrew 3.6.7
安裝
在終端機輸入brew install awscli
安裝AWS CLI。
% brew install awscli
==> Fetching dependencies for awscli: mpdecimal, ca-certificates, sqlite, xz, python@3.11, docutils and six
...
==> Installing dependencies for awscli: mpdecimal, ca-certificates, sqlite, xz, python@3.11, docutils and six
...
==> Installing awscli
==> Pouring awscli--2.9.19.arm64_ventura.bottle.tar.gz
==> Caveats
The "examples" directory has been installed to:
/opt/homebrew/share/awscli/examples
zsh completions and functions have been installed to:
/opt/homebrew/share/zsh/site-functions
==> Summary
🍺 /opt/homebrew/Cellar/awscli/2.9.19: 13,169 files, 114.8MB
==> Running `brew cleanup awscli`...
...
==> awscli
The "examples" directory has been installed to:
/opt/homebrew/share/awscli/examples
安裝完成後輸入aws --version
檢視安裝版本,本範例為2.9.19。
% aws --version
aws-cli/2.9.19 Python/3.11.1 Darwin/22.1.0 source/arm64 prompt/off
沒有留言:
張貼留言