hexo clean

清除缓存文件 (db.json) 和已生成的静态文件 (public)

hexo clean

hexo g

生成静态文件

hexo g

强制重新生成静态文件

hexo g -f

hexo init

新建一个网站。如果没有设置 folder ,Hexo 默认在目前的文件夹建立网站。

hexo init [folder]

hexo list

列出网站资料

hexo list <type>

hexo new

新建一篇文章

hexo new [layout] <title>

hexo publish

发布草稿

hexo publish [layout] <filename>

hexo server

启动日志

hexo server

hexo version

显示 Hexo 版本

hexo version

https://hexo.io/zh-cn/docs/commands

命令地址

https://hexo.io/zh-cn/docs/commands

npm install

安装 hexo

npm install hexo-cli -g