> ## Content Index
> Fetch the complete content index at: https://lucent.blog/llms.txt
> Use this file to discover other available public pages before exploring further.

# Hexo 命令
- URL: https://lucent.blog/hexoming-ling/
- Published: 2019-07-08T07:37:32.000Z
- Updated: 2026-08-21T00:49:54.000Z
- Author: Lucent

## 快速开始

### 创建新文章

```bash
$ hexo new "My New Post"

```

更多: [Writing](https://hexo.io/docs/writing.html?ref=lucent.blog)

### 清理静态文件

```bash
$ hexo clean

```

### 生成静态文件

```bash
$ hexo generate ## hexo g

```

更多: [Generating](https://hexo.io/docs/generating.html?ref=lucent.blog)

### 部署到远程服务器

```bash
$ hexo deploy ## hexo d

```

更多: [Deployment](https://hexo.io/docs/deployment.html?ref=lucent.blog)

### 启动服务

```bash
$ hexo server ## hexo s

```

更多: [Server](https://hexo.io/docs/server.html?ref=lucent.blog)

### 从远程服务器下载Hexo环境及文章原始文件(更换电脑时)

```bash
$ git clone -b hexo git@ip:/home/git/repos/blog.git

```

### 将本地Hexo环境及文章同步到远程服务器

```bash
$ git push

```

### 更新本地文件

```bash
$ git pull

```