Fork me on GitHub

Hello World

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

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

the same cmd is:

1
$ hexo s

Change the port

1
hexo s -p 4001

More info: Server

Generate static files

1
$ hexo generate

the same cmd is:

1
$ hexo g

Watch for File Changes

Hexo can watch for file changes and regenerate files immediately. Hexo will compare the SHA1 checksum of your files and only write if file changes are detected.

1
$ hexo generate --watch

More info: Generating

Deploy to remote sites

1
$ hexo deploy

the same cmd is:

1
$ hexo d

More info: Deployment

Cleans the cache file (db.json) and generated files (public).

1
$ hexo clean

More info: Deployment

Hexo-Env
中文文档
cmd-markdown-logo