UiPath Documentation
uipath-cli
latest
false
UiPath CLI 用户指南
重要 :
请注意,此内容已使用机器翻译进行了本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

uip pm

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 --etag from a prior get (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 publish pushes dev's current model to the published/dashboard layer; apps changes previews what would move.
  • --wait polling. ingestions create and transformations apply/run accept --wait (--timeout, default 1800s; --poll-interval, default 5s) 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 | publisheddevApp 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 | publisheddevApp 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 | bpmnProcess 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 | publisheddevApp 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 | publisheddevApp 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 }
    }
  ]
}

另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新