- Información general
- Comience ya
- Conceptos
- Uso de UiPath CLI
- Guías prácticas
- Recetas de CI/CD
- Referencia de los comandos
- Información general
- Códigos de salida
- Opciones globales
- agente de código UIP
- codificador UIP
- Contextualización de UIP
- UIP Docsai
- Función uip
- barreras de seguridad de UIP
- Configuración de UIP llm
- puerta de enlace llm de uip
- UIP model-hub
- añadir-entidad-de-datos-de-prueba
- añadir-cola-de-datos-de-prueba
- añadir-variación-de-datos-de-prueba
- Analizar
- Crear
- Crear proyecto
- Diferencia
- Buscar actividades
- obtener-reglas-del-analizador
- obtener-predeterminado-actividad-xaml
- obtener-errores
- obtener-casos-de-prueba-manual
- obtener-pasos-de-prueba-manual
- obtener-repositorio-de-objetos-de-biblioteca
- obtener-objeto-repositorio
- obtener versiones
- get-workflow-example
- indicar-aplicación
- indicar-elemento
- inspeccionar-paquete
- install-data-fabric-entities
- instalar-o-actualizar-paquetes
- enumerar-data-fabric-entities
- lista-instancias
- ejemplos-de-flujo-de-trabajo-de-lista
- Paquete
- Publicar
- Remoto
- restore
- ejecutar, depurar & Ejecución
- archivo de ejecución
- plantillas-de-búsqueda
- iniciar-studio
- detener la ejecución
- TM
- UIA
- Tareas de UIP
- Archivo adjunto
- Campo personalizado
- Ejecuciones
- EtiquetaDeObjeto
- Paquete
- escenario de rendimiento
- grupos de carga de escenarios de rendimiento
- datos de ejecución de perf-scenario
- informe de escenario de rendimiento
- Proyecto
- Informar
- Requisitos
- Resultado
- Casos de prueba
- Conjuntos de prueba
- registro de pasos de prueba
- Usuario
- Esperar
- Seguimientos de UIP
- Comentarios de seguimientos de UIP
- Migración
- Referencia y soporte
inicial de flujo maestro de uip
Sintaxis y opciones para `uip maestro flujo init`, que andamia un nuevo proyecto de flujo con un manifiesto mínimo y un archivo `.flow` de inicio.
uip maestro flow init crea andamios en un nuevo directorio de proyectos de Flow con un manifiesto mínimo y un archivo .flow de inicio que contiene un único nodo de desencadenador manual.
Sinopsis
uip maestro flow init <name> [--force] [--skip-solution-registration] [--automate] [--sdk-source [file]]
uip maestro flow init <name> [--force] [--skip-solution-registration] [--automate] [--sdk-source [file]]
Prevalece las opciones globales. Los códigos de salida siguen el contrato estándar.
Argumentos
<name>(required) — project folder name. Allowed characters: letters, numbers, underscores (_), and hyphens (-).
Opciones
--force— inicializar incluso si el directorio de destino existe y no está vacío. Los archivos existentes no se borran: los archivos se escriben al lado; esto es útil para reiniciar dentro de una carpeta creada previamente.--skip-solution-registration: no registrar automáticamente este proyecto en la solución circundante (consulta Comportamiento a continuación).--automate— create a Maestro Automate project. The project and the commands that operate on it are the same as for a standard Flow project; only the runtime profile written intooperate.jsondiffers.--sdk-source [file]— also write the builder-SDK source for the new project: decompile the starter.flowfile into<project>/.flow-sdk/<name>.flow.ts, or into[file](relative to the current directory), creating its folder. The result is the same as runninguip maestro flow decompile <name>.flow -o <file> --no-pipelineafterinit. Requires@uipath/maestro-builder-sdk6.11.1 or later, installed in the project or globally. If[file]already exists, the command fails unless you pass--force.
Comportamiento
The command writes these files into <name>/:
project.uiproj—{ "Name": "<name>", "ProjectType": "Flow" }operate.json— the project's runtime settings, including the runtime profile that--automateselects<name>.flow— JSON de flujo de inicialización que contiene:- Un nodo de inicio
core.trigger.manualconectado a unentryPointIdgenerado - La definición de nodo coincidente en
definitions[] - Vacío
edges,bindings,variables - Posición del lienzo
layout.nodes.start
- Un nodo de inicio
Registro automático de la solución. A menos que se pase --skip-solution-registration:
- Si el directorio actual ya está dentro de una solución,
<name>/se crea allí y se registra como proyecto en el manifiesto.uipxde esa solución. - Si el directorio actual no está dentro de una solución, se aplica automáticamente una solución principal llamada
<name>Solution: el proyecto de flujo termina anidado en<name>Solution/<name>/, no en<name>/en el directorio actual como podría sugerir una lectura literal de la sinopsis .
Si <name> ya existe y no está vacío y --force no está establecido, el comando falla con un error que solicita al usuario que pase --force.
With --sdk-source, the command checks for @uipath/maestro-builder-sdk before it creates anything. If the project is created but writing the SDK source fails, the error names the uip maestro flow decompile command that writes the source for the existing project.
Ejemplos
# Create a new project in ./invoice-flow
uip maestro flow init invoice-flow
# Reinitialize into an existing non-empty folder (e.g. a Git repo)
uip maestro flow init invoice-flow --force
# Create a Maestro Automate project
uip maestro flow init my-automate --automate
# Create a project inside an existing solution and write its builder-SDK source
cd MySolution && uip maestro flow init my-flow --sdk-source
# Create a new project in ./invoice-flow
uip maestro flow init invoice-flow
# Reinitialize into an existing non-empty folder (e.g. a Git repo)
uip maestro flow init invoice-flow --force
# Create a Maestro Automate project
uip maestro flow init my-automate --automate
# Create a project inside an existing solution and write its builder-SDK source
cd MySolution && uip maestro flow init my-flow --sdk-source
Forma de datos (--json de salida)
{
"Code": "FlowInit",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-flow-projectSolution/my-flow-project",
"SolutionRegistration": {
"Status": "Registered",
"Message": "Project registered in parent solution.",
"Solution": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx",
"Project": "my-flow-project/project.uiproj",
"ProjectId": "00000000-0000-0000-0000-000000000000",
"Instructions": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
},
"AutoCreatedSolution": {
"Name": "my-flow-projectSolution",
"Path": "/workspace/my-flow-projectSolution",
"SolutionFile": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx"
},
"ProjectArtifacts": { "Created": true },
"NextSteps": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
}
}
{
"Code": "FlowInit",
"Data": {
"Status": "Created successfully",
"Path": "/workspace/my-flow-projectSolution/my-flow-project",
"SolutionRegistration": {
"Status": "Registered",
"Message": "Project registered in parent solution.",
"Solution": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx",
"Project": "my-flow-project/project.uiproj",
"ProjectId": "00000000-0000-0000-0000-000000000000",
"Instructions": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
},
"AutoCreatedSolution": {
"Name": "my-flow-projectSolution",
"Path": "/workspace/my-flow-projectSolution",
"SolutionFile": "/workspace/my-flow-projectSolution/my-flow-projectSolution.uipx"
},
"ProjectArtifacts": { "Created": true },
"NextSteps": "The project is listed in the parent solution manifest.
Packing or uploading the solution will sync solution resources automatically."
}
}
AutoCreatedSolution is present only when a parent solution was scaffolded automatically (i.e. the command wasn't run inside an existing solution). SolutionRegistration is always present; with --skip-solution-registration, its Status is OptedOut. SdkSource (the path of the written builder-SDK source) is present only with --sdk-source.
En caso de fallo, Code está ausente y la respuesta lleva Result: "Failure", Message y Instructions.
Ver también
uip maestro flow pack— empaqueta el proyecto andamiadouip maestro flow node— añade nodos al archivo de inicio.flowuip maestro flow registry: descubrir tipos de nodos para añadir- Descripción general del flujo