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

uip update

Syntax and options for `uip update`, which updates installed tools and skills and checks for or applies a newer CLI version.

uip update updates every installed tool and skill, and checks for (and by default applies) a newer CLI release. It's the one-command equivalent of running uip tools update and a skills update together, plus the CLI's own self-update check.

大纲

uip update [--dry-run] [--tools-only | --skills-only] [--no-tools] [--no-skills] [--no-cli-check] [--no-self] [--channel <stable|preview>] [--name <tool-name>] [--agent <agent>] [--local | --no-local]
uip update [--dry-run] [--tools-only | --skills-only] [--no-tools] [--no-skills] [--no-cli-check] [--no-self] [--channel <stable|preview>] [--name <tool-name>] [--agent <agent>] [--local | --no-local]

uip update honors the global options (--output, --output-filter, --log-level, --log-file). Exit codes follow the standard contract, with one addition below.

选项

标记描述
--dry-runPreview what would change without applying it.
--tools-onlyUpdate tools; skip the skills section. Mutually exclusive with --skills-only and with --no-tools.
--skills-onlyUpdate skills; skip the tools section. Mutually exclusive with --tools-only and with --no-skills.
--no-toolsDo not update tools.
--no-skillsDo not update skills.
--no-cli-checkDo not probe for a newer CLI version at all.
--no-selfProbe for a newer CLI version and report it, but do not install it — prints a notice with the manual upgrade command instead of self-updating.
--channel <channel>Override the release channel for this run: stable or preview (see uip config updateChannel). Without this flag, the channel is resolved from core.updateChannel/the running CLI's own build.
--name <tool-name>Restrict the tools update to one scoped tool name.
--agent <agent>Restrict the skills update to one coding agent.
--localRestrict the skills update to local (project) scope only.
--no-localRestrict the skills update to global scope only.

--tools-only combined with --no-tools (or --skills-only combined with --no-skills) is a contradiction and fails with ValidationError before anything runs.

Version policy

There is no per-invocation version flag — uip update always targets the effective version target: your core.version pin from uip config if one is set, otherwise the latest published release.

  • No pin — targets the latest release, crossing MINOR and MAJOR boundaries freely (an explicit uip update is the user opting into that, unlike the unattended daily background sync, which caps itself to avoid an unexpected MAJOR jump).
  • major.minor pin (a "line" pin, e.g. 1.196) — tracks the latest patch within that line.
  • major.minor.patch pin (an exact pin, e.g. 1.196.3) — freezes updates entirely. uip update skips the update engine altogether, emits a Success envelope with every section marked as not run, and prints a warning to stderr explaining the pin and how to clear it (uip config set version <major.minor> to track a line, or uip config clear version to follow latest again).

示例

# Update everything installed, including the CLI itself
uip update
# Update everything installed, including the CLI itself
uip update
# Update tools and skills but only report on a newer CLI, don't self-update
uip update --no-self
# Update tools and skills but only report on a newer CLI, don't self-update
uip update --no-self
# Preview without applying
uip update --dry-run
# Preview without applying
uip update --dry-run
# Tools only, on the preview channel
uip update --tools-only --channel preview
# Tools only, on the preview channel
uip update --tools-only --channel preview

数据形状(--输出 json)

{
  "Code": "UpdateResult",
  "Data": {
    "DryRun": false,
    "Channel": "stable",
    "Cli": {
      "current": "1.4.2",
      "available": "1.4.3",
      "action": "updated",
      "reason": null
    },
    "Tools": [
      { "name": "orchestrator-tool", "status": "updated", "from": "1.4.2", "to": "1.4.3" }
    ],
    "Skills": { "Sections": [] },
    "Errors": [],
    "HasFailures": false
  }
}
{
  "Code": "UpdateResult",
  "Data": {
    "DryRun": false,
    "Channel": "stable",
    "Cli": {
      "current": "1.4.2",
      "available": "1.4.3",
      "action": "updated",
      "reason": null
    },
    "Tools": [
      { "name": "orchestrator-tool", "status": "updated", "from": "1.4.2", "to": "1.4.3" }
    ],
    "Skills": { "Sections": [] },
    "Errors": [],
    "HasFailures": false
  }
}

Cli.action is one of updated, notice (a newer CLI exists but wasn't applied — because of --no-self, or because auto-update declined for another reason), none (already current), or skipped (an exact core.version pin froze the run — see above). Tools/Skills are null, not an empty array, when that section was skipped entirely (--tools-only, --skills-only, --no-tools, --no-skills, or the frozen-pin short-circuit).

A run with Cli.action: "notice" also logs the manual upgrade command to stderr (npm install -g @uipath/cli@<version>, or a tool-reported equivalent).

退出代码

uip update follows the standard contract, with one addition: a partial failure still returns a Success envelope (the orchestrator doesn't stop at the first failing subsystem — it runs every section and reports each outcome under Data.Errors), but the process still exits non-zero when Data.HasFailures is true. Check HasFailures, not just Result, if a script needs to detect a partial update failure.

  • uip configversion and updateChannel govern what uip update targets.
  • uip toolsuip tools update is the tools-only equivalent with its own dedicated flags.
  • uip skills — skills installation and per-agent update behavior.

另请参阅

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新