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

cx-client

v0.1.1

Published

Cloudonix CLI tool for managing accounts and resources

Readme

Cloudonix CLI (cx-cli)

A CLI tool for querying Cloudonix accounts and resources.

Installation

Prerequisites

  • Node.js v22 or higher
  • npm v10 or higher

Installing node and npm (optional)

If you currently don't have node and npm installed on your local machine, here is a quick installation guide to get you started using the nvm tool.

  1. Installing nvm
curl -sL https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.0/install.sh -o install_nvm.sh
chmod +x install_nvm.sh
./install_nvm.sh

After the installation completes, open a new terminal window to continue the installation.

  1. Verify nvm
command -v nvm

The output should simplט say nvm.

  1. Install node and npm
nvm install --lts

This will install the latest version of both node and npm.

Now, you can continue with the next installation steps normally.

# Install globally
npm install -g cx-client

Usage

Configure a Domain

To configure a domain with its API key:

cx-cli configure --domain <domain> --apikey <apiKey>

# With debug mode enabled
cx-cli --debug configure --domain <domain> --apikey <apiKey>

This will validate the domain and store the configuration for future use.

Delete a Domain

To remove a domain from the configuration:

cx-cli delete --domain <domain>

# With debug mode enabled
cx-cli --debug delete --domain <domain>

This will remove the specified domain from the configuration file while preserving other domains.

Display Configuration

To view all configured domains:

cx-cli display

# With debug mode enabled
cx-cli --debug display

This will display all configured domains and their API keys (partially masked for security) in a human-readable format.

Get Domain Information

To view detailed information about a specific domain, subscribers, applications, trunks, or DNIDs:

# Get domain information
cx-cli get --domain <domain>

# Get all subscribers in a domain
cx-cli get --domain <domain> --subscriber

# Get a specific subscriber
cx-cli get --domain <domain> --subscriber <subscriber-id>

# Get all applications in a domain
cx-cli get --domain <domain> --application

# Get a specific application
cx-cli get --domain <domain> --application <application-id>

# Get all trunks in a domain
cx-cli get --domain <domain> --trunk

# Get a specific trunk
cx-cli get --domain <domain> --trunk <trunk-id>

# Get all DNIDs in a domain
cx-cli get --domain <domain> --dnid

# Get a specific DNID
cx-cli get --domain <domain> --dnid <dnid-id>

# With debug mode enabled
cx-cli --debug get --domain <domain>

This will retrieve detailed information from the Cloudonix API and display it in a color-highlighted YAML format. The command can fetch domain information, subscriber information, application information, trunk information, or DNID information depending on the options provided.

Note: You cannot specify multiple resource options (--subscriber, --application, --trunk, --dnid) simultaneously.

Get Call Session Information

To view detailed information about a specific call session:

# Get all session information
cx-cli call --domain <domain> --session <session-id>

# Get only the log object from the session
cx-cli call --domain <domain> --session <session-id> --log

# With debug mode enabled
cx-cli --debug call --domain <domain> --session <session-id>

This will retrieve detailed information about the specified call session and display it in YAML format with color highlighting, making it easy to read and process.

Use the --log option to filter the output and show only the log information, which is useful when troubleshooting call issues.

Configuration

The CLI stores your domain configurations in ~/.cx-cli/config.yaml. Each domain is stored with its associated API key.

Development

# Install dependencies
npm install

# Run locally
npm start