AWS is the most widely used cloud service in the world and provides a collection of services that can be leveraged by developers to build their applications. To manage the various AWS services, you can use either the AWS Management Console or the AWS Command Line Interface. However if you want automate your development environment setup using scripts, the AWS CLI is your preferred tool.
Homebrew is a free package manager for Mac OS and helps you to manage software in your Mac. You can install the software you need through command line in no time. It makes the process of installing and uninstalling software so muck easier and faster.