{"_id":"@aemilia/cli","_rev":"2-8530f6ac0a363515d20264f3bf738e83","name":"@aemilia/cli","dist-tags":{"latest":"1.1.4"},"versions":{"1.1.4":{"name":"@aemilia/cli","version":"1.1.4","description":"awsmobile cli enables easy incorporation of aws features into your project","main":"bin/awsmobile","bin":{"awsmobile":"bin/awsmobile","awsmobile-start":"bin/awsmobile-start","awsmobile-init":"bin/awsmobile-init","awsmobile-pull":"bin/awsmobile-pull","awsmobile-push":"bin/awsmobile-push","awsmobile-delete":"bin/awsmobile-delete","awsmobile-publish":"bin/awsmobile-publish","awsmobile-console":"bin/awsmobile-console","awsmobile-configure":"bin/awsmobile-configure","awsmobile-features":"bin/awsmobile-features","awsmobile-run":"bin/awsmobile-run"},"scripts":{"test":"jest --coverage"},"repository":{"type":"git","url":"git+https://github.com/aws/awsmobile-cli.git"},"author":{},"license":"ISC","bugs":{"url":"https://github.com/aws/awsmobile-cli/issues"},"homepage":"https://github.com/aws/awsmobile-cli","dependencies":{"@aemilia/awsmobile-sdk":"0.0.1","archiver":"^2.1.0","aws-amplify":"^0.2.0","aws-sdk":"^2.131.0","chalk":"^2.0.1","commander":"^2.11.0","deep-equal":"^1.0.1","download-git-repo":"^1.0.2","extract-zip":"^1.6.6","findup-sync":"^2.0.0","fs-extra":"^4.0.2","git-branch":"^2.0.1","git-repo-name":"^0.6.0","git-username":"^1.0.0","graphql":"^0.13.2","http":"0.0.0","https":"^1.0.0","inquirer":"^3.2.1","js-yaml":"^3.9.1","lodash":"^4.17.4","mime-types":"^2.1.16","moment":"^2.21.0","n-readlines":"^0.2.7","opn":"^5.1.0","ora":"^1.3.0","os":"^0.1.1","path":"^0.12.7","remote-origin-url":"^1.0.0","simple-git":"^1.92.0","util":"^0.10.3","uuid":"^3.1.0"},"devDependencies":{"codecov":"^3.0.0","jest":"^22.4.3","mockirer":"^2.0.1"},"jest":{"automock":false,"testEnvironment":"node","coveragePathIgnorePatterns":["/node_modules/","/lib/aws-operations/mobile-yaml-schema.js"]},"licenseText":"Apache License\n                           Version 2.0, January 2004\n                        http://www.apache.org/licenses/\n\n   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION\n\n   1. Definitions.\n\n      \"License\" shall mean the terms and conditions for use, reproduction,\n      and distribution as defined by Sections 1 through 9 of this document.\n\n      \"Licensor\" shall mean the copyright owner or entity authorized by\n      the copyright owner that is granting the License.\n\n      \"Legal Entity\" shall mean the union of the acting entity and all\n      other entities that control, are controlled by, or are under common\n      control with that entity. For the purposes of this definition,\n      \"control\" means (i) the power, direct or indirect, to cause the\n      direction or management of such entity, whether by contract or\n      otherwise, or (ii) ownership of fifty percent (50%) or more of the\n      outstanding shares, or (iii) beneficial ownership of such entity.\n\n      \"You\" (or \"Your\") shall mean an individual or Legal Entity\n      exercising permissions granted by this License.\n\n      \"Source\" form shall mean the preferred form for making modifications,\n      including but not limited to software source code, documentation\n      source, and configuration files.\n\n      \"Object\" form shall mean any form resulting from mechanical\n      transformation or translation of a Source form, including but\n      not limited to compiled object code, generated documentation,\n      and conversions to other media types.\n\n      \"Work\" shall mean the work of authorship, whether in Source or\n      Object form, made available under the License, as indicated by a\n      copyright notice that is included in or attached to the work\n      (an example is provided in the Appendix below).\n\n      \"Derivative Works\" shall mean any work, whether in Source or Object\n      form, that is based on (or derived from) the Work and for which the\n      editorial revisions, annotations, elaborations, or other modifications\n      represent, as a whole, an original work of authorship. For the purposes\n      of this License, Derivative Works shall not include works that remain\n      separable from, or merely link (or bind by name) to the interfaces of,\n      the Work and Derivative Works thereof.\n\n      \"Contribution\" shall mean any work of authorship, including\n      the original version of the Work and any modifications or additions\n      to that Work or Derivative Works thereof, that is intentionally\n      submitted to Licensor for inclusion in the Work by the copyright owner\n      or by an individual or Legal Entity authorized to submit on behalf of\n      the copyright owner. For the purposes of this definition, \"submitted\"\n      means any form of electronic, verbal, or written communication sent\n      to the Licensor or its representatives, including but not limited to\n      communication on electronic mailing lists, source code control systems,\n      and issue tracking systems that are managed by, or on behalf of, the\n      Licensor for the purpose of discussing and improving the Work, but\n      excluding communication that is conspicuously marked or otherwise\n      designated in writing by the copyright owner as \"Not a Contribution.\"\n\n      \"Contributor\" shall mean Licensor and any individual or Legal Entity\n      on behalf of whom a Contribution has been received by Licensor and\n      subsequently incorporated within the Work.\n\n   2. Grant of Copyright License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      copyright license to reproduce, prepare Derivative Works of,\n      publicly display, publicly perform, sublicense, and distribute the\n      Work and such Derivative Works in Source or Object form.\n\n   3. Grant of Patent License. Subject to the terms and conditions of\n      this License, each Contributor hereby grants to You a perpetual,\n      worldwide, non-exclusive, no-charge, royalty-free, irrevocable\n      (except as stated in this section) patent license to make, have made,\n      use, offer to sell, sell, import, and otherwise transfer the Work,\n      where such license applies only to those patent claims licensable\n      by such Contributor that are necessarily infringed by their\n      Contribution(s) alone or by combination of their Contribution(s)\n      with the Work to which such Contribution(s) was submitted. If You\n      institute patent litigation against any entity (including a\n      cross-claim or counterclaim in a lawsuit) alleging that the Work\n      or a Contribution incorporated within the Work constitutes direct\n      or contributory patent infringement, then any patent licenses\n      granted to You under this License for that Work shall terminate\n      as of the date such litigation is filed.\n\n   4. Redistribution. You may reproduce and distribute copies of the\n      Work or Derivative Works thereof in any medium, with or without\n      modifications, and in Source or Object form, provided that You\n      meet the following conditions:\n\n      (a) You must give any other recipients of the Work or\n          Derivative Works a copy of this License; and\n\n      (b) You must cause any modified files to carry prominent notices\n          stating that You changed the files; and\n\n      (c) You must retain, in the Source form of any Derivative Works\n          that You distribute, all copyright, patent, trademark, and\n          attribution notices from the Source form of the Work,\n          excluding those notices that do not pertain to any part of\n          the Derivative Works; and\n\n      (d) If the Work includes a \"NOTICE\" text file as part of its\n          distribution, then any Derivative Works that You distribute must\n          include a readable copy of the attribution notices contained\n          within such NOTICE file, excluding those notices that do not\n          pertain to any part of the Derivative Works, in at least one\n          of the following places: within a NOTICE text file distributed\n          as part of the Derivative Works; within the Source form or\n          documentation, if provided along with the Derivative Works; or,\n          within a display generated by the Derivative Works, if and\n          wherever such third-party notices normally appear. The contents\n          of the NOTICE file are for informational purposes only and\n          do not modify the License. You may add Your own attribution\n          notices within Derivative Works that You distribute, alongside\n          or as an addendum to the NOTICE text from the Work, provided\n          that such additional attribution notices cannot be construed\n          as modifying the License.\n\n      You may add Your own copyright statement to Your modifications and\n      may provide additional or different license terms and conditions\n      for use, reproduction, or distribution of Your modifications, or\n      for any such Derivative Works as a whole, provided Your use,\n      reproduction, and distribution of the Work otherwise complies with\n      the conditions stated in this License.\n\n   5. Submission of Contributions. Unless You explicitly state otherwise,\n      any Contribution intentionally submitted for inclusion in the Work\n      by You to the Licensor shall be under the terms and conditions of\n      this License, without any additional terms or conditions.\n      Notwithstanding the above, nothing herein shall supersede or modify\n      the terms of any separate license agreement you may have executed\n      with Licensor regarding such Contributions.\n\n   6. Trademarks. This License does not grant permission to use the trade\n      names, trademarks, service marks, or product names of the Licensor,\n      except as required for reasonable and customary use in describing the\n      origin of the Work and reproducing the content of the NOTICE file.\n\n   7. Disclaimer of Warranty. Unless required by applicable law or\n      agreed to in writing, Licensor provides the Work (and each\n      Contributor provides its Contributions) on an \"AS IS\" BASIS,\n      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or\n      implied, including, without limitation, any warranties or conditions\n      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A\n      PARTICULAR PURPOSE. You are solely responsible for determining the\n      appropriateness of using or redistributing the Work and assume any\n      risks associated with Your exercise of permissions under this License.\n\n   8. Limitation of Liability. In no event and under no legal theory,\n      whether in tort (including negligence), contract, or otherwise,\n      unless required by applicable law (such as deliberate and grossly\n      negligent acts) or agreed to in writing, shall any Contributor be\n      liable to You for damages, including any direct, indirect, special,\n      incidental, or consequential damages of any character arising as a\n      result of this License or out of the use or inability to use the\n      Work (including but not limited to damages for loss of goodwill,\n      work stoppage, computer failure or malfunction, or any and all\n      other commercial damages or losses), even if such Contributor\n      has been advised of the possibility of such damages.\n\n   9. Accepting Warranty or Additional Liability. While redistributing\n      the Work or Derivative Works thereof, You may choose to offer,\n      and charge a fee for, acceptance of support, warranty, indemnity,\n      or other liability obligations and/or rights consistent with this\n      License. However, in accepting such obligations, You may act only\n      on Your own behalf and on Your sole responsibility, not on behalf\n      of any other Contributor, and only if You agree to indemnify,\n      defend, and hold each Contributor harmless for any liability\n      incurred by, or claims asserted against, such Contributor by reason\n      of your accepting any such warranty or additional liability.\n\n   END OF TERMS AND CONDITIONS\n\n   APPENDIX: How to apply the Apache License to your work.\n\n      To apply the Apache License to your work, attach the following\n      boilerplate notice, with the fields enclosed by brackets \"{}\"\n      replaced with your own identifying information. (Don't include\n      the brackets!)  The text should be enclosed in the appropriate\n      comment syntax for the file format. We also recommend that a\n      file or class name and description of purpose be included on the\n      same \"printed page\" as the copyright notice for easier\n      identification within third-party archives.\n\n   Copyright {yyyy} {name of copyright owner}\n\n   Licensed under the Apache License, Version 2.0 (the \"License\");\n   you may not use this file except in compliance with the License.\n   You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n   Unless required by applicable law or agreed to in writing, software\n   distributed under the License is distributed on an \"AS IS\" BASIS,\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n   See the License for the specific language governing permissions and\n   limitations under the License.\n","noticeText":"awsmobile-cli\nCopyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.","_id":"@aemilia/cli@1.1.4","dist":{"shasum":"9018e9049b0443a79f19706e0b66a564cb245e01","tarball":"https://registry.npmjs.org/@aemilia/cli/-/cli-1.1.4.tgz","fileCount":281,"unpackedSize":1356075,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbBFrWCRA9TVsSAnZWagAAAKgQAIBMzN6qFytfwcEi6ozs\nXFb89xcuFUVd1X1vvvLoz9vRA59EP0kK8+3wsUChsLN8k1FgXy4In53Mh1/x\n8eIigzOM1LDPsscc6Nt1wUhKqrZX0uidpQS4HXppt+ttYs7rqp7HuCoLs2Tn\nzUQuHbOtofHX87GFhP4YEbhP9EvRHp9OhdTnVhxD2X5wNgFo5Xe9b2exhEtB\n4/K/uzCXza+R0OKvzjjsH3pQPGop2X4FLCEbt1rLVKcLWgN4VRFyu6dM7a13\naqRY85KELlUPCLHRM+kXNQaH2woqPBfgvtPSYLJmExSXK3Tf4aHXea7ufle1\nLg6LdEUcxKpKPamBO0Qjfh9vSh7K2Wmlo/pzviGitXGb9nBHSv+zFAiZaeT2\nmM/XPrcVL70KCaUdWjqzjo79UvyDPuz4BMY8ShuY+x+GnhZ5pa0h1iVcbfoc\nnodOzU2TFWdvJWJjL+Csh2WywX6w0OdTp26xbNDIcbFYR5nL/xF+AHwWLrQF\nhx8krZFPyg33OG628fb3CDPky3qTiPYUW7F4StWILIztSxPsiKSEATbNhZOc\nvW+HP0ISW3wGrLvi+jupJWoulNhiCUc1daD9d/Uvv1fT+aGAHQiDS+ucyc4W\nH2g18gfUKL5r/E+J/BdZF3AAX41rNsvy/vOL67JB1noLG57lTU9BNg9/VGyX\n8s5K\r\n=kyTJ\r\n-----END PGP SIGNATURE-----\r\n","integrity":"sha512-M3/ZthzRWb2FS39UwZ4E6vLN4B2SvBZHBiqQ1FWMsBKMOI+N5FwxGJsVxcZaoPhkSI+DIIlpShbGRe/yBFrk+Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDd3ePLgV/FapZLxSheTjNt2Lxx7/gCeed2QachzLGqbQIgWzQl9xoTchnvEB5l6utkE3h2bobG5IYcapqbXOuwnYM="}]},"maintainers":[{"name":"shufankang","email":"shufakan@amazon.com"}],"_npmUser":{"name":"shufankang","email":"shufakan@amazon.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cli_1.1.4_1527012053831_0.5333548733508919"},"_hasShrinkwrap":false}},"time":{"created":"2018-05-22T18:00:53.830Z","1.1.4":"2018-05-22T18:00:53.999Z","modified":"2022-06-12T14:20:05.118Z"},"maintainers":[{"name":"shufankang","email":"shufakan@amazon.com"}],"description":"awsmobile cli enables easy incorporation of aws features into your project","homepage":"https://github.com/aws/awsmobile-cli","repository":{"type":"git","url":"git+https://github.com/aws/awsmobile-cli.git"},"author":{},"bugs":{"url":"https://github.com/aws/awsmobile-cli/issues"},"license":"ISC","readme":"# awsmobile-CLI\n\n<a href=\"https://nodei.co/npm/awsmobile-cli/\">\n  <img src=\"https://nodei.co/npm/awsmobile-cli.svg?downloads=true&downloadRank=true&stars=true\">\n</a>\n\n<p>\n  <a href=\"https://travis-ci.org/aws/awsmobile-cli\">\n    <img src=\"https://travis-ci.org/aws/awsmobile-cli.svg?branch=master\" alt=\"build:started\">\n  </a>\n\n  <a href=\"https://codecov.io/gh/aws/awsmobile-cli\">\n    <img src=\"https://codecov.io/gh/aws/awsmobile-cli/branch/master/graph/badge.svg\" />\n  </a>\n</p>\n\nThe awsmobile-CLI, built on top of AWS Mobile Hub, provides a command line interface for frontend JavaScript developers to seamlessly enable and configure AWS services into their apps. With minimal configuration, you can start using all of the functionality provided by the AWS Mobile Hub from your favorite terminal program.\n\n* [Installation](#installation)\n* [Configuration](#configuration)\n* [Getting Started](#getting-started)\n* [Commands Summary](#commands-summary)\n* [Usage](#usage)\n\n\n## Installation\n\nThe easiest way to install is using npm or yarn\n\n```\nnpm install -g awsmobile-cli\n\nor\n\nyarn global add awsmobile-cli\n```\n\n## Configuration\n\n* [Sign up for the AWS Free Tier](https://aws.amazon.com/free/) to learn and prototype at little or no cost.\n\n* Configure the CLI with your AWS credentials\n\n```\nawsmobile configure\n```\n\nCheck [here](#awsmobile-configure) for more details about configuration\n\n## Getting Started\n\nTo create a new Mobile Hub project and pull the project configuration into your app, run the following command on your terminal.\n\n```\ncd <your-app>\nawsmobile init\n```\n\nRunning this command enables your Mobile Hub project with two default features: (1) Analytics, for receiving the analytics sent from your app and (2) Hosting and Streaming for easily hosting your app in the cloud. The command also adds the [AWS Amplify](https://github.com/aws/aws-amplify#aws-amplify) JavaScript library to your app so you can easily integrate Analytics, as well as other features provided by AWS. These features can easily be enabled using the awsmobile cli commands below.\n\n## Commands Summary\n\nThe current set of commands supported by the awsmobile CLI are\n\n| Command              | Description |\n| --- | --- |\n| awsmobile start | Starts an awsmobilejs project using one of our starter templates, sets up the backend mobile hub project in the cloud and pulls the aws-exports.js file |\n| awsmobile init | Initializes the current project with awsmobilejs features, sets up the backend mobile hub project in the cloud and pulls the aws-exports.js file |\n| awsmobile configure [aws] | Configures the aws access credentials and aws region for awsmobile-cli |\n| awsmobile configure project | Configures the attributes of your project for awsmobile-cli |\n| awsmobile pull | Retrieves the latest details of the backend Mobile Hub project, such as the access information file aws-exports.js |\n| awsmobile push | Updates the backend Mobile Hub project with the latest local developments |\n| awsmobile publish | Executes awsmobile push, then builds and publishes client-side application to S3 and Cloud Front |\n| awsmobile run | Executes awsmobile push, then executes the project's start command to test run the client-side application |\n| awsmobile console | Opens the web console of the backend Mobile Hub project |\n| awsmobile features | Shows available Mobile Hub project features, and allows them to be enabled/disabled |\n| awsmobile \\<feature\\> enable  [--prompt] | Enables the feature with the defaults configuration, and --prompt for initial configuration settings |\n| awsmobile \\<feature\\> disable | Disables the feature |\n| awsmobile \\<feature\\> configure | Configures the definition of the objects in the feature |\n| awsmobile cloud-api invoke \\<apiname\\> \\<method\\> \\<path\\> [init] | Invokes the API for testing locally. This helps quickly test unsigned APIs in your local environment |\n| awsmobile delete | Deletes the Mobile hub project |\n| awsmobile help [cmd] | Displays help for [cmd] |\n\n\nSupported Features:\n1. user-signin (Cognito)\n2. user-files (AWS S3)\n3. cloud-api (CloudLogic)\n4. database (Dynamo DB)\n5. analytics (Pinpoint)\n6. hosting (S3 and CloudFront Distribution)\n\n## awsmobile configure\n\n```\nawsmobile configure\n```\n\n#### There are two levels in the aws credential and region configurations for the awsmobile-cli\n- general\n- per project\n\nWhen you run `awsmobile configure` outside of a valid awsmobilejs project, it sets the general configuration. The general configuration is applied when you run `awsmobile init` or `awsmobile start` command. And its values are copied as the initial per project configuration for the newly initialized project\n\nWhen you run `awsmobile configure` inside a valid awsmobilejs project, it sets the configuration for this project only. It does NOT change the general configuration or the configuration of other projects.\n\n## Usage\n\nGo to the [AWS Mobile Docs](http://docs.aws.amazon.com/aws-mobile/latest/developerguide/web-getting-started.html) to learn more about the usage of the awsmobile-cli and some sample codes to get your app up and running.  \n","readmeFilename":"README.md"}