UiPath Documentation
uipath-cli
latest
false
Guia do usuário da UiPath CLI
Importante :
Este conteúdo foi traduzido com auxílio de tradução automática. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

Opções globais

Opções globais aceitas por toda invocação do "uip", abrangendo o formato de saída, o filtro de saída, o nível de log e o arquivo de log.

Every uip invocation is pre-scanned for a fixed set of global options before any tool or subcommand sees its arguments — they can appear anywhere on the command line, work identically across every tool, and are stripped out before per-command flag parsing runs.

OpçãoShortValorPadrãoFinalidade
--outputtable, json, yaml, plain, markdownjsonFormato da saída principal gravada em stdout.
--jsonBandeiraHidden compatibility alias for --output json. Passing it together with an explicit --output <value> is a conflict — see below.
--output-filterExpressão JmesPathPós-filtro aplicado à carga JSON antes da formatação.
--log-leveldebug, info, warn, errorinfoVerificação de mensagens de log gravadas no stderr (e --log-file , se definido).
--log-filePathSe definido, os logs serão duplicados para este arquivo no formato Linhas JSON.
--profilenameSelects a named, saved login profile instead of the default credentials location. Mutually exclusive with a command's own -f, --file <folder> (for example on uip login, uip login tenant list/set, uip logout) — passing both is a ValidationError. See Sessions and credentials.
--interactive / --no-interactiveBandeiraauto (prompts only on a TTY)Force prompting on or off, overriding the default "prompt only when connected to a TTY" behavior. Not specific to any one command — it governs every place a uip command would otherwise ask a question (for example tenant selection during uip login, or the agent/target picker on uip skills install).

--version (-v) e --help (-h) também são reconhecidos em uip e em cada subcomando, mas são convenções padrão da CLI em vez de sinalizadores globais no sentido acima.

--saída

Escolha o formato de saída. Ambos --output json e --output=json funcionam; os valores diferenciam maiúsculas de minúsculas.

uip or folders list                     # default: json
uip or folders list --output table      # human-friendly table
uip or folders list --output yaml       # yaml
uip or folders list --output plain      # key=value lines, no structure
uip or folders list --output markdown   # GitHub-flavored markdown, for agents/chat surfaces
uip or folders list                     # default: json
uip or folders list --output table      # human-friendly table
uip or folders list --output yaml       # yaml
uip or folders list --output plain      # key=value lines, no structure
uip or folders list --output markdown   # GitHub-flavored markdown, for agents/chat surfaces
  • json padrão) — um documento JSON no stdout. Analisado por jq, --output-filter e por qualquer consumidor JSON. Esse é o padrão para cada invocação, independentemente de o terminal ser um TTY.
  • table tabela com bordas e colorida adequada para leitura em um terminal. Não estável entre versões — não a analise.
  • yaml — Serialização YAML da mesma estrutura que json.
  • plain — linhas key=value simples. Útil para canalizar para o shell read, grep, e cut sem instalar jq.
  • markdown — a GFM table for a list, or **key:** value lines for a single record. Meant for an agent or chat surface reading uip output, not a terminal session. See Output formats — markdown for the full behavior.
Observação:

O padrão é json, não table. Quando um humano executa uip or folders list em um terminal, ele vê um documento JSON no stdout. Passe --output table explicitamente (ou adicione-o a um alias de shell) para a visualização amigável de leitura. Essa escolha mantém a mesma forma de stdout em um terminal e em um pipeline — os scripts não precisam se preocupar se estão sendo executados interativamente.

--json (hidden alias)

--json is a hidden compatibility alias for --output json — it doesn't appear in --help, but it is fully functional:

uip or folders list --json   # identical to --output json
uip or folders list --json   # identical to --output json

Passing --json together with an explicit --output <value> (any value, including json) is flagged as a conflict internally; avoid combining them — pass one or the other.

--profile

Select a named, saved login profile instead of the default credentials location:

uip login --profile ci-runner --client-id env.UIPATH_CLIENT_ID --client-secret env.UIPATH_CLIENT_SECRET --tenant Production
uip or folders list --profile ci-runner
uip login --profile ci-runner --client-id env.UIPATH_CLIENT_ID --client-secret env.UIPATH_CLIENT_SECRET --tenant Production
uip or folders list --profile ci-runner

--profile <name> and a command's own -f, --file <folder> are mutually exclusive — passing both fails with ValidationError: option '--profile' cannot be used with option '--file'. Profile names are normalized (case and separator rules apply); an invalid name is rejected before any network call. See Sessions and credentials — named profiles.

--interactive / --no-interactive

Override the default "prompt only when stdout is a TTY" behavior:

uip login --interactive        # force the tenant-selection prompt even when not on a TTY
uip skills install --no-interactive --agent claude   # never prompt, fail instead if a required choice is missing
uip login --interactive        # force the tenant-selection prompt even when not on a TTY
uip skills install --no-interactive --agent claude   # never prompt, fail instead if a required choice is missing

--interactive sets prompting to always-on; --no-interactive forces it off. Neither flag is specific to uip login — despite appearing in login examples throughout this documentation set, interactivity is a cross-cutting global option with no command-specific short form (there is no --it or similar alias anywhere in the CLI).

Separação de stream

--output controles stdout apenas. Logs, indicadores de progresso e erros voltados para humanos vão para stderr, independentemente do formato. Isso significa que um pipeline pode capturar JSON limpo com:

uip or folders list > folders.json 2> uip.log
uip or folders list > folders.json 2> uip.log

...e ainda veem a saída de log separadamente.

--output-filter

Aplique uma expressão JmesPath à carga do JSON antes da formatação. O filtro é executado no envelope de resposta completo, então Data[*].Name escolhe nomes da matriz Data , length(Data) retorna uma contagem e assim por diante.

