0.4.10 • Published 5 days ago

@tryghost/mg-mailchimp-members v0.4.10

Weekly downloads
-
License
MIT
Repository
github
Last release
5 days ago

Migrate Mailchimp Members csv Export

Converts a Mailchimp members csv export and generates a csv file you can import into a Ghost installation.

Install

To install the CLI, which is required for the Usage commands below:

npm install --global @tryghost/migrate

To use this package in your own project:

npm install @tryghost/mg-mailchimp-members --save

or

yarn add @tryghost/mg-mailchimp-members

Usage

To run basic Mailchimp member migration, the required command is this:

migrate mailchimp-members --pathToCsv /path/to/members.csv

A more complex command for a Mailchimp member migration looks like this:

migrate mailchimp-members --pathToCsv /path/to/members.csv, /path/to/another-members.csv --addLabel 'Migrated' --includeUnsubscribed false --verbose true

It's possible to pass more options, in order to achieve a better migration file for Ghost:

  • --pathToZip (required)
    • Path to members ZIP file
    • string - default: null
  • --pathToCsv (required)
    • Path to members CSV file
    • array - default: null
  • --addLabel
    • Label to add to all members
    • string - default: null
  • --includeUnsubscribed
    • Include unsubscribed members in the migration, but set to not receive emails
    • bool - default: false
  • --cache
    • Persist local cache after migration is complete (Only if --zip is true)
    • bool - default: true
  • -V --verbose
    • Show verbose output
    • bool - default: false
  • --zip
    • Create a zip file
    • bool - default: false

Develop

This is a mono repository, managed with lerna.

Follow the instructions for the top-level repo. 1. git clone this repo & cd into it as usual 2. Run yarn to install top-level dependencies.

Run

To run a local development copy, cd into this directory, and use yarn dev instead of migrate like so:

yarn dev mailchimp-members <commands>

Test

  • yarn lint run just eslint
  • yarn test run lint and tests

Copyright & License

Copyright (c) 2013-2023 Ghost Foundation - Released under the MIT license.

0.4.10

5 days ago

0.4.9

21 days ago

0.4.8

2 months ago

0.4.7

2 months ago

0.4.6

4 months ago

0.4.5

4 months ago

0.4.4

4 months ago

0.4.3

4 months ago

0.4.2

5 months ago

0.4.1

5 months ago

0.4.0

7 months ago

0.3.0

7 months ago

0.2.0

7 months ago

0.1.2

7 months ago

0.1.1

7 months ago