Home

Awesome

<a href="https://aws-amplify.github.io/" target="_blank"> <img src="https://s3.amazonaws.com/aws-mobile-hub-images/aws-amplify-logo.png" alt="AWS Amplify" width="550" > </a> <p> <a href="https://discord.gg/jWVbPfC" target="_blank"> <img src="https://img.shields.io/discord/308323056592486420?logo=discord"" alt="Discord Chat" /> </a> <a href="https://www.npmjs.com/package/@aws-amplify/cli"> <img src="https://img.shields.io/npm/v/@aws-amplify/cli.svg" /> </a> </p>

Reporting Bugs/Feature Requests

Open Bugs Feature Requests Closed Issues

[!Important]

Amplify Gen 2 is now generally available

If you are starting a new project, we recommend starting with Amplify Gen 2.

If you are an existing Gen 1 customer, we recommend that you continue working with your Gen 1 Amplify project. We are actively developing migration tooling to aid in transitioning your project from Gen 1 to Gen 2. We remain committed to supporting both Gen 1 and Gen 2 for the foreseeable future.

Customers on Gen 1 will continue to receive support for high-priority bugs and essential security updates.

AWS Amplify CLI (Gen 1)

The AWS Amplify CLI is a toolchain which includes a robust feature set for simplifying mobile and web application development. The CLI uses AWS CloudFormation and nested stacks to allow you to add or modify configurations locally before you push them for execution in your account.

Install the CLI

Install and configure the Amplify CLI as follows:

$ npm install -g @aws-amplify/cli
$ amplify configure

Commands Summary

The Amplify CLI supports the commands shown in the following table.

CommandDescription
amplify configureConfigures the AWS access credentials, AWS Region and sets up a new AWS User Profile
amplify initInitializes a new project, sets up deployment resources in the cloud and prepares your project for Amplify.
amplify configure projectUpdates configuration settings used to setup the project during the init step.
amplify add <category>Adds cloud features to your app.
amplify update <category>Updates existing cloud features in your app.
amplify push [--no-gql-override]Provisions cloud resources with the latest local developments. The 'no-gql-override' flag does not automatically compile your annotated GraphQL schema and will override your local AppSync resolvers and templates.
amplify pullFetch upstream backend environment definition changes from the cloud and updates the local environment to match that definition.
amplify publishRuns amplify push, publishes a static assets to Amazon S3 and Amazon CloudFront (*hosting category is required).
amplify status [ <category>...]Displays the state of local resources that haven't been pushed to the cloud (Create/Update/Delete).
amplify status -v [ <category>...]Verbose mode - Shows the detailed verbose diff between local and deployed resources, including cloudformation-diff
amplify serveRuns amplify push, and then executes the project's start command to test run the client-side application.
amplify deleteDeletes resources tied to the project.
amplify help | amplify <category> helpDisplays help for the core CLI.
amplify codegen add | generatePerforms generation of strongly typed objects using a GraphQL schema.
amplify env add | list | remove | get | pull | import | checkoutSee the multienv docs.

Category specific commands:

Tutorials

Developing

To set up your local development environment, go to Local Environment Setup.

To test your category, do the following:

cd <your-test-front-end-project>
amplify-dev init
amplify-dev <your-category> <subcommand>

Before pushing code or sending a pull request, do the following:

Contributing

We are thankful for any contributions from the community. Look at our Contribution Guidelines.