npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@aemilia/cli

v1.1.4

Published

awsmobile cli enables easy incorporation of aws features into your project

Downloads

7

Readme

awsmobile-CLI

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

Installation

The easiest way to install is using npm or yarn

npm install -g awsmobile-cli

or

yarn global add awsmobile-cli

Configuration

awsmobile configure

Check here for more details about configuration

Getting Started

To create a new Mobile Hub project and pull the project configuration into your app, run the following command on your terminal.

cd <your-app>
awsmobile init

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

Commands Summary

The current set of commands supported by the awsmobile CLI are

| Command | Description | | --- | --- | | 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 | | 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 | | awsmobile configure [aws] | Configures the aws access credentials and aws region for awsmobile-cli | | awsmobile configure project | Configures the attributes of your project for awsmobile-cli | | awsmobile pull | Retrieves the latest details of the backend Mobile Hub project, such as the access information file aws-exports.js | | awsmobile push | Updates the backend Mobile Hub project with the latest local developments | | awsmobile publish | Executes awsmobile push, then builds and publishes client-side application to S3 and Cloud Front | | awsmobile run | Executes awsmobile push, then executes the project's start command to test run the client-side application | | awsmobile console | Opens the web console of the backend Mobile Hub project | | awsmobile features | Shows available Mobile Hub project features, and allows them to be enabled/disabled | | awsmobile <feature> enable [--prompt] | Enables the feature with the defaults configuration, and --prompt for initial configuration settings | | awsmobile <feature> disable | Disables the feature | | awsmobile <feature> configure | Configures the definition of the objects in the feature | | awsmobile cloud-api invoke <apiname> <method> <path> [init] | Invokes the API for testing locally. This helps quickly test unsigned APIs in your local environment | | awsmobile delete | Deletes the Mobile hub project | | awsmobile help [cmd] | Displays help for [cmd] |

Supported Features:

  1. user-signin (Cognito)
  2. user-files (AWS S3)
  3. cloud-api (CloudLogic)
  4. database (Dynamo DB)
  5. analytics (Pinpoint)
  6. hosting (S3 and CloudFront Distribution)

awsmobile configure

awsmobile configure

There are two levels in the aws credential and region configurations for the awsmobile-cli

  • general
  • per project

When 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

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

Usage

Go to the AWS Mobile Docs to learn more about the usage of the awsmobile-cli and some sample codes to get your app up and running.