
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@stephendolan/chartmogul-cli
Advanced tools
A command-line interface for ChartMogul analytics, designed for developers and LLMs.
npm install -g @stephendolan/chartmogul-cli
Linux: Install libsecret for keychain support: sudo apt-get install libsecret-1-dev
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.
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
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
# 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
Run as an MCP server for AI agent integration:
chartmogul mcp
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}}
| Variable | Description |
|---|---|
CHARTMOGUL_API_KEY | API key (alternative to keychain) |
CHARTMOGUL_DATA_SOURCE | Default data source UUID |
MIT
FAQs
A command-line interface for ChartMogul analytics
We found that @stephendolan/chartmogul-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.