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

hamro-cli

v0.0.7

Published

A CLI for generating and creating a new build of a we app and uploading it to app-version-service for Hamro Patro project

Downloads

80

Readme

hamro-cli

Overview

hamro-cli is a CLI tool for managing and deploying web applications with ease. It provides functionalities to configure the app, add and delete apps, bundle the app, and upload the bundle to the server.

Installation

To use hamro-cli, follow these steps:

  1. Install dependencies:
npm install hamro-cli -g

Usage

Once hamro-cli is installed, you can use the following commands:

Initialization

To configure the app with initial settings:

hpcli init

Required Fields for Initialization

When running hpcli init, you will be prompted to enter the following fields:

  • App ID: A unique name for your application (e.g., hamropay).
  • Domain: The domain URL of your application.
  • Version: The version of your application. Follow semantic versioning (e.g., 1.0.1).
  • API Key: Your secret key for accessing the API.
  • Host URL: The backend URL for bundle upload (without trailing slash).
  • HP App ID: The Hamro Patro App ID according to the environment (e.g., hamropatro-android for development).

How to Access and Get Required Fields

  • App ID: Choose a unique name for your application.
  • Domain: The URL of your application's domain. Ensure it is accessible and correct.
  • Version: Decide on the version of your application, starting with 1.0.0 and incrementing based on updates.
  • API Key: This key is provided by your API service provider. Check their documentation or dashboard.
  • Host URL: The URL where the bundle will be uploaded. Ensure it does not have a trailing slash.
  • HP App ID: This identifier is provided by Hamro Patro. Ensure it matches the environment you are working in.

To configure the app, run the following command and follow the prompts to enter the required fields:

hpcli init

Example Configuration File

After running the init command, a configuration file (hamrocli-config.json) will be created. This file contains essential information for managing and deploying your application.

{
  "app_id": "your-app-id",
  "domain": "your-app-domain",
  "version": "1.0.1",
  "api_key": "your-secret-key",
  "host_url": "https://your-backend-url",
  "hp_app_id": "your-hp-app-id"
}

Options

The options command provides various options for managing the CLI tool. Currently, it offers the following options:

  • List Commands: List all available commands with their descriptions.
hpcli options

For more information on each command, you can use the --help flag:

hpcli --help

License

hamro-cli is licensed under the MIT License. npm set registry https://artifact.hamropatro.com/api/npm/https://www.npmjs.com/package/hamro-cli/