Linux command
hexo 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create new blog
hexo init [blog-name]
Create new post
hexo new [post-title]
Generate static files
hexo generate
Start local server
hexo server
Deploy to remote
hexo deploy
Clean generated files
hexo clean
说明
Hexo is a fast, simple static blog framework. It uses Markdown for content and supports themes, plugins, and multiple deployment targets. The framework generates static HTML from Markdown posts. It's popular for developer blogs and documentation sites.
参数
- init
- Initialize new blog.
- new _TITLE_
- Create new post/page.
- generate, g
- Generate static files.
- server, s
- Start local server.
- deploy, d
- Deploy to remote.
- clean
- Clean cache and public.
- -p, --port _PORT_
- Server port.
- --help
- Display help information.
FAQ
What is the hexo command used for?
Hexo is a fast, simple static blog framework. It uses Markdown for content and supports themes, plugins, and multiple deployment targets. The framework generates static HTML from Markdown posts. It's popular for developer blogs and documentation sites.
How do I run a basic hexo example?
Run `hexo init [blog-name]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does init do in hexo?
Initialize new blog.