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 🙏

© 2026 – Pkg Stats / Ryan Hefner

devops-whc

v1.1.0

Published

WHC cPanel automation CLI for deploy, verify, and rollback flows

Readme

devops-whc

WHC cPanel automation CLI for deploy, verify, rollback, logs, backup, and health flows.

Getting Started

Install globally:

npm install -g devops-whc
whc --help

Or run directly with npx (always uses latest version):

npx -y devops-whc --help

Upgrading from an older version

# If installed globally:
npm update -g devops-whc

# Or force reinstall to latest:
npm install -g devops-whc@latest

# Verify version:
whc --version

If you use npx -y devops-whc (recommended for VS Code / Copilot), you get the latest version automatically — no manual upgrade needed.

What This Package Is For

Use devops-whc when you need a local CLI / stdio server for WHC cPanel workflows such as:

  1. deploy readiness checks
  2. health and connectivity checks
  3. repository-driven cPanel Git deployment
  4. source-driven WordPress delivery with SSH/SCP/WP-CLI
  5. database migration with WordPress-standard search-replace, cache flush, and transient cleanup
  6. WooCommerce-ready staging deployment with safe environment config

Two Workflow Modes

ssh_scp_wpcli

Default mode. Full pipeline for mytho/source style delivery:

| Phase | Action | Details | |---|---|---| | 1. Doctor | Pre-flight checks | SSH, WP-CLI, remote path, HTTP probe | | 2. Backup | DB export | wp db export.sql.gz with audit trail | | 3. SCP Sync | Code delivery | SFTP upload (auto-skips wp-config.php, .env, .htaccess, uploads/*, cache/*) | | 4a. Bootstrap | Activate plugins/themes | wp plugin activate / wp theme activate | | 4b. DB Migration | 9-step WordPress standard | wp option update home/siteurlwp search-replace --dry-run → actual replace → wp cache flushwp rewrite structurewp rewrite flushwp transient delete --all → SQL transient cleanup | | 4c. Env Config | Staging safety | wp config set WP_DEBUG false, WP_DEBUG_LOG true, etc. | | 5. Seed | Data bootstrap | wp eval-file (optional) | | 6. Smoke | HTTP gate | GET /wp-json/ → expect 200 |

git_deploy

Use this when your real deployment path is:

  1. local Git repository
  2. push to cPanel-managed repository
  3. trigger cPanel deployment task

For this mode, whc_deploy uses:

  1. repository_root as the remote cPanel-managed repository path
  2. optional branch if you want to deploy a specific branch

First Practical Step

Run a readiness check against the actual project folder you want to manage:

npx -y devops-whc --check-generic --project-root D:/Source/mytho/source/wordpress

What this does:

  1. validates the target project layout
  2. bootstraps hidden WHC state under that project
  3. tells you exactly which env values are still missing

--project-root is required.

--app-path is optional. If omitted, WHC treats project-root itself as the app root.

Commands You Will Actually Use

whc --help
whc --probe
whc --check-health
whc --check-generic --project-root D:/Source/mytho/source/wordpress
whc --serve

The same commands also work with npx -y devops-whc ....

VS Code / Copilot Example

Using @latest ensures you always get the newest version:

{
  "servers": {
    "whc": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "devops-whc@latest", "--serve"],
      "env": {
        "WHC_ENV_FILE": "${workspaceFolder}/.env",
        "WHC_LOCAL_PROJECT_ROOT": "${workspaceFolder}",
        "WHC_STATE_ROOT": ".whc",
        "WHC_INSTANCE_NAME": "whc"
      }
    }
  }
}

💡 npx -y devops-whc@latest always pulls the latest published version. No manual upgrade needed.


## Minimum Config Mindset

For `git_deploy`, think:

1. `WHC_API_TOKEN`
2. `WHC_USER`
3. `WHC_HOST`
4. `WHC_PROD_PATH`
5. `repository_root`

For `ssh_scp_wpcli`, think:

1. local WordPress app root
2. staging SSH host/user
3. SSH key or password
4. remote staging path
5. smoke-ready WordPress runtime

## Current Boundary

1. `check:generic` is the main trustworthy readiness/bootstrap gate.
2. `whc_setup_remote` prepares remote Git repository wiring on cPanel.
3. `git_deploy` triggers the cPanel deployment task for the requested `repository_root` and optional `branch`.
4. `ssh_scp_wpcli` is the default mode and executes the full 6-phase pipeline end-to-end.
5. SCP code sync **never deploys** `wp-config.php`, `.env`, `.htaccess`, `uploads/*`, or `cache/*` — protecting WHC staging from local config leaks.
6. DB migration follows WordPress official standards: 9 steps including dry-run search-replace, cache/rewrite/transient cleanup, and SQL-level safety.
7. Environment config bootstrap sets `WP_DEBUG` and related constants appropriately per environment.

## License

ISC