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

# 流程（重定向）

# `openclaw tasks flow`

不存在顶级 `openclaw flows` 命令。持久化 TaskFlow 检查功能位于 `openclaw tasks flow` 下。

## 子命令

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw tasks flow list   [--json] [--status <name>]
openclaw tasks flow show   <lookup> [--json]
openclaw tasks flow cancel <lookup>
```

| 子命令      | 描述                | 参数/选项                                             |
| -------- | ----------------- | ------------------------------------------------- |
| `list`   | 列出跟踪的 TaskFlow。   | `--json` 机器可读输出；`--status <name>` 筛选器（请参阅下方的状态值）。 |
| `show`   | 显示一个 TaskFlow。    | `<lookup>` 流 ID 或所有者键；`--json` 机器可读输出。            |
| `cancel` | 取消正在运行的 TaskFlow。 | `<lookup>` 流 ID 或所有者键。                            |

`<lookup>` 接受流 ID（由 `list` / `show` 返回）或流的所有者键（拥有该流的子系统用来跟踪该流的稳定标识符）。

### 状态筛选值

`list` 上的 `--status` 接受以下值之一：`queued`、`running`、`waiting`、`blocked`、`succeeded`、`failed`、`cancelled`、`lost`。

## 示例

```bash theme={"theme":{"light":"min-light","dark":"min-dark"}}
openclaw tasks flow list
openclaw tasks flow list --status running
openclaw tasks flow list --json
openclaw tasks flow show flow_abc123
openclaw tasks flow show flow_abc123 --json
openclaw tasks flow cancel flow_abc123
```

有关 TaskFlow 概念和编写方法，请参阅 [TaskFlow](/zh-CN/automation/taskflow)。有关父级 `tasks` 命令，请参阅 [tasks CLI 参考](/zh-CN/cli/tasks)。

## 相关内容

* [CLI 参考](/zh-CN/cli)
* [自动化](/zh-CN/automation)
* [TaskFlow](/zh-CN/automation/taskflow)
