UiPath Documentation
uipath-cli
2026.10
false
Guía del usuario de UiPath CLI

conversión de aplicación codificada de uip

Syntax and options for `uip codedapp convert`, which converts an exported VB low-code app (`.uiapp`) or a Unified Build Solution (`.uis`) into a React and TypeScript coded app.

uip codedapp convert converts an exported low-code app into a React and TypeScript coded app that you own. The input is one of two exports:

  • The .uiapp file that Apps Studio exports for a Visual Basic (VB) app — a standalone low-code app whose expressions are written in VB, the Apps Studio default.
  • The .uis file that Studio Web exports for a Unified Build Solution. A Unified Build app keeps its event logic in XAML workflows, which become TypeScript handlers in the coded app. A Solution can hold more than one app, and each app converts into a project of its own. Refer to Convert a Unified Build Solution.

El resultado es un proyecto Vite, React y TypeScript con:

  • Un componente por página
  • Acceso a datos escritos a través de @uipath/uipath-typescript
  • Un conversion-report.json que enumera lo que se convirtió, lo que no y la causa de cada vacío (converter, source-app o by-design)

La conversión se ejecuta en su máquina. No realiza ninguna llamada al tenant y no necesita uip login.

Requisitos previos​

El conversor vincula las expresiones VB de la aplicación con el compilador Roslyn, que se ejecuta en .NET, por lo que .NET 10 Runtime debe instalarse en la máquina que ejecuta convert. No se necesita .NET SDK.

El runtime para cada sistema operativo está disponible en dotnet.microsoft.com. Una vez instalado, dotnet --list-runtimes en un nuevo terminal imprime una línea que comienza con Microsoft.NETCore.App 10.. Otras versiones de .NET pueden permanecer instaladas.

Sin el runtime, convert se detiene antes de leer el archivo e informa CONVERT_PREREQUISITE_MISSING.

SDK del convertidor​

El conversor, @uipath/codedapp-convert-sdk, se envía con la herramienta. Si el comando informa de que el SDK del convertidor no se ha podido cargar, por ejemplo, después de una instalación con --omit=optional, uip tools install codedapp reinstala la herramienta junto con el SDK. uip tools update no ayuda aquí, porque la versión de la herramienta instalada ya es actual.

También puedes instalar el SDK junto a la herramienta con npm install -g @uipath/codedapp-convert-sdk@beta, sin -g para una CLI local de proyecto.

Reading a .uis file needs the SDK version the tool is built against, or later. An older SDK still converts a .uiapp file, and for a .uis file the failure names the version it needs.

Sinopsis​

uip codedapp convert <file> [options]
uip codedapp convert <file> [options]

Argumentos​

ArgumentoDescripción
<file>Required. The export: a .uiapp file (VB app) or a .uis file (Unified Build Solution). Put it before --app, which takes every word after it.

Opciones​

MarcaDescripción
--out <dir>Output directory for the coded app, by default ./<file name> in the current directory. An empty value is refused instead of treated as omitted. For a .uis file, refer to Convert a Unified Build Solution.
--app <names...>For a .uis Solution that holds more than one app: the apps to convert, as one or more names, or all. A value with a comma is a list of names. A Solution with one app needs no --app. With more than one app and no --app, the command lists the apps and stops. Refused on a .uiapp file.
--skip-solution-registrationWrite a standalone coded app and leave every Solution alone: the .uis is not extracted into --out, and the app is not registered in a Solution folder that --out is in.
--client-id <id>Client ID of the external application (OAuth client) that the app signs users in with. Written into uipath.json as clientId, replacing the value it holds. For an app registered in a Solution, also written onto the app's resource as externalClientId, which a deploy requires.
--forceConvert into a non-empty directory, for a re-conversion. The generated code is replaced, including hand edits. uipath.json and node_modules are kept.
--refreshVincula cada expresión de nuevo en lugar de reutilizar la caché de vinculación del directorio de salida.

Salida​

La aplicación codificada va a --out o a un directorio con el nombre del archivo en tu directorio actual. La salida incluye:

  • README.md
  • conversion-report.json
  • conversion-log.ndjson
  • La habilidad fix-converted-app

Convert a Unified Build Solution​

A converted Unified Build app stays a part of the Solution it came from: it refers to Solution resources, such as a connection, a queue, or a bucket, by the keys the Solution declares. By default, a .uis file therefore converts into its Solution, beside the original app. The result is a Solution folder ready for the uip solution commands:

invoices/                        --out: the extracted Solution
  Invoices.uipx                  lists two projects
  Invoices/                      the original low-code app, unchanged
  Invoices_Coded/                the converted app, registered as a project
    project.uiproj
    webAppManifest.json
    action-schema.json           an action app only
    source/                      the React and TypeScript app
  resources/solution_folder/     the original entries, plus one for Invoices_Coded
