Hexo has about 20 commands, but ordinary users often use only a few of the following:
Hexo s
Hexo s
Launches the local server for previewing topics. Default address: Http://localhost:4000/
hexo sis hexo server the abbreviation, the command effect is consistent;
- Preview can also modify the content of the article or the theme code, save after the page refresh;
- Modifications to the Hexo root directory require the local server to be restarted
_config.yml before the effect can be previewed.
Hexo New
"Learning note Six"
Create a new article titled, 学习笔记 六 because there are spaces in the title, so enclose the quotation marks.
- The title of the article can be changed in the corresponding MD file, the new title can be easily written.
Hexo D
Hexo D
Automatically generate site static files and deploy them to a set of warehouses.
hexo dis hexo deploy the abbreviation, the command effect is consistent.
Hexo Clean
Hexo Clean
Clears the cache file db.json and the generated static file public .
- You can perform this command when the Web site displays an exception.
Hexo g
Hexo g
Generate Web site static files to the default settings public folder.
- Easy to view static files generated by the site or manually deploy the site;
- If you use automatic deployment, you do not need to execute the command first;
hexo gis hexo generate the abbreviation, the command effect is consistent.
Hexo New Page
Hexo New Page Aboutme
Create a new aboutme page titled, the default link address is主页地址/aboutme/
- The title can be in Chinese, but generally used in English;
- Page titles and articles can be arbitrarily modified;
- Pages do not appear in the home Page articles list and archive, nor do they support the setting of categories and labels.
Hexo the most common commands