amplify-cli

授权协议 Apache-2.0 License
开发语言 JavaScript
所属分类 应用工具、 终端/远程登录
软件类型 开源软件
地区 不详
投 递 者 乐正心思
操作系统 跨平台
开源组织
适用人群 未知
 软件概览
AWS Amplify

Reporting Bugs/Feature Requests

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 12 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.

 相关资料
  • Amplify’s request adds some additional features to jQuery’s ajax method while abstracting away the underlying data source.

  • Amplify 用于与使用 JavaScript 应用程序的云服务进行交互。AWS Amplify 库分为多个类别,并计划在未来增加更多分类。 这是一个跨越不同类别操作的声明性接口,以便将常见任务更容易地添加到应用程序中。默认实现适用于Amazon Web Services(AWS)资源,但设计为可打开并可插入,以便与其他云服务提供一个可实现的或自定义后端。 当前类别以授权开始。程序员可以使用它为

  • 用于使用云服务进行应用程序开发的声明性 JavaScript 库。 AWS Amplify 为不同类别的云操作提供了一个声明性且易于使用的界面。 AWS Amplify 适用于任何基于 JavaScript 的前端工作流程,适用于移动开发人员的 React Native。 我们的默认实现适用于亚马逊网络服务(AWS),但 AWS Amplify 旨在为任何自定义后端或服务开放和可插入。 特性/AP

  • Amplify Flutter AWS Amplify provides a declarative and easy-to-use interface across different categories of cloud operations. Our default implementation works with Amazon Web Services (AWS), but AWS A

  • Awesome AWS Amplify curates the best AWS Amplify, tools, tutorials, articles and more. PRs are welcome! Check out the Amplify Discord server Getting Started Github Documentation Workshops Serverless G

  • AWS Amplify Vue Starter A VueJs starter app integrated with aws-amplify. Please submit issues to the aws-amplify repository. Getting Started AWS Amplify Integration Explained Setup AWS Amplify Auth Ro