invoices/                        --out: the extracted Solution
  Invoices.uipx                  lists two projects
  Invoices/                      the original low-code app, unchanged
  Invoices_Coded/                the converted app, registered as a project
    project.uiproj
    webAppManifest.json
    action-schema.json           an action app only
    source/                      the React and TypeScript app
  resources/solution_folder/     the original entries, plus one for Invoices_Coded

The command works in this order:

  1. It extracts the .uis file into --out. When --out is a Solution folder already, or is inside one, nothing is extracted and that Solution is used.
  2. It writes each selected app to <App>_Coded/source/.
  3. It registers each project in the Solution's .uipx file and adds its resource entry, the same way uip codedapp init does.

The original app, and the resources that run its workflows, stay as they are.

Where the projects go​

--outResultado
A missing or empty folderThe Solution is extracted there, and each app becomes <dir>/<App>_Coded.
The folder that holds a Solution's .uipx fileNothing is extracted. Each app becomes <solution>/<App>_Coded.
<solution>/<name>, inside a Solution folderNothing is extracted. For a Solution with one app, <name> is the project. For a Solution with more than one app, <name> holds an <App>_Coded project per app.
Any folder, with --skip-solution-registrationA standalone project at <dir> for a Solution with one app, or at <dir>/<App> per app for a Solution with more than one app.

A re-run into the folder that an earlier run extracted does not extract the Solution again, and Data.SolutionExtracted is false. The Solution on disk must be the one the export came from. Any other Solution is refused with CONVERT_SOLUTION_UNUSABLE.

A project that the Solution already holds is checked before anything is written:

Existing projectResultado
A coded project at <App>_CodedAn earlier conversion. Refused with CONVERT_DIR_NOT_EMPTY; --force converts over it.
A project at that path that is not a coded appRefused with CONVERT_APP_SELECTION, with or without --force.
A coded project under another name that was converted from the same appRefused with CONVERT_APP_SELECTION, with or without --force.

Sign-in client and routing name​

A deployed coded app signs users in through an external application, and a deploy refuses a coded app whose resource names none. The conversion writes the client ID onto the app's resource as externalClientId, and reports it in Data.ExternalClientId. The value comes from the first of these:

  1. --client-id, which also sets clientId in uipath.json.
  2. The clientId in the app's source/uipath.json, when it holds a real ID.
  3. The value an earlier run left on the resource.

A first conversion without --client-id has only a placeholder, and NextSteps says how to supply the ID. The deployed URL of the app must be one of the redirect URLs of that external application.

The conversion also gives the app's resource a routing name of its own, taken from the project name, for example invoices-coded for Invoices_Coded. Data.RoutingName reports it. A routing name set on the resource by hand is kept. A coded action app has none.

Pack and deploy the Solution​

The Solution carries the converted app. uip codedapp pack, publish, and deploy are for a standalone app, not for an app registered in a Solution.

cd invoices/Invoices_Coded/source && npm install && npm run build && cd ../..
uip solution pack . ./pack
uip solution publish ./pack/<package>_<version>.zip --wait
uip solution upload .
cd invoices/Invoices_Coded/source && npm install && npm run build && cd ../..
uip solution pack . ./pack
uip solution publish ./pack/<package>_<version>.zip --wait
uip solution upload .

Push a converted app​

convert never contacts a tenant. Pushing the converted code into a Studio Web project is a separate step with uip codedapp push, from the folder that holds package.json: the output folder for a standalone conversion, or the project's source/ folder for an app registered in a Solution.

uip codedapp convert ./Invoices.uis --out ./invoices --client-id <external-application-client-id>
cd ./invoices/Invoices_Coded/source
npm install && npm run build
uip login
uip codedapp push --project-id <coded-app-project-id>
uip codedapp convert ./Invoices.uis --out ./invoices --client-id <external-application-client-id>
cd ./invoices/Invoices_Coded/source
npm install && npm run build
uip login
uip codedapp push --project-id <coded-app-project-id>
Importante:

push makes the remote project match the local folder, and deletes remote files that are not in the folder, without a prompt. Pass --project-id explicitly, and check that it names the coded app project to replace.

  • push copies clientId from uipath.json onto the project as its external application. A conversion without --client-id leaves a placeholder there, and an app pushed with the placeholder cannot sign in. Set clientId to the external application's ID, or to "" to keep the client ID the project already has.
  • convert lists its own non-web files, such as conversion-log.ndjson, in a .uipignore file beside the code, so push does not refuse them.

La habilidad de corregir la aplicación convertida​

