uipath-cli
latest
false
- Overview
- Get started
- Concepts
- Using UiPath CLI
- How-to guides
- CI/CD recipes
- Command reference
- Overview
- Exit codes
- Global options
- uip codedagent
- uip docsai
- add-test-data-entity
- add-test-data-queue
- add-test-data-variation
- analyze
- build
- create-project
- diff
- find-activities
- get-analyzer-rules
- get-default-activity-xaml
- get-errors
- get-manual-test-cases
- get-manual-test-steps
- get-versions
- get-workflow-example
- indicate-application
- indicate-element
- inspect-package
- install-data-fabric-entities
- install-or-update-packages
- list-data-fabric-entities
- list-workflow-examples
- pack
- restore
- run-file
- search-templates
- start-studio
- stop-execution
- uia
- uip traces
- Migration
- Reference & support
UiPath CLI user guide
Last updated May 7, 2026
uip flow validate validates a .flow file against the Flow schema with structural cross-field checks. An optional --governance pass additionally validates agent nodes against your organization's governance policies.
Synopsis
uip flow validate <flowFile> [--governance]
uip flow validate <flowFile> [--governance]
Honors global options. Exit codes follow the standard contract.
Arguments
<flowFile>(required) — path to the.flowfile (or a JSON file conforming to the Flow schema).
Options
--governance— also validate agent nodes against organization governance policies. Requiresuip login; the CLI fetchesenforcementsand the allowedmodelNamesfrom the platform before running the check. If the fetch fails, the command errors out — omit--governanceto skip policy checks.
Behavior
- Schema validation runs locally and does not require login.
- Structural checks ensure references between nodes, edges, bindings, variables, and definitions are consistent.
- With
--governance, any agent node whose configuration (model, tools, policies) conflicts with the fetched enforcements is flagged.
Examples
# Structural validation only (no login required)
uip flow validate invoice-flow.flow
# Full validation including governance policy for agent nodes
uip flow validate invoice-flow.flow --governance
# Structural validation only (no login required)
uip flow validate invoice-flow.flow
# Full validation including governance policy for agent nodes
uip flow validate invoice-flow.flow --governance
Data shape (--output json)
On success:
{
"Code": "FlowValidate",
"Data": {
"File": "invoice-flow.flow",
"Status": "Valid"
}
}
{
"Code": "FlowValidate",
"Data": {
"File": "invoice-flow.flow",
"Status": "Valid"
}
}
On validation failure, the command exits non-zero and returns a Failure result with error details in Message / Instructions.
Note:
The exact shape of the failure payload (per-error list, paths, rule IDs) may evolve across releases. For scripts that parse failure details programmatically, run a known-bad validation once with --output json to capture the current shape and pin @uipath/cli in CI.
See also
uip flow debug— dynamic validation via Studio Webuip flow pack— pack a validated project- Flow overview