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

@sieteunoseis/genesys-cli

v0.1.4

Published

CLI for Genesys Cloud CX via Platform API

Readme

Genesys CLI

npm version License: MIT Node.js Version Skills Buy Me a Coffee

A CLI for Genesys Cloud CX via Platform API. Query conversation history, monitor BYOC trunks, inspect routing queues, and troubleshoot contact center health from the terminal.

Installation

npm install -g @sieteunoseis/genesys-cli

Or run without installing:

npx @sieteunoseis/genesys-cli --help

AI Agent Skills

npx skills add sieteunoseis/genesys-cli

Requirements

You need an OAuth client with the Client Credentials grant type configured in Genesys Cloud admin. See docs/API.md for step-by-step instructions on creating an OAuth client and assigning the minimum required permissions.

Quick Start

# Add your Genesys Cloud org (use an env var for the secret)
genesys-cli config add my-org --client-id <id> --client-secret "$GENESYS_CLIENT_SECRET" --region usw2

# Test the connection
genesys-cli config test

# Check API connectivity and token health
genesys-cli doctor

# List recent conversations
genesys-cli conversations list

# List BYOC trunks
genesys-cli trunks list

# List routing queues
genesys-cli queues list

Configuration

genesys-cli config add <name> --client-id <id> --client-secret <secret> --region <region>
genesys-cli config use <name>       # switch active org
genesys-cli config list             # list all configured orgs
genesys-cli config show             # show active org (masks secrets)
genesys-cli config remove <name>    # remove an org
genesys-cli config test             # test connectivity

Auth precedence: CLI flags > env vars > config file.

Config stored at ~/.genesys-cli/config.json. Supports ss-cli <ss:ID:field> placeholders for secrets.

Environment Variables

| Variable | Description | | ------------------------------------------ | --------------------------- | | GENESYS_CLIENT_ID or CLIENT_ID | OAuth client ID | | GENESYS_CLIENT_SECRET or CLIENT_SECRET | OAuth client secret | | GENESYS_REGION or REGION | Region short name or domain |

CLI Commands

| Command | Description | | -------------------------------------- | --------------------------------------------------- | | conversations list | Query recent conversations with optional filters | | conversations detail <id> | Show full detail for a specific conversation | | trunks list | List BYOC trunks and their status | | trunks metrics | Show real-time trunk metrics | | queues list | List routing queues (use --detail for live stats) | | doctor | Check API connectivity and OAuth token health | | config add/use/list/show/remove/test | Manage Genesys Cloud org configurations |

Supported Regions

| Region | Short Name | API Domain | | --------------------- | ---------------- | ------------------------ | | US East (N. Virginia) | us-east-1 | api.mypurecloud.com | | US West (Oregon) | usw2 | api.usw2.pure.cloud | | Canada | cac1 | api.cac1.pure.cloud | | EU (Ireland) | eu-west-1 | api.mypurecloud.ie | | EU (Frankfurt) | eu-central-1 | api.mypurecloud.de | | EU (London) | euw2 | api.euw2.pure.cloud | | Asia Pacific (Mumbai) | aps1 | api.aps1.pure.cloud | | Asia Pacific (Seoul) | apne2 | api.apne2.pure.cloud | | Asia Pacific (Sydney) | ap-southeast-2 | api.mypurecloud.com.au | | Asia Pacific (Tokyo) | ap-northeast-1 | api.mypurecloud.jp | | South America | sae1 | api.sae1.pure.cloud | | Middle East | mec1 | api.mec1.pure.cloud |

Global Flags

| Flag | Description | | --------------------------------- | ------------------------------------- | | --format table\|json\|toon\|csv | Output format (default: table) | | --client-id <id> | Override OAuth client ID | | --client-secret <secret> | Override OAuth client secret | | --region <region> | Override region | | --org <name> | Select named org from config | | --clean | Remove empty/null values from results | | --no-audit | Disable audit logging | | --debug | Enable debug logging |

Giving Back

If you found this helpful, consider:

"Buy Me A Coffee"

License

MIT