0.1.7 • Published 1 year ago

@tryghost/mg-revue-subscribers v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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
  • --addLabel
    • string - default: null
    • Provide a tag name which should be added to every post as primary tag
  • --cache
    • Persist local cache after migration is complete (Only if --zip is true)
    • bool - default: true

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 eslint
  • yarn test run lint and tests

Copyright & License

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

0.1.7

1 year ago

0.1.4

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

2 years ago