> ## Documentation Index
> Fetch the complete documentation index at: https://docs.archetype.ing/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI

> 安装 archetype 命令，在终端里与智能体对话。

## 安装

```bash theme={null}
curl -fsSL https://archetype.ing/install.sh | sh
```

各系统的可执行文件也可以在[下载页面](https://archetype.ing/download/#cli)获取。

## 开始

```bash theme={null}
cd ~/your/project
archetype                       # a new conversation in this folder
archetype -c                    # the conversation you talked in last
archetype --session release     # open or make the conversation "release"
archetype --prompt "Summarize what changed this week"   # one request, the answer printed
```

智能体会读取你的文件，在编辑文件或运行命令前先询问。`archetype --edit` 让当前对话可以编辑文件和运行命令。要为所有对话更改模式，使用 **Shift+Tab** 或 `/permissions`（见[批准](https://docs.archetype.ing/zh/use/approvals.md)）。

## 保持运行

```bash theme={null}
archetype daemon install   # the background service, for chat channels and schedules
archetype update           # the latest release
archetype --doctor         # check config, model, keys and records
```

所有命令见 [CLI 参考](https://docs.archetype.ing/zh/reference/cli.md)。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.