If you find this useful, please consider supporting my work with a donation.
A simple command-line utility to download all of the members of a Mailgun email list. Mailgun itself doesn't provide this ability and the API limits members returned to 100 per call. This utility uses calls the Mailgun API repeatedly to download all of the members of an email list.
In order to use this utility, you must have a Mailgun API key and that key must be stored in an environment variable called MAILGUN_AUTH_KEY
.
Install globally using npm or yarn:
npm install @humanwhocodes/mailgun-list-export -g
# or
yarn global add @humanwhocodes/mailgun-list-export
You can then run this utility by passing in the name of the mailing list:
$ mailgun-list-export [email protected]
The complete member list will be downloaded into a file called members.json
in the current working directory.
You can also install the utility locally using npm or yarn:
npm install @humanwhocodes/mailgun-list-export --save-dev
# or
yarn add @humanwhocodes/mailgun-list-export -D
You can then run this utility with npx by passing in the name of the mailing list:
$ npx mailgun-list-export [email protected]
The complete member list will be downloaded into a file called members.json
in the current working directory.
Copyright Human Who Codes LLC. Apache 2.0 license.