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 🙏

© 2025 – Pkg Stats / Ryan Hefner

bh-hcms-cli

v1.0.0

Published

BH HCMS CLI - Command Line Interface for BH HCMS Operations

Downloads

5

Readme

BH HCMS CLI

A command-line interface for BH HCMS Operations.

Installation

To install the CLI globally, run:

npm install -g bh-hcms-cli

Usage

After installation, you can use the CLI with the bh-hcms-cli command:

bh-hcms-cli --help

This will show you all available commands.

Available Commands

To see all available commands and their options:

bh-hcms-cli --help

To see help for a specific command:

bh-hcms-cli [command] --help

Example Commands

  1. Database Configuration:
# Set database credentials
bh-hcms-cli db-config set -u myuser -p mypassword -h localhost -d mydatabase --port 5432

# View current configuration
bh-hcms-cli db-config view

# Test database connection
bh-hcms-cli db-config test

# Clear saved configuration
bh-hcms-cli db-config clear
  1. Employee Data Management:
# Randomize all employee names and emails
bh-hcms-cli randomize-employee

# Randomize specific number of employees
bh-hcms-cli randomize-employee --count 5

# Preview changes without applying them
bh-hcms-cli randomize-employee --dry-run

Command Structure

Each command follows this general structure:

bh-hcms-cli <command> [options]

Where:

  • <command> is the name of the command you want to run
  • [options] are optional flags and parameters specific to that command

Global Options

  • --version: Show the CLI version
  • --help: Show help information

Database Configuration

The db-config command helps you manage database connection settings:

  • set: Set database credentials

    • -u, --username: Database username
    • -p, --password: Database password
    • -h, --host: Database host
    • -d, --database: Database name
    • --port: Database port
    • --all: Show all required options
  • view: View current configuration

    • --show-password: Show password in plain text
  • clear: Remove saved configuration

  • test: Test database connection

Employee Management

The randomize-employee command helps you manage employee data:

  • Options:
    • -c, --count <number>: Number of employees to randomize (default: all)
    • --dry-run: Preview changes without applying them

Requirements

  • Node.js >= 14.0.0

Environment Variables

The following environment variables can be used instead of saving credentials:

  • DB_USERNAME: Database username
  • DB_PASSWORD: Database password
  • DB_HOST: Database host
  • DB_DATABASE: Database name
  • DB_PORT: Database port

Troubleshooting

If you encounter permission errors when installing globally:

npm install -g bh-hcms-cli --unsafe-perm=true

If the command is not found after installation:

  1. Make sure your npm global binaries are in your PATH
  2. Try running: npm config get prefix to find where global packages are installed

License

ISC