Communications Mining forma ahora parte de UiPath IXP. Consulte la Introducción de la Guía del usuario para más información.
Este contenido se ha traducido mediante traducción automática.
La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.
Guía para desarrolladores de Communications Mining
Las operaciones para gestionar contextos con nombre están en el ámbito del comando re config . Estos incluyen subcomandos para crear, leer, actualizar y eliminar contextos, así como establecer un contexto predeterminado y utilidades.
Uso
re config [OPTIONS] re config [OPTIONS] <SUBCOMMAND>
Subcomandos
Comando
Descripción
re config add
Crear o modificar un contexto con nombre en el archivo de configuración
re config current
Mostrar el contexto actual en uso
re config delete
Eliminar el contexto especificado del archivo de configuración de reinferencia
re config get-token
Imprime el token para un contexto determinado o el actual si no se especifica
re config ls
Enumerar todos los contextos disponibles en el archivo de configuración
re config use
Establecer el contexto predeterminado que se utilizará cuando no se especifique ninguno para un comando
Para ver los subcomandos disponibles o ayuda con un subcomando determinado
Crear o modificar un contexto con nombre en el archivo de configuración
Uso
re config add [FLAGS] [OPTIONS]re config add [FLAGS] [OPTIONS]
Opciones
Nombre
Descripción
-n, --name <name>
El nombre del contexto que se creará o actualizará
-e, --endpoint <endpoint>
El punto final del clúster de Communications Mining que se utilizará para este contexto
-t, --token <token>
El token de la API de Communications Mining que se utilizará para este contexto
--proxy <proxy>
URL de un proxy HTTP que se utilizará para todas las solicitudes si se especifica
-k, --accept-invalid-certificates
Si se aceptan certificados TLS no válidos. Nunca deberías tener que usar esto, ya que ejecutas un clúster de Communications Mining localmente para el desarrollo
Ejemplos
# Add a new context called `acme`. The cli will interactively ask to provide an API token.
re config add --name acme --endpoint https://acme.reinfer.io
# Using `--name` with a context that already exists will modify it instead.# For example, the next command changes the endpoint of the `acme` context.
re config add --name acme --endpoint https://acme-dev.reinfer.io
# Create a context specifying all information as arguments.
re config add -n staging -e https://localhost:9443 -k -t MYTOKEN
# If options are not provided, the cli will interactively prompt user to enter them
re config add
# Standard output:
* Context name: my-context
I A new context `my-context` will be created
* Enter API token [none]: SECRETTOKEN
W Be careful, API tokens are stored in cleartext in /home/marius/.config/reinfer/contexts.json
* Endpoint [https://reinfer.io/]: https://acme.reinfer.io
I New context `my-context` was created# Add a new context called `acme`. The cli will interactively ask to provide an API token.
re config add --name acme --endpoint https://acme.reinfer.io
# Using `--name` with a context that already exists will modify it instead.# For example, the next command changes the endpoint of the `acme` context.
re config add --name acme --endpoint https://acme-dev.reinfer.io
# Create a context specifying all information as arguments.
re config add -n staging -e https://localhost:9443 -k -t MYTOKEN
# If options are not provided, the cli will interactively prompt user to enter them
re config add
# Standard output:
* Context name: my-context
I A new context `my-context` will be created
* Enter API token [none]: SECRETTOKEN
W Be careful, API tokens are stored in cleartext in /home/marius/.config/reinfer/contexts.json
* Endpoint [https://reinfer.io/]: https://acme.reinfer.io
I New context `my-context` was created
Imprime el contexto actual en uso en la salida estándar
Uso
re config currentre config current
Ejemplos
# Print the currently used context to stdout
re config current
# Save the current context to an environment variable
export REINFER_CONTEXT=`re config current`# Print the currently used context to stdout
re config current
# Save the current context to an environment variable
export REINFER_CONTEXT=`re config current`
re config get-token [name]re config get-token [name]
Ejemplos
# Print the API token for the current context to stdout
re config get-token
# Save the API token for the current context in an environment variable
export REINFER_TOKEN=`re config get-token`
# Same, but get the API token for a specific context (acme)
export REINFER_TOKEN=`re config get-token`# Print the API token for the current context to stdout
re config get-token
# Save the API token for the current context in an environment variable
export REINFER_TOKEN=`re config get-token`
# Same, but get the API token for a specific context (acme)
export REINFER_TOKEN=`re config get-token`