https://github.com/typpo/mixpanel-export-cli
Command line tool for mixpanel data export API.
https://github.com/typpo/mixpanel-export-cli
Last synced: about 1 year ago
JSON representation
Command line tool for mixpanel data export API.
- Host: GitHub
- URL: https://github.com/typpo/mixpanel-export-cli
- Owner: typpo
- License: mit
- Created: 2015-09-10T17:29:25.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-12T16:45:43.000Z (almost 11 years ago)
- Last Synced: 2025-04-15T03:07:42.235Z (about 1 year ago)
- Language: JavaScript
- Size: 148 KB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Mixpanel Data Export Tool
This is a command line tool that exports data from Mixpanel using the [Mixpanel Data Export API](https://mixpanel.com/docs/api-documentation/data-export-api).
Per the Mixpanel Data Export API, output format is JSONL, ie. a JSON object on each line.
### Install
`npm install -g mixpanel-export-cli`
### Usage
Example: `mixpanel-export --from 2015-09-08 --to 2015-09-10 --event "CTA click,Login"`
Full details:
Usage: mixpanel-export --from --to --event [options]
Options:
-h, --help output usage information
-f, --from From date (inclusive)
-t, --to To date (inclusive)
-e, --event Events that you wish to get data for, comma separated
-w, --where [where] An expression to filter events by (see Mixpanel expressions, https://goo.gl/IWaUH1)
-b, --bucket [bucket] The specific data bucket you would like to query
-k, --key [key] API key (defaults to env.MIXPANEL_API_KEY)
-s, --secret [secret] API secret (defaults to env.MIXPANEL_API_SECRET)
Set `MIXPANEL_API_KEY` and `MIXPANEL_API_SECRET` in your environment to avoid having to specify --key and --secret each time.