A collection of tools for migrating to Ghost.
Each tool has its own detailed documentation:
Migrate is a set of command line tools, install them globally:
npm install --global @tryghost/migrate
Run migrate --help
to see a list of available commands.
Basic usage is migrate [source] source-info
:
E.g.
migrate medium --pathToZip /path/to/export.zip
migrate wp-api --url https://mywpsite.com
Each source comes with optional flags to customise the migration:
migrate [source] --help
will give more detail
This is a mono repository, managed with lerna.
git clone
this repo & cd
into it as usualyarn setup
is mapped to lerna bootstrap
To make sure the TypeScript packages are built (immediately and after file changes), use
yarn build:watch
Or run yarn build
once if you don't need the watching.
To run a local development copy, cd
into this directory, and use yarn dev
instead of migrate
like so:
yarn dev [source]
yarn lint
run just eslintyarn test
run lint and testsyarn ship
is an alias for lerna publish
Copyright (c) 2013-2023 Ghost Foundation - Released under the MIT license.