# just the Data field
uip or folders list --output-filter "Data"

# folder names only
uip or folders list --output-filter "Data[*].Name"

# count
uip or folders list --output-filter "length(Data)"

# first folder's key and name
uip or folders list --output-filter "Data[0] | {key: Key, name: Name}"
# just the Data field
uip or folders list --output-filter "Data"

# folder names only
uip or folders list --output-filter "Data[*].Name"

# count
uip or folders list --output-filter "length(Data)"

# first folder's key and name
uip or folders list --output-filter "Data[0] | {key: Key, name: Name}"

Combinando com --output:

# names as YAML
uip or folders list --output-filter "Data[*].Name" --output yaml

# names as one-per-line plain text
uip or folders list --output-filter "Data[*].Name" --output plain
# names as YAML
uip or folders list --output-filter "Data[*].Name" --output yaml

# names as one-per-line plain text
uip or folders list --output-filter "Data[*].Name" --output plain

Uma expressão de filtro malformada falha rapidamente com um ValidationError e código de saída 3 antes que o comando subjacente seja executado — para que um erro de digitação não desperdiça uma chamada de API.

Dica:

--output-filter é a versão da CLI do --query do Azure CLI, do --query do AWS CLI e do --filter/--format do gcloud. Se você já conhecer o JmesPath dessas ferramentas, a sintaxe será idêntica.

--nível de log

Defina a verbosidade das mensagens de log (escritas como stderr e como --log-file se fornecida).

uip or folders list --log-level debug   # verbose — HTTP calls, auth refresh, tool loading
uip or folders list --log-level info    # default
uip or folders list --log-level warn
uip or folders list --log-level error   # only failures
uip or folders list --log-level debug   # verbose — HTTP calls, auth refresh, tool loading
uip or folders list --log-level info    # default
uip or folders list --log-level warn
uip or folders list --log-level error   # only failures

Os valores não diferenciam maiúsculas de minúsculas. Valores desconhecidos são ignorados silenciosamente (o padrão é mantido) em vez de gerar erros — de propósito, para que um erro de digitação em um script de wrapper não interrompa um pipeline.

A variável de ambiente UIPATH_LOG_LEVEL não é honrada; transmita o sinalizador ou defina-o em um script de perfil.

--log-file

Grave uma duplicata do fluxo de log para o arquivo especificado, no formato JSON Lines (um objeto JSON por linha). O arquivo é anexado — use um caminho específico de compilação se precisar de logs separados por execução.

uip or folders list --log-file ./uip.log
uip or folders list --log-file /var/log/uip/$(date +%F).log --log-level debug
uip or folders list --log-file ./uip.log
uip or folders list --log-file /var/log/uip/$(date +%F).log --log-level debug

Cada linha no arquivo se parece com:

{"time":"2026-04-24T18:42:00.123Z","level":"info","message":"CLI v1.0.0 starting — output=json, logLevel=info, logFile=./uip.log"}
{"time":"2026-04-24T18:42:00.123Z","level":"info","message":"CLI v1.0.0 starting — output=json, logLevel=info, logFile=./uip.log"}

Esse formato é projetado para remetentes de log (Fluent Bit, Loji, Splunk) e para análise post-mé fornecer.

Onde as opções globais se aplicam

As opções globais são removidas da linha de comando antes que os sinalizadores por comando sejam analisados, para que possam aparecer em qualquer lugar na linha de comando:

uip --output table or folders list
uip or --output table folders list
uip or folders list --output table
uip or folders list --output=table
uip --output table or folders list
uip or --output table folders list
uip or folders list --output table
uip or folders list --output=table

Todas as quatro invocações são equivalentes.

Os subcomandos da ferramenta não definem seu próprio --output ou --log-level. Uma ferramenta que definiu inadvertidamente um seguiria o sinalizador global — as verificações de lint da CLI proíbem isso.

Códigos de saída

As opções globais controlam apenas a saída e o registro em log; eles não afetam códigos de saída. Consulte Códigos de saída.

Environment variable overrides

Two environment variables change global-option behavior without a flag:

VariávelEfeito
UIP_DEFAULT_OUTPUTOverrides the built-in json default for --output when the flag isn't passed. Accepts table, json, yaml, plain, or markdown; invalid values are ignored. An explicit --output on the command line always wins.
UIP_TIMINGSSet to 1 or true to print a per-invocation timing line to stderr on every uip command. See Command timings below.

Command timings

Set UIP_TIMINGS=1 (or true) and every invocation prints one line to stderr:

[timing] 'uip or assets list' exit=0 total=1250ms startup=380ms command=863ms http=691ms httpCalls=3 flush=7ms
[timing] 'uip or assets list' exit=0 total=1250ms startup=380ms command=863ms http=691ms httpCalls=3 flush=7ms
CampoSignificado
(the quoted command)The command as typed.
exitThe exit code the invocation returned.
totalTotal wall clock, measured from process start.
startupEverything before the command handler ran — process boot, config, tool loading.
commandThe command handler itself.
httpSummed duration of the run's outbound HTTP calls — a sum, not wall clock. It overlaps command rather than adding to it, so parallel calls can make it larger than command.
httpCallsHow many outbound HTTP calls that sum covers.
flushEverything after the handler returned — telemetry bookkeeping and the final flush.

startup + command + flush always equals total. Fields are omitted when they don't apply: a run that never reaches a handler (uip --version, an unknown command) prints only total and exit; a command that makes no HTTP call has neither http nor httpCalls.

The report has its own switch — it doesn't depend on --log-level, so you get durations without turning on debug output, and stdout is never touched.

Veja também

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades