流程

使用 flow 命令在集合中创建流程,并管理流程内截图步骤的顺序。Flow 命令始终作用于集合的 latest version。

flowingto flow list

列出集合中的流程:

flowingto flow list -c <collection-id>

flowingto flow create

创建流程:

flowingto flow create "Checkout" -c <collection-id>

添加可选描述:

flowingto flow create "Checkout" -c <collection-id> --description "Purchase path"

flowingto flow show

显示流程步骤顺序和图片名称:

flowingto flow show <flow-id-or-slug> -c <collection-id>

flowingto flow add

将已有 item 加入流程:

flowingto flow add <flow-id-or-slug> --item <item-id> -c <collection-id>

插入到指定的 1-based 位置:

flowingto flow add <flow-id-or-slug> --item <item-id> -c <collection-id> --at 1

未传 --at 时会追加到末尾。同一个 item 可以在同一个流程中重复出现。

flowingto flow remove

flow show 中显示的 1-based 顺序移除步骤:

flowingto flow remove <flow-id-or-slug> -c <collection-id> --at 2

集合 ID 解析

集合 ID 按以下优先级解析:

  1. -c, --collection CLI 参数
  2. .flowingtorc.json 中的 collection 字段

如需加入新截图,先使用 flowingto upload 上传,再将返回的 item id 传给 flowingto flow add --item