New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@stephendolan/chartmogul-cli

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stephendolan/chartmogul-cli

A command-line interface for ChartMogul analytics

latest
Source
npmnpm
Version
1.7.1
Version published
Maintainers
1
Created
Source

ChartMogul CLI

npm version License: MIT

A command-line interface for ChartMogul analytics, designed for developers and LLMs.

Features

  • LLM-first design - JSON output for easy parsing and automation
  • Analytics focused - MRR, ARR, churn rates, LTV, customer counts
  • Secure auth - Credentials stored in OS keychain
  • Read-only - Query your data safely without risk of modification

Installation

npm install -g @stephendolan/chartmogul-cli

Linux: Install libsecret for keychain support: sudo apt-get install libsecret-1-dev

Authentication

chartmogul auth login --api-key YOUR_API_KEY
chartmogul auth status
chartmogul auth logout

Or use the environment variable: export CHARTMOGUL_API_KEY=your_api_key

Get your API key from ChartMogul under Profile -> API Keys.

Commands

Metrics

All metric commands support --start-date, --end-date, and --interval (day, week, month, quarter).

chartmogul metrics all                    # All key metrics (last 30 days)
chartmogul metrics mrr                    # Monthly Recurring Revenue
chartmogul metrics arr                    # Annual Recurring Revenue
chartmogul metrics arpa                   # Average Revenue Per Account
chartmogul metrics asp                    # Average Sale Price
chartmogul metrics customer-count         # Customer count over time
chartmogul metrics customer-churn         # Customer churn rate
chartmogul metrics mrr-churn              # MRR churn rate
chartmogul metrics ltv                    # Customer Lifetime Value

# With date range
chartmogul metrics mrr --start-date 2024-01-01 --end-date 2024-12-31 --interval month

Customers

chartmogul customers list                      # List all customers
chartmogul customers list --status Active      # Filter by status
chartmogul customers list --data-source <uuid> # Filter by data source
chartmogul customers view <uuid>               # View customer details
chartmogul customers search --email user@example.com
chartmogul customers activities <uuid>         # Customer activities
chartmogul customers subscriptions <uuid>      # Customer subscriptions

Other Resources

# Account
chartmogul account view

# Plans
chartmogul plans list
chartmogul plans view <uuid>

# Invoices
chartmogul invoices list
chartmogul invoices list --customer <uuid>
chartmogul invoices view <uuid>

# Data Sources
chartmogul data-sources list
chartmogul data-sources view <uuid>
chartmogul data-sources set-default <uuid>
chartmogul data-sources get-default

# Activities
chartmogul activities list
chartmogul activities list --type new_biz --start-date 2024-01-01
# Activity types: new_biz, expansion, contraction, churn, reactivation

MCP Server

Run as an MCP server for AI agent integration:

chartmogul mcp

Output

All commands output JSON. Use --compact or -c for single-line output:

chartmogul metrics mrr                    # Pretty-printed JSON
chartmogul -c metrics mrr                 # Compact JSON (single line)

Monetary values are in dollars (not ChartMogul's internal cents). An MRR of 100 means $100.

Errors are also returned as JSON:

{"error": {"name": "unauthorized", "detail": "Invalid API key", "statusCode": 401}}

Environment Variables

VariableDescription
CHARTMOGUL_API_KEYAPI key (alternative to keychain)
CHARTMOGUL_DATA_SOURCEDefault data source UUID

License

MIT

Keywords

chartmogul

FAQs

Package last updated on 18 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts