@stephendolan/chartmogul-cli 1.2.0 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +13 -2
  2. package/dist/cli.js +1 -1
  3. package/package.json +2 -2
package/README.md CHANGED
@@ -18,7 +18,7 @@ A command-line interface for ChartMogul analytics, designed for developers and L
18
18
  npm install -g @stephendolan/chartmogul-cli
19
19
  ```
20
20
 
21
- On Linux, install libsecret for keychain support: `sudo apt-get install libsecret-1-dev`
21
+ **Linux**: Install libsecret for keychain support: `sudo apt-get install libsecret-1-dev`
22
22
 
23
23
  ## Authentication
24
24
 
@@ -30,7 +30,7 @@ chartmogul auth logout
30
30
 
31
31
  Or use the environment variable: `export CHARTMOGUL_API_KEY=your_api_key`
32
32
 
33
- Get your API key from ChartMogul: Profile -> API Keys
33
+ Get your API key from ChartMogul under Profile -> API Keys.
34
34
 
35
35
  ## Commands
36
36
 
@@ -58,6 +58,7 @@ chartmogul metrics mrr --start-date 2024-01-01 --end-date 2024-12-31 --interval
58
58
  ```bash
59
59
  chartmogul customers list # List all customers
60
60
  chartmogul customers list --status Active # Filter by status
61
+ chartmogul customers list --data-source <uuid> # Filter by data source
61
62
  chartmogul customers view <uuid> # View customer details
62
63
  chartmogul customers search --email user@example.com
63
64
  chartmogul customers activities <uuid> # Customer activities
@@ -83,10 +84,20 @@ chartmogul invoices view <uuid>
83
84
  chartmogul data-sources list
84
85
  chartmogul data-sources view <uuid>
85
86
  chartmogul data-sources set-default <uuid>
87
+ chartmogul data-sources get-default
86
88
 
87
89
  # Activities
88
90
  chartmogul activities list
89
91
  chartmogul activities list --type new_biz --start-date 2024-01-01
92
+ # Activity types: new_biz, expansion, contraction, churn, reactivation
93
+ ```
94
+
95
+ ### MCP Server
96
+
97
+ Run as an MCP server for AI agent integration:
98
+
99
+ ```bash
100
+ chartmogul mcp
90
101
  ```
91
102
 
92
103
  ## Output
package/dist/cli.js CHANGED
@@ -780,7 +780,7 @@ function createMcpCommand() {
780
780
  }
781
781
 
782
782
  // src/cli.ts
783
- var version = true ? "1.2.0" : "0.0.0-dev";
783
+ var version = true ? "1.3.0" : "0.0.0-dev";
784
784
  var program = new Command10();
785
785
  program.name("chartmogul").description("A command-line interface for ChartMogul analytics").version(version).option("-c, --compact", "Minified JSON output (single line)").hook("preAction", (thisCommand) => {
786
786
  const options = thisCommand.opts();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stephendolan/chartmogul-cli",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "A command-line interface for ChartMogul analytics",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",
@@ -58,7 +58,7 @@
58
58
  },
59
59
  "devDependencies": {
60
60
  "@biomejs/biome": "^1.9.4",
61
- "@types/node": "^20.0.0",
61
+ "@types/bun": "latest",
62
62
  "oxlint": "^0.16.0",
63
63
  "tsup": "^8.0.0",
64
64
  "tsx": "^4.7.0",