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

> ## Agent Instructions
> Use https://docs.fastino.ai/llms.txt to discover and navigate pages. Use https://docs.fastino.ai/llms-full.txt when you need the complete documentation corpus. Use https://docs.fastino.ai/openapi.json as the source of truth for customer-facing routes. For GLiDE decision inference, call POST https://api.fastino.ai/v1/systemone with model fastino/GLiDE. Start managed training (config job) with POST /v1/training/jobs using base_model. For interactive training, native JSON clients use the public operations under /v1/training/jobs and /v1/training/usage. Existing Tinker clients use tinker==0.32.0 with TINKER_BASE_URL=https://api.fastino.ai/v1/training/compat/tinker and TINKER_CREDENTIAL_CMD. Compatibility child routes are private and absent from OpenAPI. Auto Train is private access and has no public route; direct interested users to sales@fastino.ai. Do not infer undocumented routes. Read API keys from FASTINO_API_KEY and never embed credentials in code, logs, or reports.

# 命令

> 用于运行、项目、训练任务、团队和计费的 Fastino CLI 命令。

`fastino --help` 会列出所有命令，`fastino <command> --help` 会显示某个命令的参数。

## 运行

| 命令 | 作用 |
| - | - |
| `fastino chat` | 与 Fine-Tune Agent 讨论一次运行 |
| `fastino run start --goal "<text>"` | 从脚本开始一次运行并输出它的 ID |
| `fastino run list` | 列出运行：先列出等你处理的，再列出进行中的，最后列出已结束的。`--waiting` 只显示等你处理的运行 |
| `fastino run status <run>` | 显示一次运行。加上 `--plan` 可查看等你处理的完整计划 |
| `fastino run answer <run> "<choice>"` | 用问题提供的一个选项回答运行正在等待的问题。`--decline` 改为保留建议的选项，`--note "<text>"` 可以补充背景信息。预算问题还需要 `--amount <usd>`，而且不能拒绝回答 |
| `fastino run approve <run>` | 批准运行正在等待的计划。计划需要支出上限时，加上 `--ceiling <usd>` |
| `fastino run revise <run> --note "<text>"` | 退回计划，并说明需要修改什么 |
| `fastino run reject <run>` | 拒绝计划，在任何训练开始前结束运行。`--note` 说明原因 |
| `fastino run message <run> "<text>"` | 不打开对话，直接向智能体发送一条指示。如果有计划在等你处理，这条消息会作为修改说明把计划退回 |
| `fastino run raise-cap <run> <usd>` | 提高运行的支出上限，例如运行因达到上限而暂停时 |
| `fastino run wait <run>` | 等待运行结束或需要人工处理 |
| `fastino run result <run>` | 显示交付的模型、分数、最终报告，以及调用已上线模型的 curl 命令 |
| `fastino run promote <run>` | 请求将一个交付的模型上线 |
| `fastino run rollback <run>` | 请求让项目重新使用之前的模型提供服务 |
| `fastino run export <run>` | 请求下载一个模型的权重 |
| `fastino run cancel <run>` | 确认后取消运行。`--yes` 会跳过确认提示 |

`run promote`、`run rollback` 和 `run export` 会输出一个链接，由一个人在 Web 应用中确认请求。链接会过期，过期后请重新请求。`run promote` 和 `run export` 使用这次运行交付的最佳模型，也可以用 `--model <id>` 指定模型。

### `run start` 选项

| 参数 | 作用 |
| - | - |
| `--goal "<text>"` | 用你自己的话描述目标。`--goal-file <path>` 改为从文件读取目标 |
| `--context-file <path>` | 从文件添加补充文本，例如任务定义、标注指南、数据说明或成功标准 |
| `--dataset "<name>"` | 提前回答数据集问题 |
| `--benchmark "<text>"` | 提前回答基准问题，可以附带目标分数 |
| `--budget <usd>` | 提前回答预算问题：最多花费多少美元 |
| `--file <path>` | 给运行提供一个文件。在它后面加上 `--for training` 或 `--for evaluation`，还可以加上 `--note "<text>"` 说明文件内容。重复使用可以提供多个文件 |
| `--continues <run>` | 继续你之前的一次运行 |
| `--idempotency-key <key>` | 重试的启动发送同一个键时，返回同一次运行 |
| `--project <project-id>` | 选择运行所属的项目。默认使用 `FASTINO_PROJECT_ID`，其次是已保存的项目 |

## 项目

| 命令 | 作用 |
| - | - |
| `fastino project list` | 列出你的项目 |
| `fastino project create --model <base-model-id>` | 基于一个基础模型创建项目。`--name` 和 `--description` 设置它的名称和描述。没有 `--model` 时，终端会显示一个选择器 |
| `fastino project use <project-id>` | 为当前登录保存默认项目。`--clear` 会移除它 |

## 训练任务

| 命令 | 作用 |
| - | - |
| `fastino job list` | 列出训练任务，最新的在前。`--status <status>` 只显示处于该状态的任务，例如 `running`、`complete` 或 `failed` |
| `fastino job get <job-id>` | 显示一个训练任务 |
| `fastino job watch <job-id>` | 跟踪一个训练任务，直到它就绪、失败或停止 |
| `fastino job logs <job-id>` | 显示训练任务的日志。加上 `--follow` 可持续输出新的日志行 |
| `fastino dataset list` | 列出你的数据集 |

## 团队

| 命令 | 作用 |
| - | - |
| `fastino team list` | 列出已保存的登录，并标出当前的登录 |
| `fastino team use <team>` | 切换到某个团队已保存的登录 |
| `fastino team members` | 列出当前团队的成员及其角色 |
| `fastino team invite <email>` | 邀请某人加入团队。`--role` 设置其角色，默认为 `viewer` |
| `fastino team uninvite <email>` | 取消一个待处理的邀请，可以使用被邀请的邮箱或邀请 ID |
| `fastino team role <email> <role>` | 确认后把成员的角色改为 `admin`、`billing`、`editor` 或 `viewer`。可以使用成员的邮箱或用户 ID |

## 计费和额度

| 命令 | 作用 |
| - | - |
| `fastino spend` | 显示团队本月的支出 |
| `fastino billing status` | 显示余额、银行卡、自动充值和支出上限 |
| `fastino billing limit <usd>` | 确认后降低团队的支出上限。`--project <project-id>` 改为降低某个项目的上限。还没有上限时，加上 `--window daily` 或 `--window monthly` |
| `fastino billing limit --auto-refill off` | 确认后关闭自动充值 |
| `fastino billing card` | 显示已保存的银行卡，并打开计费页面以便更换 |
| `fastino buy credits <usd>` | 确认后用已保存的银行卡购买额度，每次最多 \$1,000。没有已保存的银行卡或银行要求确认付款时，会打开 Stripe Checkout |

CLI 只会降低上限，也只会关闭自动充值。要提高上限、开启自动充值或更换银行卡，请使用 Web 应用的[计费页面](https://agent.fastino.ai/billing)。购买额度、修改上限和关闭自动充值需要 `owner`、`admin` 或 `billing` 角色。要在 CI 中运行这些命令，请参阅[在 CI 中使用](https://docs.fastino.ai/cn/cli/ci.md)。

## 全局参数

可以把它们加到任何命令上。

| 参数 | 作用 |
| - | - |
| `--json` | 在 stdout 上输出一个 JSON 文档，包括错误。从不提示输入 |
| `--yes`、`-y` | 对确认提示回答“是”。它从不跳过 Web 应用中的确认 |
| `--dry-run` | 显示将会发生什么以及执行它的命令，但不真正执行。只有 `run approve`、`buy credits` 和 `upgrade` 支持它 |
| `--non-interactive` | 从不提示输入。在 CI 中、没有终端时以及在编程智能体中默认开启 |
| `--no-open` | 输出链接，而不是打开浏览器 |
| `--plain`、`--no-color` | 纯文本输出，没有颜色或动画。设置 `NO_COLOR` 效果相同 |
| `--debug` | 把请求 ID 和堆栈跟踪写入日志文件，从不写入密钥或请求头 |
| `--help --json` | 以 JSON 输出所有命令和参数 |

## Shell 补全

`fastino completion <shell>` 会输出适用于 `bash`、`zsh` 或 `fish` 的补全脚本。用适合你的 shell 的那几行保存一次即可：

```bash theme={null}
mkdir -p ~/.local/share/bash-completion/completions
fastino completion bash > ~/.local/share/bash-completion/completions/fastino

mkdir -p ~/.zfunc
fastino completion zsh > ~/.zfunc/_fastino

mkdir -p ~/.config/fish/completions
fastino completion fish > ~/.config/fish/completions/fastino.fish
```

使用 zsh 时，在 `~/.zshrc` 中 `compinit` 之前加上 `fpath=(~/.zfunc $fpath)`。


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