$ hexo s (-p 4000)
- Same as '$ hexo server'
- Run hexo on the local server
- The defult port number is 4000
$ hexo n xxx
- Same as '$ hexo new'
- Create a new article with the given name xxx
$ hexo n page xxx
- Generate a new page xxx in the directory blog/source/
$ hexo clean
- Clean static files in the directory blog/public/
$ hexo g
- Same as '$ hexo generate'
- Generate static files in the directory blog/public/
$ hexo d
- Same as '$ hexo deploy'
- Deploy to the specified repository
- Remember to create a new file 'CNAME' containing the custom domain
Commands Combination
$ hexo clean && hexo g -d - Then deploy in Github (generate access token in Settings-Developer) - Then create 'CNAME'