hexo

Command line interface for Hexo, a static site generator

Subcommands

NameDescription
configGet or set configurations
helpDisplays a help for each command
initCreate a new Hexo folder
newCreate a new article
generateGenerate static files
publishPublish a draft
serverStart a local server. By default, this is at http://localhost:4000/
deployDeploy your website
renderRender files with renderer plugins (e.g. Markdown) and save them at the specified path
migrateMigrate content from other blog systems
cleanClean the cache file (`db.json`) and generated files (`public`)
listList all routes
versionDisplay version information

Options

NameDescription
--config <config file>
  • Persistent ⚖
--safe
  • Persistent ⚖
--debug
  • Persistent ⚖
--silent
  • Persistent ⚖
--draft
  • Persistent ⚖
--cwd <directory>
  • Persistent ⚖