Step: 1 Launch your terminal on macOS/Linux or Command Prompt/PowerShell on Windows.
Step: 2 In the terminal or command prompt, type the command aws --version. Then Hit the Enter key to execute the command.
Step: 3 Wait for the command to run and display the output.
Step: 4 Look for the version number in the output, which typically appears in the format aws-cli/x.y.z.
Step: 5 After noting the version, you can close the terminal or command prompt window.