Hexo 常用命令

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

创建新文章

1
$ hexo new "My New Post"

More info: Writing

开启本地服务

1
2
$ hexo server
$ hexo s //简写

More info: Server

生成静态文件

1
$ hexo generate

More info: Generating

部署到远程

1
$ hexo deploy

More info: Deployment

生成静态文件并部署到远程简写

1
$ hexo g -d

注意也可以写成 hexo d -g 但是如果改动了主题的布局这种写法可能不会生效