- 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
- Creación de UIP Maestro
- Registro maestro de UIP
- UIP model-hub
- uip ont
- Actividades Buscar
- actividades get-default-xaml
- Analizar
- lista de reglas del analizador
- Crear
- Limpieza
- instalación de data-fabric-entities
- lista de entidades de data-fabric
- diferencia de archivos
- obtener-repositorio-de-objetos-de-biblioteca
- obtener-objeto-repositorio
- Init
- lista de instancias
- Paquete
- inspeccionar paquetes
- instalación de paquetes
- versiones de paquetes
- Publicar
- Remoto
- restore
- ejecutar, depurar & Ejecución
- Configuración
- Inicio de Studio
- Búsqueda de plantillas
- entidad de adición de datos de prueba
- añadir-cola de datos de prueba
- añadir-variación de los datos de prueba
- TM
- UIA
- Validar
- ejemplos-de-flujo-de-flujo-obtener
- lista de ejemplos de flujo de trabajo
- uip resources
- Tareas de UIP
- Archivo adjunto
- Campo personalizado
- Defects
- Ejecuciones
- exportar-trabajos
- Migración
- 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
- permisos del proyecto
- Solicitudes
- Informar
- Requisitos
- Resultado
- Iniciar
- Programaciones
- Ámbitos
- Registro de casos de prueba
- 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
uip resources
Syntax and options for `uip resources`, which declares the solution resources a coded project uses in `uipath_resources.ts` or `uipath_resources.py`.
uip resources declares the solution resources that a coded project uses. The declarations live in one file at the project root: uipath_resources.ts for a project on the TypeScript SDK, or uipath_resources.py for a project on the Python SDK. Each resource is a typed handle that the SDK accepts in place of a plain name.
import { resource } from '@uipath/uipath-typescript/resources';
export class ProjectResources {
static readonly invoiceThreshold = resource.asset({ name: 'InvoiceThreshold', folderPath: 'Finance/Shared', type: 'integer' });
static readonly invoiceReview = resource.queue({ name: 'InvoiceReview' });
}
import { resource } from '@uipath/uipath-typescript/resources';
export class ProjectResources {
static readonly invoiceThreshold = resource.asset({ name: 'InvoiceThreshold', folderPath: 'Finance/Shared', type: 'integer' });
static readonly invoiceReview = resource.queue({ name: 'InvoiceReview' });
}
from uipath.resources import resource
class ProjectResources:
invoice_threshold = resource.asset(name="InvoiceThreshold", folder_path="Finance/Shared", type="integer")
invoice_review = resource.queue(name="InvoiceReview")
from uipath.resources import resource
class ProjectResources:
invoice_threshold = resource.asset(name="InvoiceThreshold", folder_path="Finance/Shared", type="integer")
invoice_review = resource.queue(name="InvoiceReview")
There is no remove subcommand. To remove a declaration, delete its line from the file.
uip resources lo proporciona el complemento @uipath/resources-tool . Si aún no está instalado, uip tools install resources lo añade. Consulta Herramientas (complementos).
Sinopsis
uip resources add [name] [--kind <kind>] [--folder-path <path>] [--type <type>] [--skip-verify] [--project-path <path>]
uip resources list [--kind <kind>] [--limit <number>] [--offset <number>] [--project-path <path>]
uip resources sync [--all] [--solution-folder <path>] [--project-path <path>]
uip resources add [name] [--kind <kind>] [--folder-path <path>] [--type <type>] [--skip-verify] [--project-path <path>]
uip resources list [--kind <kind>] [--limit <number>] [--offset <number>] [--project-path <path>]
uip resources sync [--all] [--solution-folder <path>] [--project-path <path>]
Cada subcomando respeta las opciones globales y devuelve los códigos de salida estándar.
Comportamiento común
- Project folder. Run the commands from the folder that holds
package.jsonorpyproject.toml, or pass--project-path. For a coded app inside a solution, that is the app'ssource/folder. - Language. The language is not an option. An existing declarations file decides. Otherwise the SDK that the project depends on decides:
@uipath/uipath-typescriptinpackage.jsonselects TypeScript, anduipathor one of its framework packages (for exampleuipath-langchain) inpyproject.tomlselects Python. - Kinds.
--kindis one ofasset,bucket,queue,process,entity,connection. - Bindings. The commands do not write
bindings_v2.json. For a coded app,uip codedapp pack,uip codedapp push,uip solution pack,uip solution upload, anduip solution resources refreshderive the bindings fromuipath_resources.ts. Abindings_v2.jsonalready in the project is merged in for kinds that a declaration cannot express. Other project types keep their own bindings file: their packagers do not read the declarations file. - Folder. A resource declared without a folder is one that the solution creates. A resource declared with a folder is an existing resource in that tenant folder.
Añadir
Declare a resource in the project's declarations file. Without --skip-verify, the command looks the resource up in the tenant and takes its folder and type from there, which requires uip login. Without a name, the command opens a picker, which needs an interactive terminal.
When the project belongs to a local solution, add also adds the resource to the solution, as uip solution resources refresh does.
Argumentos
[name](optional) — Resource name, as Orchestrator or Integration Service shows it. Required with--skip-verify, and when no interactive terminal is available.
Opciones
| Largo | Valor | Predeterminado | Descripción |
|---|---|---|---|
--kind <kind> | asset | bucket | queue | process | entity | connection | — | Resource kind. Required when a name is passed. |
--folder-path <path> | Ruta | — | Folder that the resource sits in. Omit it, or pass ., for a resource that the solution creates. For a connection, it narrows the lookup. |
--type <type> | text | from the tenant | Asset value type (text, integer, bool, credential, secret, json) or bucket provider (orchestrator, amazon, azure). For a process, the process kind, which is written as given. For a connection, the connector key (for example uipath-slack), which narrows the lookup. Queues and entities take no type. |
--skip-verify | Marca | Desactivado | Write the declaration as given, without looking the resource up. Use it offline, in CI, or for a resource that the solution creates. Needs the resource name. Does not apply to a connection. |
--project-path <path> | Ruta | directorio actual | Project folder, the one with package.json or pyproject.toml. |
A connection is declared by its ID and its connector key, and the name is only a label. The ID comes from the lookup, so a connection cannot be declared with --skip-verify.
Adding a resource that is already declared changes nothing in the file and returns Added: false.
Ejemplos
# An asset in a tenant folder; its type comes from the tenant
uip resources add InvoiceThreshold --kind asset --folder-path Finance/Shared
# A queue that the solution creates, without a tenant lookup
uip resources add InvoiceReview --kind queue --skip-verify
# An Integration Service connection, narrowed by connector
uip resources add "Finance Slack" --kind connection --type uipath-slack
# An asset in a tenant folder; its type comes from the tenant
uip resources add InvoiceThreshold --kind asset --folder-path Finance/Shared
# A queue that the solution creates, without a tenant lookup
uip resources add InvoiceReview --kind queue --skip-verify
# An Integration Service connection, narrowed by connector
uip resources add "Finance Slack" --kind connection --type uipath-slack
Forma de datos (--json de salida)
{
"Code": "ResourceDeclared",
"Data": {
"Added": true,
"Kind": "asset",
"Name": "InvoiceThreshold",
"FolderPath": "Finance/Shared",
"Type": "integer",
"Field": "invoiceThreshold",
"File": "uipath_resources.ts",
"Solution": "Added"
}
}
{
"Code": "ResourceDeclared",
"Data": {
"Added": true,
"Kind": "asset",
"Name": "InvoiceThreshold",
"FolderPath": "Finance/Shared",
"Type": "integer",
"Field": "invoiceThreshold",
"File": "uipath_resources.ts",
"Solution": "Added"
}
}
| Campo | Descripción |
|---|---|
Added | false when the same resource was already declared. |
Kind, Name | The declared resource. |
Id | The connection ID. Connections only. |
FolderPath | The tenant folder. Absent for a resource that the solution creates. |
Type | The asset value type, bucket provider, process kind, or connector key. Absent when the resource has none. |
Field | The ProjectResources field that the declaration was written to. Absent when nothing was written. |
File | The declarations file: uipath_resources.ts or uipath_resources.py. |
Solution | What happened in the project's solution: Added, Unchanged, Pending (the resource is not in the solution yet, and the next uip solution resources refresh or uip solution pack adds it), or NotInSolution (the project is not in a solution). |
Modos de fallo
- A name without
--kind, a--typethat the kind does not take, an empty name, or--skip-verifywithout a name or with a connection. Fails withValidationError,ErrorCode: invalid_argument, exit code3. - No
package.jsonorpyproject.tomlin the project folder, or a project that depends on neither SDK. Fails withErrorCode: invalid_argument.Instructionsnames--project-pathor the SDK to install. - Not logged in. A lookup without a session fails with
AuthenticationError,ErrorCode: authentication_required, exit code2. Runuip login, or pass--skip-verify. - No resource with that name in the tenant, or not in the folder that
--folder-pathnames. Fails withErrorCode: not_found. - The name matches resources in more than one folder, or more than one connection. Fails with
ErrorCode: invalid_argument.Instructionslists the folders, or the connectors, to pass. --typediffers from the declaration already in the file. Fails withErrorCode: invalid_argument. Edit or remove the line in the file to change the type.- No name and no interactive terminal. Fails with
ErrorCode: invalid_argument.
Lista
List the resources declared in the project's declarations file. A declaration that the CLI cannot read, such as a value that is not a literal, is reported as a warning on stderr and left out. The command works offline.
Opciones
| Largo | Valor | Predeterminado | Descripción |
|---|---|---|---|
--kind <kind> | asset | bucket | queue | process | entity | connection | — | Only declarations of this kind. |
--limit <number> | Número | 50 | Number of declarations to return. |
--offset <number> | Número | 0 | Number of declarations to skip. |
--project-path <path> | Ruta | directorio actual | Project folder, the one with package.json or pyproject.toml. |
Ejemplos
uip resources list
uip resources list --kind queue
uip resources list
uip resources list --kind queue
Forma de datos (--json de salida)
{
"Code": "ResourceDeclarationList",
"Data": [
{
"Kind": "asset",
"Name": "InvoiceThreshold",
"FolderPath": "Finance/Shared",
"Type": "integer"
},
{ "Kind": "queue", "Name": "InvoiceReview" }
],
"Pagination": { "Returned": 2, "Limit": 50, "Offset": 0, "Total": 2 }
}
{
"Code": "ResourceDeclarationList",
"Data": [
{
"Kind": "asset",
"Name": "InvoiceThreshold",
"FolderPath": "Finance/Shared",
"Type": "integer"
},
{ "Kind": "queue", "Name": "InvoiceReview" }
],
"Pagination": { "Returned": 2, "Limit": 50, "Offset": 0, "Total": 2 }
}
Data is an empty array when nothing is declared. A connection row also carries Id, and its Type is the connector key.
Sincronizar
Declare resources of the project's local solution in the project's declarations file. The command lists the solution resources that the project does not declare yet and opens a picker to choose from them. --all declares every listed resource without a picker.
A resource that the solution creates is declared without a folder. A resource that the solution imported from the tenant is declared with its tenant name and folder, which the command reads from the tenant.
Opciones
| Largo | Valor | Predeterminado | Descripción |
|---|---|---|---|
--all | Marca | Desactivado | Declare every listed resource without a picker. Required when there is no interactive terminal. |
--solution-folder <path> | Ruta | the nearest .uipx above the project | Solution root folder, the one with the .uipx. |
--project-path <path> | Ruta | directorio actual | Project folder, the one with package.json or pyproject.toml. |
Ejemplos
uip resources sync --all
uip resources sync --all --project-path ./Invoices/App/source
uip resources sync --all
uip resources sync --all --project-path ./Invoices/App/source
Forma de datos (--json de salida)
{
"Code": "ResourcesSynced",
"Data": {
"Added": [
{ "Kind": "queue", "Name": "InvoiceReview", "Field": "invoiceReview" }
],
"AlreadyDeclared": 2,
"Unresolved": [],
"File": "uipath_resources.ts"
}
}
{
"Code": "ResourcesSynced",
"Data": {
"Added": [
{ "Kind": "queue", "Name": "InvoiceReview", "Field": "invoiceReview" }
],
"AlreadyDeclared": 2,
"Unresolved": [],
"File": "uipath_resources.ts"
}
}
| Campo | Descripción |
|---|---|
Added | The declarations written, with the same fields as a list row plus Field. |
AlreadyDeclared | Number of solution resources that the project already declared. |
Unresolved | Imported resources whose tenant folder could not be read, for example without a session. Each entry carries Kind, Name, and Reason. These resources are not declared, and a warning on stderr names each one. |
File | The declarations file. |
Without a session, the command cannot check whether a resource was imported from the tenant. Such a resource is declared as one that the solution creates, and a warning on stderr names it.
Modos de fallo
- No
.uipxabove the project. Fails withErrorCode: not_found. Run the command inside a solution, or pass--solution-folder. - No
--alland no interactive terminal. Fails withErrorCode: invalid_argument.
Comandos relacionados
uip solution resources— list, add, remove, edit, and refresh the resources of a solution.uip codedapp— build, pack, and push the coded app that reads the declarations.
Ver también
- Opciones globales y códigos de salida : contratos compartidos por cada verbo.
- Tools (plugins) — how tools are distributed and versioned.