1. 1. 安装命令
  2. 2. 常用命令

安装命令

1
2
3
npm install -g hexo # 安装hexo
hexo init #初始化hexo目录
npm install hexo-deployer-git --save 安装git所需的插件

常用命令

1
2
3
4
5
6
hexo clean
hexo generate # 或者 hexo g 生成静态网页
hexo server # 或者 hexo s 启动本地服务
hexo deploy #将本地文件推送到github上
hexo new "title" # 新建文章
hexo new page "pagename" # 新建页面