@tryghost/mg-revue-subscribers v0.1.7
Migrate Revue Subscribers
Export subscribers from Revue using their API, and generate a csv
file you can import into a Ghost installation.
The token can be found on the integrations page when logged in.
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-revue-subscribers --save
or
yarn add @tryghost/mg-revue-subscribers
Usage
To run a Ghost API migration, the required command is:
migrate revue-subscribers <API token>
It's possible to pass more options, in order to achieve a better migration file for Ghost:
-V
--verbose
- bool - default:
false
- Show verbose output
- bool - default:
--addLabel
- string - default:
null
- Provide a tag name which should be added to every post as primary tag
- string - default:
--cache
- Persist local cache after migration is complete (Only if
--zip
istrue
) - bool - default:
true
- Persist local cache after migration is complete (Only if
A more complex migration command could look like this:
migrate revue-subscribers <API token> --addLabel Migrated
This will get all subscribers and apply the label 'Migrated' to each
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 revue <API token>
Test
yarn lint
run just eslintyarn test
run lint and tests
Copyright & License
Copyright (c) 2013-2022 Ghost Foundation - Released under the MIT license.