Jekyll Blog CLI Tool.
Usage:
$ blog [OPTIONS] COMMAND [ARGS]...Options:
--version: Print version and exit.--help: Show this message and exit.
Commands:
serve: Start blog server locally through jekyll.build: Build jekyll site.info: Show info about post or draft.list: List all posts and drafts or find items by...open: Open post or draft in editor.draft: Create a draft.post: Create a post.remove: Remove a post or draft.publish: Publish a draft.unpublish: Unpublish a post.init: Initialize the application interactively.rename: Rename a post or draft.sync: Synchronize article index from <root>.config: Configuration Subcommands.
Start blog server locally through jekyll.
Usage:
$ blog serve [OPTIONS]Options:
--draft / --no-draft: Start blog server with drafts. [default: no-draft]--port INTEGER: Listen on the given port. [default: 4000]--help: Show this message and exit.
Build jekyll site.
Usage:
$ blog build [OPTIONS]Options:
--draft / --no-draft: Build including drafts. [default: no-draft]--help: Show this message and exit.
Show info about post or draft.
Usage:
$ blog info [OPTIONS] NAMEArguments:
NAME: Name of post or draft. [required]
Options:
--help: Show this message and exit.
List all posts and drafts or find items by name.
Usage:
$ blog list [OPTIONS]Options:
-d, --draft: List only all drafts.-p, --post: List only all posts.--help: Show this message and exit.
Open post or draft in editor.
Usage:
$ blog open [OPTIONS] NAMEArguments:
NAME: Name of post or draft. [required]
Options:
-e, --editor TEXT: Open item in given editor--help: Show this message and exit.
Create a draft.
Usage:
$ blog draft [OPTIONS] NAMEArguments:
NAME: Name of draft item. [required]
Options:
-t, --title TEXT: Title of draft.-c, --class TEXT: Categories of draft.-g, --tag TEXT: Tags of draft.-e, --editor TEXT: Open draft in given editor.-o, --open: Open draft automatically.--help: Show this message and exit.
Create a post.
Usage:
$ blog post [OPTIONS] NAMEArguments:
NAME: Name of post item. [required]
Options:
-t, --title TEXT: Title of post.-c, --class TEXT: Categories of post.-g, --tag TEXT: Tags of post.-e, --editor TEXT: Open post in given editor.-o, --open: Open post automatically.--help: Show this message and exit.
Remove a post or draft.
Usage:
$ blog remove [OPTIONS] NAMEArguments:
NAME: Name of post or draft. [required]
Options:
--help: Show this message and exit.
Publish a draft.
Usage:
$ blog publish [OPTIONS] NAMEArguments:
NAME: Name of draft. [required]
Options:
--help: Show this message and exit.
Unpublish a post.
Usage:
$ blog unpublish [OPTIONS] NAMEArguments:
NAME: Name of post. [required]
Options:
--help: Show this message and exit.
Initialize the application interactively.
Usage:
$ blog init [OPTIONS]Options:
--help: Show this message and exit.
Rename a post or draft.
Usage:
$ blog rename [OPTIONS] NAME NEW_NAMEArguments:
NAME: Name of post or draft. [required]NEW_NAME: New name. [required]
Options:
--help: Show this message and exit.
Synchronize article index from <root>.
Usage:
$ blog sync [OPTIONS]Options:
--help: Show this message and exit.
Configuration Subcommands.
Usage:
$ blog config [OPTIONS] COMMAND [ARGS]...Options:
--help: Show this message and exit.
Commands:
list: List all configurations.set: Set a configuration.reset: Reset configuration.
List all configurations.
Usage:
$ blog config list [OPTIONS]Options:
--help: Show this message and exit.
Set a configuration.
Usage:
$ blog config set [OPTIONS] KEY VALUEArguments:
KEY: Configuration key using dot-notation. [required]VALUE: Configuration value. [required]
Options:
--help: Show this message and exit.
Reset configuration.
Usage:
$ blog config reset [OPTIONS]Options:
--help: Show this message and exit.