Hexo 命令

Hexo 命令

五月 12, 2020

常用命令

1
2
3
4
5
6
7
hexo new "postName"	#新建文章
hexo new page "pageName"	#新建页面
hexo generate		#生成静态页面至public目录
hexo server		#开启服务(默认端口4000,'ctrl + c'关闭server)
hexo deploy		#部署
hexo help		#帮助
hexo version		#查看Hexo的版本

缩写命令

1
2
3
4
hexo n == hexo new	#新建
hexo g == hexo generate	#生成静态网页
hexo s == hexo server	#开启服务
hexo d == hexo deploy	#部署

组合命令

1
2
hexo s -g #生成并本地预览
hexo d -g #生成并上传
作者: 棕果核
标题: Hexo 命令
版权声明: 本文采用 CC BY 4.0 进行声明

-   END   -