Hexo命令速查与使用技巧

2026-01-10 · Hexo, 博客

新建文章

hexo new "文章标题"  # 简写:hexo n "标题"

新建页面(如关于页、标签页)

hexo new page "about"

本地预览

hexo server  # 简写:hexo s(默认端口4000,访问http://localhost:4000)
hexo s -p 5000  # 自定义端口5000

生成静态文件

hexo generate  # 简写:hexo g

部署到GitHub

hexo deploy  # 简写:hexo d

清理缓存

hexo clean

一键部署(清缓存+生成+部署)

hexo clean && hexo g && hexo d

实用工具

github加速器:watt toolkit(微软商店即可下载)

观看对应B站视频