• Stars
    star
    2,783
  • Rank 15,955 (Top 0.4 %)
  • Language
    TypeScript
  • License
    Apache License 2.0
  • Created almost 6 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development.
AWS Amplify

Discord Chat build:started

Reporting Bugs/Feature Requests

Open Bugs Feature Requests Closed Issues

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

Install the CLI

  • Requires Node.jsยฎ version 18 or later

Install and configure the Amplify CLI as follows:

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

Note: If you're having permission issues on your system installing the CLI, please try the following command:

$ sudo npm install -g @aws-amplify/cli --unsafe-perm=true
$ amplify configure

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 pull Fetch upstream backend environment definition changes from the cloud and updates the local environment to match that definition.
amplify publish Runs 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 serve Runs amplify push, and then executes the project's start command to test run the client-side application.
amplify delete Deletes 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.
amplify env add | list | remove | get | pull | import | checkout See 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:

  • At the command line, run yarn lint at the top-level directory. This invokes eslint to check for lint errors in all of our packages.
  • You can use yarn lint to find some of the lint errors. To attempt fix them, go to the package that has errors and run yarn 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.

Contributing

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

More Repositories

1

amplify-js

A declarative JavaScript library for application development using cloud services.
TypeScript
9,360
star
2

aws-sdk-ios

AWS SDK for iOS. For more information, see our web site:
Objective-C
1,657
star
3

amplify-flutter

A declarative library with an easy-to-use interface for building Flutter applications on AWS.
Dart
1,282
star
4

aws-sdk-android

AWS SDK for Android. For more information, see our web site:
Java
1,009
star
5

amplify-ui

Amplify UI is a collection of accessible, themeable, performant React (and more!) components that can connect directly to the cloud.
TypeScript
759
star
6

docs

AWS Amplify Framework Documentation
MDX
471
star
7

amplify-hosting

AWS Amplify Hosting provides a Git-based workflow for deploying and hosting fullstack serverless web applications.
Dockerfile
439
star
8

amplify-swift

A declarative library for application development using cloud services.
Swift
423
star
9

learn

AWS Amplify Learn
JavaScript
257
star
10

amplify-android

The fastest and easiest way to use AWS from your Android app.
Java
227
star
11

amplify-studio

AWS Amplify Studio (Formerly Admin UI)
131
star
12

amplify-js-samples

A Sample Repository for Amplify JS Samples
116
star
13

amplify-backend

Home to all tools related to Amplify's code-first DX (Gen 2) for building fullstack apps on AWS
TypeScript
102
star
14

amplify-category-api

The AWS Amplify CLI is a toolchain for simplifying serverless web and mobile development. This plugin provides functionality for the API category, allowing for the creation and management of GraphQL and REST based backends for your amplify project.
TypeScript
74
star
15

amplify-codegen

Amplify Codegen is a JavaScript toolkit library for frontend and mobile developers building Amplify applications.
TypeScript
58
star
16

amplify-codegen-ui

Generate React components for use in an AWS Amplify project.
TypeScript
30
star
17

aws-sdk-ios-spm

This repository enables Swift Package Manager support for the AWS Mobile SDK for iOS
Swift
28
star
18

discord-bot

Discord bot for the AWS Amplify Discord Server
TypeScript
24
star
19

amplify-ios-samples

Swift
22
star
20

aws-amplify.github.io

Amplify Framework Website
HTML
20
star
21

aws-appsync-realtime-client-ios

A client implementation in Swift for the AWS AppSync service on the iOS platform.
Swift
16
star
22

amplify-ci-support

Scripts and tools for managing Amplify projects in continuous integration environments, and for local developer setup of integration test environments.
Python
16
star
23

maplibre-gl-js-amplify

TypeScript
13
star
24

maplibre-gl-draw-circle

Supports drawing/editing a circle on a Mapbox map.
JavaScript
12
star
25

amplify-cli-export-construct

TypeScript
11
star
26

amplify-ui-swift-authenticator

The Amplify UI Authenticator is a component that supports several authentiation flows using Amplify Authentication.
Swift
11
star
27

amplify-ui-android

Amplify UI for Android is a collection of accessible, themeable, performant Android components that can connect directly to the cloud.
Kotlin
9
star
28

amplify-ui-swift-liveness

This repository offers a UI component for Amazon Rekognition Face Liveness, enabling developers to ensure that only authentic users, and not bad actors using spoofs, can access their services.
Swift
8
star
29

amplify-android-samples

Samples for testing out Amplify Android libraries
Kotlin
6
star
30

amplify-ios-maplibre

An adapter to leverage Amplify Geo with the map rendering of MapLibre.
Swift
4
star
31

amplify-swift-utils-notifications

This repository serves as a dependency package for amplify-swift, providing valuable functionalities to handle push notifications on iOS and macOS platforms.
Swift
4
star
32

amplify-swift-plugin-toolkit

A toolkit for developing Swift Plugins for Amplify.
Swift
1
star