UiPath Documentation
uipath-cli
latest
false

UiPath CLI user guide

Letzte Aktualisierung 7. Mai 2026

uip rpa run-file

uip rpa run-file runs or debugs a workflow or coded file. The same verb covers the full execution lifecycle — start, pause, resume, step, restart, stop, toggle a breakpoint — selected by the --command flag. It is the bridge from a script or AI agent to Studio's debugger.

Execution happens through Studio, so the command works only on Windows runners (Studio is Windows-only). If Studio is not already running, the tool brings it up automatically — running uip rpa start-studio first is optional, but useful when you want the startup cost paid in a dedicated setup step.

Synopsis

uip rpa run-file --file-path <path> [--command <verb>] [options]
uip rpa run-file --file-path <path> [--command <verb>] [options]

Optionen

MarkierenBeschreibung
--file-path <string>Required. Path to the file to run — .xaml workflow or .cs coded workflow.
--command <verb>What to do. Defaults to StartExecution. See Command verbs below.
--input-arguments <json>JSON object with project-level input arguments. Used by all commands. For StartExecution / StartDebugging, values are plain JSON ({"name":"John","age":30}). For TestActivity / StartDebuggingFromHere, values are VB.NET or C# expressions.
--input-variables <json>JSON object with workflow-level variable values. Applies only to TestActivity and StartDebuggingFromHere. Values are language expressions, not literal JSON.
--log-level <level>Minimum log level included in the output stream — Verbose, Trace, Information, Warning, Error, Critical. Defaults to Trace.
--skip-buildSkip validation and build for StartExecution / StartDebugging. Assumes the project was already built — use for rapid re-execution when the project hasn't changed.

For the complete option list on your installed tool version, run:

uip rpa run-file --help
uip rpa run-file --help

Command verbs

The --command flag covers two execution modes: non-debug execution, and debugger control. Verbs are case-sensitive and pass through to Studio.

Ausführung

VerbAuswirkung
StartExecution (Standard)Run the workflow at --file-path. No debugger attached.
StartDebuggingStart a debugging session for the workflow.
StopStop the current execution or debugging session.
ForceSessionEndedForce-end the current session if the graceful stop hangs.

Debugger control

VerbAuswirkung
BreakPause execution.
ContinueResume from a paused state.
ResumeResume from a suspended state.
ContinueRetryResume; if paused on an exception, retry the current activity.
ContinueIgnoreResume; if paused on an exception, swallow the exception.
StepInto / StepOver / StepOutStep in the standard debugger sense.
RestartFromTopRestart debugging from the beginning.
ToggleBreakpointToggle a breakpoint at the focused activity (.xaml) or line (.cs). XAML cycles enabled → disabled → none; coded workflows cycle on / off.
TestActivityIsolate and execute the focused activity, with --input-variables / --input-arguments providing in-scope expressions.
StartDebuggingFromHereStart debugging from the focused activity, skipping everything before it.

Beispiele

# Run a workflow with input arguments
uip rpa run-file \
  --file-path ./Main.xaml \
  --input-arguments '{"customerId": "ACME-1234"}'

# Start a debug session
uip rpa run-file \
  --file-path ./Main.xaml \
  --command StartDebugging

# Toggle a breakpoint at the focused activity, then start debugging
uip rpa run-file --file-path ./Main.xaml --command ToggleBreakpoint
uip rpa run-file --file-path ./Main.xaml --command StartDebugging

# Test a single activity with a custom variable expression (VB.NET project)
uip rpa run-file \
  --file-path ./Main.xaml \
  --command TestActivity \
  --input-variables '{"greeting": "\"Hello World\""}'

# Stop a runaway session
uip rpa run-file --file-path ./Main.xaml --command Stop
# Run a workflow with input arguments
uip rpa run-file \
  --file-path ./Main.xaml \
  --input-arguments '{"customerId": "ACME-1234"}'

# Start a debug session
uip rpa run-file \
  --file-path ./Main.xaml \
  --command StartDebugging

# Toggle a breakpoint at the focused activity, then start debugging
uip rpa run-file --file-path ./Main.xaml --command ToggleBreakpoint
uip rpa run-file --file-path ./Main.xaml --command StartDebugging

# Test a single activity with a custom variable expression (VB.NET project)
uip rpa run-file \
  --file-path ./Main.xaml \
  --command TestActivity \
  --input-variables '{"greeting": "\"Hello World\""}'

# Stop a runaway session
uip rpa run-file --file-path ./Main.xaml --command Stop
  • uip rpa start-studio — pay the Studio startup cost in a dedicated setup step.
  • uip rpa stop-execution — equivalent of --command Stop as a standalone verb.
  • uip rpa get-errors — inspect diagnostics after a run.

Siehe auch

  • Synopsis
  • Optionen
  • Command verbs
  • Ausführung
  • Debugger control
  • Beispiele
  • Related
  • Siehe auch

War diese Seite hilfreich?

Verbinden

Benötigen Sie Hilfe? Support

Möchten Sie lernen? UiPath Academy

Haben Sie Fragen? UiPath-Forum

Auf dem neuesten Stand bleiben