@tryghost/mg-buttondown
v0.8.3
Published
Converts a Buttondown export and generates a `zip` file you can import into a Ghost installation.
Maintainers
Keywords
Readme
Migrate Buttondown Export
Converts a Buttondown export and generates a zip 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/migrateTo use this package in your own project:
npm install @tryghost/mg-buttondown --save
or
pnpm add @tryghost/mg-buttondown
Usage
To run a basic Buttondown migration, the required command is this:
migrate buttondown --pathToZip /path/to/export.zip --url https://example.comIt's possible to pass more options, in order to achieve a better migration file for Ghost:
--pathToZip(required)- Path to a zip file
- string - default:
null
--url(required)- Site URL
- string - default:
null
-s--scrape- Configure scraping tasks
- string - default:
all - Choices:
all,web,assets,noneall: Scrape web metadata and download assetsweb: Only scrape metadata from web pagesassets: Only download assets (images, media, files)none: Skip all scraping tasks
--fallBackHTMLCard- Fall back to convert to HTMLCard, if standard Mobiledoc convert fails
- bool - default:
true
--cache- Persist local cache after migration is complete (Only if
--zipistrue) - bool - default:
true
- Persist local cache after migration is complete (Only if
-V--verbose- Show verbose output
- bool - default:
false
--zip- Create a zip file
- bool - default:
true
Develop
This is a mono repository, managed with Nx and pnpm workspaces.
Follow the instructions for the top-level repo.
git clonethis repo &cdinto it as usual- Run
pnpm installto install top-level dependencies.
Run
To run a local development copy, cd into this directory, and use pnpm dev instead of migrate like so:
pnpm dev buttondown <commands>Test
pnpm lintrun just eslintpnpm testrun lint and testspnpm test:localbuild and run tests (for single-package development)
Copyright & License
Copyright (c) 2013-2026 Ghost Foundation - Released under the MIT license.
