A CLI toolchain for simplifying serverless web and mobile development.
Switch branches/tags
graphql-versioned-transformer@1.0.34-multienv.0 graphql-versioned-transformer@1.0.33 graphql-versioned-transformer@1.0.33-publish-test.0 graphql-versioned-transformer@1.0.33-beta.0 graphql-versioned-transformer@1.0.32 graphql-versioned-transformer@1.0.32-beta.0 graphql-versioned-transformer@1.0.31 graphql-versioned-transformer@1.0.31-beta.0 graphql-versioned-transformer@1.0.30 graphql-versioned-transformer@1.0.30-beta.1 graphql-versioned-transformer@1.0.30-beta.0 graphql-versioned-transformer@1.0.29 graphql-versioned-transformer@1.0.29-beta.0 graphql-versioned-transformer@1.0.28 graphql-versioned-transformer@1.0.28-beta.0 graphql-versioned-transformer@1.0.24 graphql-versioned-transformer@1.0.22 graphql-versioned-transformer@1.0.21 graphql-versioned-transformer@1.0.20 graphql-versioned-transformer@1.0.19 graphql-versioned-transformer@1.0.18 graphql-versioned-transformer@1.0.17 graphql-versioned-transformer@1.0.14 graphql-versioned-transformer@1.0.13 graphql-versioned-transformer@1.0.13-publish-test.0 graphql-versioned-transformer@1.0.12 graphql-transformers-e2e-tests@1.0.34-multienv.0 graphql-transformers-e2e-tests@1.0.33 graphql-transformers-e2e-tests@1.0.33-publish-test.0 graphql-transformers-e2e-tests@1.0.33-beta.0 graphql-transformers-e2e-tests@1.0.32 graphql-transformers-e2e-tests@1.0.32-beta.0 graphql-transformers-e2e-tests@1.0.31 graphql-transformers-e2e-tests@1.0.31-beta.0 graphql-transformers-e2e-tests@1.0.30 graphql-transformers-e2e-tests@1.0.30-beta.1 graphql-transformers-e2e-tests@1.0.30-beta.0 graphql-transformers-e2e-tests@1.0.29 graphql-transformers-e2e-tests@1.0.29-beta.0 graphql-transformers-e2e-tests@1.0.28 graphql-transformers-e2e-tests@1.0.28-beta.0 graphql-transformers-e2e-tests@1.0.24 graphql-transformers-e2e-tests@1.0.22 graphql-transformers-e2e-tests@1.0.21 graphql-transformers-e2e-tests@1.0.20 graphql-transformers-e2e-tests@1.0.19 graphql-transformers-e2e-tests@1.0.18 graphql-transformers-e2e-tests@1.0.17 graphql-transformers-e2e-tests@1.0.14 graphql-transformers-e2e-tests@1.0.13 graphql-transformers-e2e-tests@1.0.13-publish-test.0 graphql-transformers-e2e-tests@1.0.12 graphql-transformer-core@1.0.33 graphql-transformer-core@1.0.33-publish-test.0 graphql-transformer-core@1.0.33-beta.0 graphql-transformer-core@1.0.32 graphql-transformer-core@1.0.32-beta.0 graphql-transformer-core@1.0.31 graphql-transformer-core@1.0.31-beta.0 graphql-transformer-core@1.0.30 graphql-transformer-core@1.0.30-beta.1 graphql-transformer-core@1.0.30-beta.0 graphql-transformer-core@1.0.29 graphql-transformer-core@1.0.29-beta.0 graphql-transformer-core@1.0.28 graphql-transformer-core@1.0.28-beta.0 graphql-transformer-core@1.0.24 graphql-transformer-core@1.0.22 graphql-transformer-core@1.0.21 graphql-transformer-core@1.0.20 graphql-transformer-core@1.0.19 graphql-transformer-core@1.0.18 graphql-transformer-core@1.0.17 graphql-transformer-core@1.0.14 graphql-transformer-core@1.0.13 graphql-transformer-core@1.0.13-publish-test.0 graphql-transformer-core@1.0.12 graphql-transformer-common@1.0.34-multienv.0 graphql-transformer-common@1.0.33 graphql-transformer-common@1.0.33-publish-test.0 graphql-transformer-common@1.0.33-beta.0 graphql-transformer-common@1.0.32 graphql-transformer-common@1.0.32-beta.0 graphql-transformer-common@1.0.31 graphql-transformer-common@1.0.31-beta.0 graphql-transformer-common@1.0.30 graphql-transformer-common@1.0.30-beta.1 graphql-transformer-common@1.0.30-beta.0 graphql-transformer-common@1.0.29 graphql-transformer-common@1.0.29-beta.0 graphql-transformer-common@1.0.28 graphql-transformer-common@1.0.28-beta.0 graphql-transformer-common@1.0.24 graphql-transformer-common@1.0.22 graphql-transformer-common@1.0.21 graphql-transformer-common@1.0.20 graphql-transformer-common@1.0.19 graphql-transformer-common@1.0.18 graphql-transformer-common@1.0.17 graphql-transformer-common@1.0.14
Nothing to show
Clone or download
UnleashedMind and kaustavghosh06 fix a configure project bug (#464)
* fix a configure project bug

* through lint
Latest commit 34704fb Nov 16, 2018

Readme.md

AWS Amplify

Gitter Chat build:started

AWS Amplify CLI

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, which allows you to add or modify configurations locally before you push them for execution in your account.

If you're using Windows, the CLI currently supports Windows Subsystem for Linux.

Install the CLI

  • Requires Node.js® version 8.11.x or later

Install and configure the Amplify CLI as follows:

$ npm install -g @aws-amplify/cli
$ amplify configure
  • Warning: Please don't use yarn for installing the CLI. It has known issues. Use npm instead as advised above.

Commands Summary

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

Command Description
amplify configure Configures the AWS access credentials, AWS Region and sets up a new AWS User Profile
amplify init Initializes a new project, sets up deployment resources in the cloud and prepares your project for Amplify.
amplify configure project Updates 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 publish Runs amplify push, publishes a static assets to Amazon S3 and Amazon CloudFront (*hosting category is required).
amplify status Displays the state of local resources that haven't been pushed to the cloud (Create/Update/Delete).
amplify serve Runs amplify push, and then executes the project's start command to test run the client-side application.
amplify delete (Experimental Feature) Attempts to delete resources tied to the project.
amplify help | amplify <category> help Displays help for the core CLI.
amplify codegen add | generate Performs generation of strongly typed objects using a GraphQL schema.

Category specific commands:

Tutorials

Contributing

To set up your local dev environment, go to the amplify-cli directory and then run the following:
yarn config set workspaces-experimental true
npm run setup-dev

To test your category, do the following:
cd <your test front-end project>
amplify init
amplify <your category> <subcommand>

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

  • At the command line, run npm run lint at the top-level directory. This invokes lerna to check for lint errors in all of our packages.
  • You can use eslint to fix some of the lint errors. To use it, go to the package that has errors and run lint-fix
  • If there are any remaining lint errors, resolve them manually. Linting your code is a best practice that ensures good code quality so it's important that you don't skip this step.