# 准备工具

## Git工具

本脚本所有测试均在git bash上运行，建议使用git工具运行最佳。下载地址：

> Git官网下载：<https://git-scm.com/>
>
> 国内镜像下载：<https://npm.taobao.org/mirrors/git-for-windows/v2.22.0.windows.1/Git-2.22.0-64-bit.exe>
>
> 国内其他版本下载：<https://npm.taobao.org/mirrors/git-for-windows/>

{% hint style="info" %}
建议使用国内镜像下载，速度最快！

下载后请自行安装
{% endhint %}

## Node.js

您需要安装node.js才能使用和安装hexo博客，无论是使用和不使用本脚本，都是必须安装的，下载地址：

> <http://nodejs.cn/download/>

{% hint style="info" %}
建议使用安装程序进行安装。安装时，请勾选**Add to PATH**选项。
{% endhint %}

## 下载\[hexo-script]的安装脚本

你只需要在某个目录下,打开git bash然后执行下面这条命令即可下载完成

```bash
curl -O https://cdn.jsdelivr.net/gh/kjhuanhao/hexo-script@master/install.sh
```

**我们更建议直接在**[**releases**](https://github.com/kjhuanhao/hexo-script/releases)**下载,选择最新版本,只需下载install.sh即可**

![install.sh](/files/-Llz6JJCocpELXFXMiCv)

{% hint style="info" %}
建议新建一个目录存放此安装脚本,最好是你想存放博客文件的地方.
{% endhint %}

如图:我创建了一个\[myblog]文件夹,然后在此文件夹下右键打开git bash

![](/files/-LlujpjLExHk7K73O-Gb)

然后运行了下载命令,安装脚本(install.sh)就会下载在你的当前文件夹中

![](/files/-LlukgEwkesx8NRKmBdo)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://hexoscript.gitbook.io/hexo-script/1.3-1/shi-yong-bu-zhou/zhun-bei-gong-ju.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