La salida contiene la habilidad fix-converted-app como fuente de habilidad, en el mismo diseño que UiPath/skills: .uipath/agent-skills/skills/fix-converted-app/SKILL.md. convert no ejecuta ningún agente en sí. Imprime el comando que instala la habilidad en NextSteps:

uip skills install --repo ./.uipath/agent-skills --path .
uip skills install --repo ./.uipath/agent-skills --path .

Cuando se ejecuta desde el directorio de salida, el comando instala la habilidad para cada agente de codificación detectado en la máquina, o solo para un agente con --agent <name>. Consulta uip skills. La habilidad se inicia desde el agente de codificación, por su nombre.

La habilidad lee conversion-report.json, resuelve los problemas que el informe atribuye a converter editando el código generado, crea el proyecto para comprobar su trabajo y escribe lo que hizo en conversion-fixes.md. Nunca cambia el informe o el registro. La habilidad lee el código generado en la exportación, así como el informe, por lo que puede tardar unos minutos y puede cambiar cosas que el informe no enumeraba.

Ejemplos​

# Convert an export; the coded app lands in ./expense-app
uip codedapp convert ./expense-app.uiapp

# Choose the directory
uip codedapp convert ./expense-app.uiapp --out ./apps/expense

# Re-convert into the same project after a converter update (uipath.json is kept)
uip codedapp convert ./expense-app.uiapp --force --refresh

# A Unified Build Solution with one app: extracted into ./invoices, with the coded app registered in it
uip codedapp convert ./Invoices.uis --out ./invoices

# Name the sign-in client at conversion time
uip codedapp convert ./Invoices.uis --out ./invoices \
    --client-id <external-application-client-id>

# A Solution with more than one app: every app, or a selection
uip codedapp convert ./HR.uis --app all --out ./hr
uip codedapp convert ./HR.uis --app Onboarding Leave --out ./hr

# A standalone coded app outside any Solution
uip codedapp convert ./Invoices.uis --out ./invoices-app --skip-solution-registration
# Convert an export; the coded app lands in ./expense-app
uip codedapp convert ./expense-app.uiapp

# Choose the directory
uip codedapp convert ./expense-app.uiapp --out ./apps/expense

# Re-convert into the same project after a converter update (uipath.json is kept)
uip codedapp convert ./expense-app.uiapp --force --refresh

# A Unified Build Solution with one app: extracted into ./invoices, with the coded app registered in it
uip codedapp convert ./Invoices.uis --out ./invoices

# Name the sign-in client at conversion time
uip codedapp convert ./Invoices.uis --out ./invoices \
    --client-id <external-application-client-id>

# A Solution with more than one app: every app, or a selection
uip codedapp convert ./HR.uis --app all --out ./hr
uip codedapp convert ./HR.uis --app Onboarding Leave --out ./hr

# A standalone coded app outside any Solution
uip codedapp convert ./Invoices.uis --out ./invoices-app --skip-solution-registration

Forma de datos (--json de salida)​

Una conversión sin espacios:

{
  "Code": "ConvertCompleted",
  "Data": {
    "Path": "./expense-app",
    "Kind": "uiapp",
    "Pages": 3,
    "Files": 58,
    "Report": {
      "Issues": 0,
      "Converter": 0,
      "SourceApp": 0,
      "ByDesign": 0
    }
  }
}
{
  "Code": "ConvertCompleted",
  "Data": {
    "Path": "./expense-app",
    "Kind": "uiapp",
    "Pages": 3,
    "Files": 58,
    "Report": {
      "Issues": 0,
      "Converter": 0,
      "SourceApp": 0,
      "ByDesign": 0
    }
  }
}

Una conversión con huecos también lleva el comando de instalación de habilidad:

{
  "Code": "ConvertCompletedWithGaps",
  "Data": {
    "Path": "./apps/expense",
    "Report": {
      "Issues": 2,
      "Converter": 2,
      "SourceApp": 0,
      "ByDesign": 0
    },
    "Skill": {
      "Install": "uip skills install --repo ./.uipath/agent-skills --path ."
    }
  }
}
{
  "Code": "ConvertCompletedWithGaps",
  "Data": {
    "Path": "./apps/expense",
    "Report": {
      "Issues": 2,
      "Converter": 2,
      "SourceApp": 0,
      "ByDesign": 0
    },
    "Skill": {
      "Install": "uip skills install --repo ./.uipath/agent-skills --path ."
    }
  }
}

Los ejemplos están recortados. El Data completo lleva estos campos:

