Trying to figure out how to install the AWS Amplify CLI for your Mac? This is the article for you.
There are two options to install the AWS Amplify CLI on your mac: npm or curl.
Install Amplify Using NPM
Using NPM requires you to have the npm command line tool installed. If you do, go ahead and open your terminal and run the below command to install the amplify CLI.
npm install -g @aws-amplify/cli
We’re installing amplify with the -g
flag which tells npm to install this module globally. This will make it so we can use the CLI no matter what project directory we’re in.
Install Amplify Using Curl
This option does not rely on any third party dependencies. The curl
command comes pre-installed on any mac so there’s no additional things you need to download to install the CLI.
To go ahead and install amplify using curl, run the command below:
curl -sL https://aws-amplify.github.io/amplify-cli/install | bash && $SHELL
No matter which option you choose, you should see the following confirmation verbage in your console:
And that’s it! You now have the Amplify CLI installed and can get started creating your new project.
For next steps, try running amplify configure
in your console to get started configuring your new project.