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

@cliniq360/rsc-cli

v0.3.0

Published

CLI for RSC backend services.

Readme

rsc CLI

Command-line interface for RSC backend services

Read-focused CLI for RSC microservices with role-gated authentication and OTP verification.


Features

  • GET-Only API Commands — maps read endpoints across authentication, order_mgmt, payout, shipment, warehouse, and analytics
  • Role-Gated Access — allows only superadmin and admin
  • OTP-Based Authentication — login + OTP verification flow
  • Secure Credential Reuse — email is stored in CLI config and password is stored in the OS keychain
  • Session Reuse — persisted bearer session until expiry, with automatic re-login challenge on expiry or 401
  • Multi-Service Base URLs — separate base URL per service
  • JSON Output — every command supports --json
  • Automation Friendly — extra query params via --param key=value

Installation

From npm

npm install -g @cliniq360/rsc-cli
rsc --help

Or run without installing globally:

npx @cliniq360/rsc-cli --help

From source

cd rsc-cli
npm install
npm run build

Run with node:

node dist/main.js --help

Optional global linking:

npm link
rsc --help

Quick Start

# 1. Build
npm run build

# 2. Login with email + password
rsc auth login

# 3. Optional fallback: verify OTP separately only if you skipped the interactive prompt
rsc auth verify-otp --otp 123456

# 4. Confirm auth status
rsc auth status

# 5. Call a GET endpoint
rsc order-mgmt order-list --json

Authentication Model

  • Users do not manually enter access tokens in normal flow.
  • Login is done in one interactive flow: email/password first, then OTP or 2FA prompt in the same command.
  • Access is allowed only for roles: superadmin, admin.
  • If role is not allowed, CLI returns access denied.
  • The email is stored locally in CLI config and the password is stored in the OS credential vault.
  • When a session expires or an authenticated request returns 401, the CLI reuses stored credentials, prompts for OTP in the same command when interactive, and retries the request.

Auth commands:

  • rsc auth login
  • rsc auth verify-otp --otp <code>
  • rsc auth status
  • rsc auth stored-login
  • rsc auth clear-stored-login
  • rsc auth whoami
  • rsc auth logout

verify-otp remains available as a fallback for non-interactive use, but normal terminal logins do not require a second command.


Commands

rsc config — Configuration

| Command | Description | | ----------------------------------------- | ------------------------------------------------- | ------------------------- | | rsc config show | Show resolved config, base URLs, and session mask | | rsc config set-format <table | json> | Set default output format | | rsc config set-base-url <service> <url> | Override base URL for a service |

rsc authentication — Authentication Service GETs

  • rsc authentication user get-details --id <user_id>
  • rsc authentication user get-payment-details
  • rsc authentication user verify-routing-number <routing_number>
  • rsc authentication user list-all
  • rsc authentication user discord
  • rsc authentication auth-read google-login --auth-token <token>
  • rsc authentication auth-read apple-login --auth-token <token>
  • rsc authentication auth-read discord-callback

rsc order-mgmt — Order Management GETs

  • rsc order-mgmt quote-list
  • rsc order-mgmt quote-get <id>
  • rsc order-mgmt quote-upc-lookup --upc <value>
  • rsc order-mgmt pre-quote-list
  • rsc order-mgmt pre-quote-get <id>
  • rsc order-mgmt pre-quote-allowed-quantity --id <id>
  • rsc order-mgmt instore-flip-list
  • rsc order-mgmt instore-flip-get <id>
  • rsc order-mgmt instore-flip-allowed-quantity --id <id>
  • rsc order-mgmt ship-direct-list
  • rsc order-mgmt ship-direct-get <id>
  • rsc order-mgmt ship-direct-allowed-quantity --id <id>
  • rsc order-mgmt order-list [filters]
  • rsc order-mgmt order-approved
  • rsc order-mgmt order-get <id>
  • rsc order-mgmt order-item-list-approved
  • rsc order-mgmt order-item-get <id>

