0%

Hexo Useful Commands

Record some useful commands for maintaining Hexo website.

Install

Supposing you have install Git and Nodejs.

Install:

1
npm install -g hexo-cli

Writing

Create a new article

1
2
hexo new [layout] <title>
hexo new "Hello" # simplest example

Generate & Publish

1
2
3
4
hexo generate # generate static files
hexo deploy # deploy to github or other code repository
hexo g -d # take both actions
hexo d -g # same as above
Thank you so much.