Skip to content

CLI Commands

Serve

bash
blog serve

Start the blog server. Configuration is via environment variables:

VariableDescriptionDefault
BLOG_CONTENT_DIRContent directory/data/content
BLOG_CONFIG_DIRConfig directory/data/config
BLOG_PORTHTTP port8080
BLOG_LOG_LEVELLog levelinfo
BLOG_TLS_DOMAINAuto-TLS domain(disabled)

See Environment Variables for details.

Import

Ghost

bash
blog import ghost --export <file> [--images <dir>]

Import posts from a Ghost JSON export.

WordPress

bash
blog import wordpress --export <file>

Import posts from a WordPress WXR XML export.

Migrations

bash
# Show status
blog migrate status

# Rollback last migration
blog migrate rollback

Released under the MIT License.