- 概述
- 开始使用
- 概念
- 使用 UiPath CLI
- 操作指南
- CI/CD 方法
- 命令参考
- 迁移
- 参考与支持
Commands for managing Process Mining process apps, data ingestion, transformations, and analysis using the `uip pm` tool.
uip pm is the Process Mining tool: it creates and manages process apps (mined process models built from event-log data), uploads and ingests source data, runs dbt transformations, and analyzes the result (conformance against a reference model, accepted deviations, ad hoc queries). pm is the command prefix; the underlying package is @uipath/pm-tool.
A process app moves through a dev stage (where you author its structure) and a published stage (what dashboards/consumers see) — most verbs take --stage dev|published (default dev). Every command requires uip login first.
This resource spans four pages
- This page — concepts,
apps(create/list/get/delete/publish),app-types,files,simulations. apps model— the ETag-guarded structural/semantic model editing surface:apps data-model,apps model(get/update/fields/dashboards/metrics).ingestions&transformations— trigger and inspect data loads and dbt builds.conformance,deviations&query— analyze a mined app: conformance rate, accepted deviations, ad hoc data queries.
概念
- ETag-guarded writes. Every write to an app's data model, semantic model, or a transformation file requires an
--etagfrom a priorget(or is itself a read-modify-write that fetches its own base). A stale ETag fails with a conflict; the fix is to re-read, redo the edit, and retry — never re-fetch a fresh ETag just to force the write through, since that silently clobbers whatever changed in between. - Dev vs. published. Structural/semantic edits, ingestion, and transformations only apply to
dev.apps publishpushes dev's current model to the published/dashboard layer;apps changespreviews what would move. --waitpolling.ingestions createandtransformations apply/runaccept--wait(--timeout, default1800s;--poll-interval, default5s) to block until the run reaches a terminal state, printing the real dbt/loader error on failure instead of just exiting.
大纲
uip pm apps list [--stage dev|published]
uip pm apps get <app-id> [--stage dev|published]
uip pm apps create <name> --type <app-type-key> [--type-version <v>] [--miner directly-follows|inductive|bpmn] [--description <text>] [--data-mapping <json-file>]
uip pm apps delete <app-id> -y
uip pm apps publish <app-id>
uip pm apps changes <app-id>
uip pm apps publications <app-id> [--limit <n>] [--since-version <v>]
uip pm app-types list
uip pm app-types get <app-type-key> <app-type-version>
uip pm files upload <app-id> <file-path> [--stage dev|published] [--input-table <name>]
uip pm simulations list <app-id> [--stage dev|published]
uip pm apps list [--stage dev|published]
uip pm apps get <app-id> [--stage dev|published]
uip pm apps create <name> --type <app-type-key> [--type-version <v>] [--miner directly-follows|inductive|bpmn] [--description <text>] [--data-mapping <json-file>]
uip pm apps delete <app-id> -y
uip pm apps publish <app-id>
uip pm apps changes <app-id>
uip pm apps publications <app-id> [--limit <n>] [--since-version <v>]
uip pm app-types list
uip pm app-types get <app-type-key> <app-type-version>
uip pm files upload <app-id> <file-path> [--stage dev|published] [--input-table <name>]
uip pm simulations list <app-id> [--stage dev|published]
uip pm apps list
List process apps.
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--stage <stage> | dev | published | dev | App stage to list. |
示例
uip pm apps list
uip pm apps list
数据形状(--输出 json)
{ "Code": "PmAppsList", "Data": [{ "Id": "9c46289e", "Name": "Sample dataset" }] }
{ "Code": "PmAppsList", "Data": [{ "Id": "9c46289e", "Name": "Sample dataset" }] }
uip pm apps get
Get one process app: its status, last ingestion, and build state.
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<app-id> | 是 | Process app ID. |
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--stage <stage> | dev | published | dev | App stage to read. |
示例
uip pm apps get 9c46289e
uip pm apps get 9c46289e
数据形状(--输出 json)
{
"Code": "PmAppsGet",
"Data": {
"Id": "9c46289e",
"Name": "Sample dataset",
"AppStatus": "CREATED",
"LastIngestion": { "Id": "1d7e1421", "Status": "SUCCESS" }
}
}
{
"Code": "PmAppsGet",
"Data": {
"Id": "9c46289e",
"Name": "Sample dataset",
"AppStatus": "CREATED",
"LastIngestion": { "Id": "1d7e1421", "Status": "SUCCESS" }
}
}
uip pm apps create
Create a process app from an app template (see app-types list).
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<name> | 是 | 应用程序名称。 |
选项
| 长 | 值 | 必填 | 描述 |
|---|---|---|---|
--type <app-type-key> | 字符串 | 是 | App template key, e.g. uipath.custom. |
--type-version <version> | 字符串 | 否 | Template version. Defaults to the latest available. |
--miner <miner> | directly-follows | inductive | bpmn | 否 | Process miner. Default directly-follows. Only inductive/bpmn produce a reference model, which conformance/deviations need. |
--description <text> | 字符串 | 否 | 应用程序说明。 |
--data-mapping <json-file> | 路径 | 否 | JSON file with the input data mapping (tables/fields). Missing IsNotNull/IsUnique/DataTypeSettings per field are defaulted automatically. |
示例
uip pm apps create "Sample dataset" --type uipath.custom --data-mapping ./mapping.json
uip pm apps create "Sample dataset" --type uipath.custom --data-mapping ./mapping.json
数据形状(--输出 json)
{
"Code": "PmAppsCreate",
"Data": { "AppId": "9c46289e-e2e3-4da4-a2ea-95c98f719ff7", "Name": "Sample dataset", "Type": "uipath.custom" }
}
{
"Code": "PmAppsCreate",
"Data": { "AppId": "9c46289e-e2e3-4da4-a2ea-95c98f719ff7", "Name": "Sample dataset", "Type": "uipath.custom" }
}
uip pm apps delete
Delete a process app.
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<app-id> | 是 | Process app ID. |
选项
| 长 | 值 | 描述 |
|---|---|---|
-y, --yes | 标记 | Confirm this irreversible operation. Required — the CLI never prompts. |
示例
uip pm apps delete 9c46289e --yes
uip pm apps delete 9c46289e --yes
数据形状(--输出 json)
{ "Code": "PmAppsDelete", "Data": { "AppId": "9c46289e", "Status": "Deleted" } }
{ "Code": "PmAppsDelete", "Data": { "AppId": "9c46289e", "Status": "Deleted" } }
uip pm apps publish
Publish dev changes to the dashboards/query layer.
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<app-id> | 是 | Process app ID. |
示例
uip pm apps publish 9c46289e
uip pm apps publish 9c46289e
数据形状(--输出 json)
{ "Code": "PmAppsPublish", "Data": { "AppId": "9c46289e", "Changes": {}, "IngestionNeeded": true, "Hint": "Published changes need data — run 'uip pm ingestions create <app> --wait' to load them into the dashboards." } }
{ "Code": "PmAppsPublish", "Data": { "AppId": "9c46289e", "Changes": {}, "IngestionNeeded": true, "Hint": "Published changes need data — run 'uip pm ingestions create <app> --wait' to load them into the dashboards." } }
Hint is present only when IngestionNeeded is true.
uip pm apps changes
Show which parts of dev are not published yet (dashboards, transformations, BPMN).
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<app-id> | 是 | Process app ID. |
示例
uip pm apps changes 9c46289e
uip pm apps changes 9c46289e
数据形状(--输出 json)
{ "Code": "PmAppsChanges", "Data": { "AppId": "9c46289e", "ModelVersion": 3, "Changes": {}, "IngestionNeeded": false } }
{ "Code": "PmAppsChanges", "Data": { "AppId": "9c46289e", "ModelVersion": 3, "Changes": {}, "IngestionNeeded": false } }
uip pm apps publications
List the publish history of a process app.
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<app-id> | 是 | Process app ID. |
选项
| 长 | 值 | 描述 |
|---|---|---|
--limit <number> | 整数 | Max publications to return. |
--since-version <model-version> | 整数 | Only return publications newer than this model version. |
数据形状(--输出 json)
{ "Code": "PmAppsPublications", "Data": [] }
{ "Code": "PmAppsPublications", "Data": [] }
uip pm app-types
Discover process app templates. Not stage-scoped — templates are tenant-global.
uip pm app-types list
List available app templates at their latest version.
uip pm app-types list
uip pm app-types list
{ "Code": "PmAppTypesList", "Data": [{ "AppTypeKey": "uipath.custom", "Version": "2604.192.1-ci.5" }] }
{ "Code": "PmAppTypesList", "Data": [{ "AppTypeKey": "uipath.custom", "Version": "2604.192.1-ci.5" }] }
uip pm app-types get
Get the full app model of a template version.
| 名称 | 必填 | 用途 |
|---|---|---|
<app-type-key> | 是 | App template key. |
<app-type-version> | 是 | Template version. |
uip pm app-types get uipath.custom 2604.192.1-ci.5
uip pm app-types get uipath.custom 2604.192.1-ci.5
{ "Code": "PmAppTypesGet", "Data": {} }
{ "Code": "PmAppTypesGet", "Data": {} }
uip pm files upload
Upload a data file to a process app via chunked blob upload (5 MB parts, 4 concurrent).
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<app-id> | 是 | Process app ID. |
<file-path> | 是 | Local path to the data file. |
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--stage <stage> | dev | published | dev | App stage to upload to. |
--input-table <name> | 字符串 | — | Target input table the file belongs to (e.g. Event_log). |
示例
uip pm files upload 9c46289e ./Event_log.csv --input-table Event_log
uip pm files upload 9c46289e ./Event_log.csv --input-table Event_log
数据形状(--输出 json)
{
"Code": "PmFilesUpload",
"Data": { "Filename": "Event_log/.../Event_log.csv", "UploadId": "...", "Size": 12345, "Parts": 1, "InputTable": "Event_log" }
}
{
"Code": "PmFilesUpload",
"Data": { "Filename": "Event_log/.../Event_log.csv", "UploadId": "...", "Size": 12345, "Parts": 1, "InputTable": "Event_log" }
}
uip pm simulations list
Read the process simulations (what-if scenarios) saved on a process app. Read-only — there is no create/update/delete; simulations are authored elsewhere and only listed here. Served by a different API (app-scoped PMT, token-exchanged) than the rest of this tool.
参数
| 名称 | 必填 | 用途 |
|---|---|---|
<app-id> | 是 | Process app ID. |
选项
| 长 | 值 | 默认 | 描述 |
|---|---|---|---|
--stage <stage> | dev | published | dev | App stage. |
示例
uip pm simulations list 9c46289e
uip pm simulations list 9c46289e
数据形状(--输出 json)
{
"Code": "PmSimulationsList",
"Data": [
{
"DefinitionMetadata": { "Name": "Two more approvers", "SimulationId": "bfd3d274-...", "IngestionId": "7792c4cd-...", "ProcessId": "Process" },
"RunMetadata": { "Status": "successWithWarnings", "NumberOfCases": 1000, "NumberOfRuns": 40 }
}
]
}
{
"Code": "PmSimulationsList",
"Data": [
{
"DefinitionMetadata": { "Name": "Two more approvers", "SimulationId": "bfd3d274-...", "IngestionId": "7792c4cd-...", "ProcessId": "Process" },
"RunMetadata": { "Status": "successWithWarnings", "NumberOfCases": 1000, "NumberOfRuns": 40 }
}
]
}
相关内容
apps model— edit the data model, semantic model, fields, dashboards, and metrics.ingestions&transformations— load data and run dbt.conformance,deviations&query— analyze a mined app.
另请参阅
- This resource spans four pages
- 概念
- 大纲
- uip pm apps list
- 选项
- 示例
- 数据形状(--输出 json)
- uip pm apps get
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- uip pm apps create
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- uip pm apps delete
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- uip pm apps publish
- 参数
- 示例
- 数据形状(--输出 json)
- uip pm apps changes
- 参数
- 示例
- 数据形状(--输出 json)
- uip pm apps publications
- 参数
- 选项
- 数据形状(--输出 json)
- uip pm app-types
- uip pm app-types list
- uip pm app-types get
- uip pm files upload
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- uip pm simulations list
- 参数
- 选项
- 示例
- 数据形状(--输出 json)
- 相关内容
- 另请参阅