Goodbye WordPress is a customizable library and command line tool for exporting posts from a WordPress MySQL database to static Markdown or HTML files, with YAML front-matter for metadata preservation. It is intended as a starting point for migrating away from a WordPress blog to a static site.
It further supports saving images referenced in the original posts and can generate a single-file archive of all exported posts in JSON format, in case the export process needs to run again after the MySQL database has been taken down.
Note, there is a .NET Standard 2.1 library ("Goodbye.WordPress") that can be integrated easily into a new .NET Core console application that allows heavy customization through overriding pieces of the export pipeline in WordPressExporterDelegate.
dotnet tool install --global goodbye-wordpress --version 1.0.2
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local goodbye-wordpress --version 1.0.2
This package has no dependencies.