CampoDescripción
PathEl directorio en el que se escribió la aplicación codificada.
KindEl tipo de entrada: uiapp o uis.
Outcomeconverted, converted-with-gaps o cannot-run.
PagesEl número de páginas convertidas.
FilesEl número de archivos escritos.
KeptLos archivos existentes que la ejecución dejó en su lugar, como uipath.json.
ExpressionsRecuentos de expresiones: referenciadas, emitidas, exactas e indulgentes.
UnconvertedRecuentos de expresiones y controladores de eventos que no se convirtieron.
BlockingEl número de diagnósticos que impidieron la conversión del comportamiento.
ReportLa ruta de conversion-report.json y su incidencia cuentan.
SkillLa habilidad fix-converted-app : Path, Source y Install.
NextStepsLos comandos que se ejecutarán a continuación.

A .uis conversion adds these fields:

CampoDescripción
AppThe name of the converted app.
WorkflowsCounts of the app's workflows: Read, Converted, Partial, Blocked, and Gaps, the total of unconverted activities.
SolutionThe Solution folder the app was written into.
ProjectThe project folder. Path is then the project's source/ folder.
SolutionRegistrationThe registration result, in the shape uip codedapp init reports it.
ProjectArtifactsThe resource entries written for the project.
SolutionExtractedfalse when the Solution was on disk already and was not extracted again.
ExternalClientIdThe client ID written onto the app's resource.
RoutingNameThe routing name written onto the app's resource.

When --app selects more than one app, Data describes the Solution as a whole: Path is the output directory, Kind is uis, and Outcome is the worst outcome among the apps. Data.Apps lists the full result of each app.

Resultados y códigos de salida​

Result y Code dicen lo que significan los números, por lo que ellos, y no los recuentos, son los valores en los que se ramifica:

ResultCodeSalirSignificado
SuccessConvertCompleted0Todo convertido. No hay nada en el informe que se culpe al convertidor.
SuccessConvertCompletedWithGaps0El proyecto se compila y ejecuta, con huecos: Report.Converter es 1 o más, o las expresiones o los controladores de eventos no se han convertido. Consulta La habilidad de corregir la aplicación convertida.
FailureConvertOutputCannotRun1The project is written but cannot run as it is: a blocking diagnostic stopped behavior from converting, or generated TypeScript does not parse. Data still carries the result. With more than one app, the message names the apps that cannot run.
FailureConvertNotRegistered1The project is written into a Solution but is not registered in it, so uip solution pack leaves it out. SolutionRegistration.Status is Failed or Skipped. Data still carries the result, and Instructions says how to register the project.
FailureCONVERT_*1No se ha convertido nada. Consulta Errores de conversión.

Errores de conversión​

CodeErrorCodeCausa
CONVERT_FILE_REQUIREDinvalid_argumentNo file was passed, or --app came before the file and took it as an app name.
CONVERT_FILE_NOT_FOUNDnot_foundEl archivo no existe. Apps Studio exporta el archivo.
CONVERT_UNSUPPORTED_TYPEinvalid_argumentThe file is neither a .uiapp nor a .uis export.
CONVERT_NOT_A_DIRECTORYinvalid_argumentLa ruta de salida existe y no es un directorio.
CONVERT_DIR_NOT_EMPTYinvalid_argumentEl directorio de salida no está vacío y no se pasó --force .
CONVERT_OUT_EMPTYinvalid_argument--out se le ha pasado un valor vacío.
CONVERT_SDK_UNAVAILABLEconfiguration_errorNo se pudo cargar el SDK del convertidor. Consulta Requisitos previos.
CONVERT_PREREQUISITE_MISSINGconfiguration_errorFalta.NET 10 Runtime. Consulta Requisitos previos.
CONVERT_INPUT_REJECTEDinvalid_argumentEl convertidor no pudo leer la exportación.
CONVERT_CLIENT_ID_EMPTYinvalid_argument--client-id was passed an empty value or the placeholder <external-application-clientId>.
CONVERT_APP_SELECTIONinvalid_argumentThe app selection cannot be settled: more than one app and no --app, a name the Solution does not hold, all beside other names, --app on a .uiapp file, or a project the Solution already holds. The message lists the apps of the Solution.
CONVERT_SOLUTION_UNUSABLEinvalid_argumentThe app cannot be placed in the Solution at --out: the folder holds more than one .uipx file, the .uipx file cannot be read, or the Solution is not the one the export came from.
CONVERT_PROJECT_FILE_INVALIDinvalid_argumentAn existing project file, such as webAppManifest.json, is not a JSON object.

These checks run before anything is written. A .uis conversion can also fail while one app converts. The apps before it are then converted, and that app's folder can be partly written. Data.Apps lists each finished app, and Data.Failed names the app that failed with App, Path, and PartlyWritten.

Ver también​

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte(opens in new window)

¿Quiere aprender? UiPath Academy(opens in new window)

¿Tiene alguna pregunta? Foro de UiPath(opens in new window)

Manténgase actualizado