rsc payout — Payout Service GETs

  • rsc payout giftcard-list
  • rsc payout giftcard-get <id>
  • rsc payout wallet-list
  • rsc payout wallet-summary --user-id <id>
  • rsc payout wallet-get <id>
  • rsc payout withdrawal-list
  • rsc payout withdrawal-invoice --withdrawal-id <id>
  • rsc payout withdrawal-get <id>
  • rsc payout withdrawal-paypal-status <payout_batch_id>
  • rsc payout payout-list [filters]
  • rsc payout payout-download --id <id> --document-type <type>
  • rsc payout payout-by-shipment --shipment-id <id>
  • rsc payout payout-get <id>
  • rsc payout payout-case-list
  • rsc payout payout-case-list-by-user
  • rsc payout payout-case-shipment-details --shipment-id <id>
  • rsc payout payout-case-download --case-id <id>

rsc shipment — Shipment Service GETs

  • rsc shipment shipment-list [filters]
  • rsc shipment shipment-list-pending
  • rsc shipment shipment-download --id <id> --document-type <type>
  • rsc shipment shipment-invoice --id <id>
  • rsc shipment shipment-walmart-status --walmart-shipping-id <id>
  • rsc shipment shipment-get <id>
  • rsc shipment shipment-tracking <id>
  • rsc shipment discord-shipment-list
  • rsc shipment discord-shipment-get <id>

rsc warehouse — Warehouse Service GETs

  • rsc warehouse inventory-list-all-items
  • rsc warehouse inventory-item-logs --upc <value>
  • rsc warehouse inventory-shipment-summary <shipment_id>
  • rsc warehouse inbound-items-by-tracking <tracking_number>
  • rsc warehouse inbound-list-tracking-numbers
  • rsc warehouse inbound-logs <tracking_number>
  • rsc warehouse inbound-download --id <id>

rsc analytics — Analytics Service GETs

  • rsc analytics analytics-order --user-id <id>
  • rsc analytics analytics-shipment --user-id <id>
  • rsc analytics analytics-payout --user-id <id>
  • rsc analytics dashboard-member --user-id <id>
  • rsc analytics dashboard-manager --user-id <id>
  • rsc analytics faq-tutorial-video --id <id>
  • rsc analytics lead-list

JSON Output and Scripting

All commands support --json:

rsc auth status --json
rsc payout payout-list --json
rsc shipment shipment-get SHP123 --json

You can pass extra query params (repeatable):

rsc order-mgmt order-list --param skip=0 --param limit=20 --json

Environment Variables

Service base URLs

| Variable | Default | | ------------------------------ | ----------------------------------- | | REACT_APP_AUTH_BASE_URL | https://auth-qa.rs-chain.com | | REACT_APP_ORD_BASE_URL | https://order-qa.rs-chain.com | | REACT_APP_ANALYTICS_BASE_URL | https://analytics-qa.rs-chain.com | | REACT_APP_PAYMENTS_BASE_URL | https://payout-qa.rs-chain.com | | REACT_APP_SHIPMENT_BASE_URL | https://shipment-qa.rs-chain.com | | REACT_APP_WAREHOUSE_BASE_URL | https://shipment-qa.rs-chain.com |

Auth override (automation only)

| Variable | Description | | ---------------- | ------------------------------------------------------------- | | RSC_AUTH_TOKEN | Optional bearer token override for non-interactive automation |


Scope Note

This CLI currently implements GET endpoints only. Non-GET APIs are intentionally excluded from command coverage.


Development

npm install
npm run typecheck
npm run build
node dist/main.js --help

Publishing

This repository includes a GitHub Actions workflow at .github/workflows/publish-cli.yml.

Release flow:

git tag v0.1.1
git push origin v0.1.1

The workflow will sync package.json to the tag version, run tests, build the CLI, and publish @cliniq360/rsc-cli to npm using GitHub OIDC trusted publishing.


Requirements

  • Node.js >= 18
  • RSC backend access credentials
  • Allowed user role (superadmin or admin)