communications-mining
latest
false
UiPath logo, featuring letters U and I in white

Communications Mining Developer Guide

Last updated Dec 20, 2024

Command reference

re config

Operations for managing named contexts are scoped under re config command. These include subcommands to create, read, update, delete contexts, as well as setting a default named context and utilities.
Usage
re config [OPTIONS] <SUBCOMMAND>re config [OPTIONS] <SUBCOMMAND>
Subcommands
COMMANDDESCRIPTION
re config addCreate or modify a named context in the configuration file
re config currentDisplay the current context in use
re config deleteDelete the specified context from the reinfer configuration file
re config get-tokenPrint the token for a given context or the current one if unspecified
re config lsList all the available contexts in the configuration file
re config useSet the default context to use when none is specified for a command

To see the available subcommands or help with a given subcommand

re config helpre config help

re config add

Create or modify a named context in the configuration file

Usage
re config add [FLAGS] [OPTIONS]re config add [FLAGS] [OPTIONS]
Options
NAMEDESCRIPTION
-n, --name <name>The name of the context that will be created or updated
-e, --endpoint <endpoint>The Communications Mining cluster endpoint that will be used for this context
-t, --token <token>The Communications Mining API token that will be used for this context
--proxy <proxy>URL for an HTTP proxy that will be used for all requests if specified
-k, --accept-invalid-certificatesWhether to accept invalid TLS certificates. You should never have to use this, you running a Communications Mining cluster locally for development
Examples
# 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

re config current

Print the current context in use to standard output

Usage
re config currentre config current
Examples
# 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 delete

Delete the specified context from the reinfer configuration file

Usage
re config delete [names]...re config delete [names]...
Examples
# Delete context acme
re config delete acme

# Delete multiple contexts
re config delete acme other-context# Delete context acme
re config delete acme

# Delete multiple contexts
re config delete acme other-context

re config get-token

Print the API token for a given context or the current one if unspecified to standard output

Usage
re config get-token [name]re config get-token [name]
Examples
# 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`

re config ls

List all the available contexts in the configuration file

Usage
re config ls [OPTIONS]re config ls [OPTIONS]
Options
OPTIONDESCRIPTION
--tokensShow API tokens (by default tokens are hidden)

re config use

Set what context to use by default when running a command

Usage
re config use <name>re config use <name>
Options
OPTIONDESCRIPTION
<name>The name of the context to make the new default

re create

Subcommands for creating new resources

Usage

re create [OPTIONS] <SUBCOMMAND>re create [OPTIONS] <SUBCOMMAND>
Subcommands
SUBCOMMANDDESCRIPTION
re create annotationsCreate or update annotations
re create bucketCreate a new bucket
re create commentsCreate or update comments
re create datasetCreate a new dataset
re create emailsCreate or update emails
re create projectCreate a new project
re create sourceCreate a new source
re create stream-exceptionCreate a new stream exception
re create userCreate a new user (note: no welcome email will be sent)
Options
OPTIONDESCRIPTION
-h, --helpPrints help information
-V, --versionPrints version information

To see the available subcommands or help with a given subcommand

re create helpre create help

re get

Print resources to standard output, including exporting comments in bulk to the local filesystem.
re get [OPTIONS] <SUBCOMMAND>re get [OPTIONS] <SUBCOMMAND>
Subcommands
SUBCOMMANDDESCRIPTION
re get bucketsList the available buckets
re get commentGet a single comment from a source
re get commentsDownload all comments from a source
re get current-userGet the user associated with the API token in use
re get datasetsList the available datasets
re get projectsList the available projects
re get sourcesList the available sources
re get stream-commentsFetch comments from a stream
re get streamsList the available streams for a dataset
re get usersList the available users

To see the available subcommands or help with a given subcommand

re get helpre get help
Options
OPTIONDESCRIPTION
-h, --helpPrints help information
-V, --versionPrints version information

re get buckets

List the available buckets.

Usage

re get buckets [bucket-name]re get buckets [bucket-name]

re get comment

Get a single comment from a source.

Usage

re get comment [OPTIONS] --source <source> <comment-id>re get comment [OPTIONS] --source <source> <comment-id>
OPTIONDESCRIPTION
--source <source>(Required) Source name or id
-f, --file <path>Path where to write comments as JSON. If not specified, stdout will be used
<comment-id>Comment id

re get comments

Download many comments from a source

re get comments [FLAGS] [OPTIONS] <source>re get comments [FLAGS] [OPTIONS] <source>
Options
OPTIONDESCRIPTION
<source>(Required) Source name or id
-d, --dataset <dataset>Dataset name or id
-f, --file <path>Path where to write comments as JSON. If not specified, stdout will be used.
--no-progressDon't display a progress bar (only applicable when --file is used)
--from-timestamp <from-timestamp>Starting timestamp for comments to retrieve (inclusive)
--predictions <include-predictions>Save predicted labels and general fields for each comment
--reviewed-only <reviewed-only>Only download reviewed comments
--to-timestamp <to-timestamp>Ending timestamp for comments to retrieve (inclusive)

re get current-user

Get the user associated with the API token in use

Usage

re get current-userre get current-user

re get datasets

List the available datasets

Usage

re get datasets [dataset]re get datasets [dataset]
Options
OPTIONDESCRIPTION
<dataset>If specified, only list this dataset (name or id)

re get projects

List the available projects

Usage

re get projects [dataset]re get projects [dataset]
Options
OPTIONDESCRIPTION
<dataset>If specified, only list this dataset (name or id)

re get sources

List the available sources

Usage

re get sources [source]re get sources [source]
Options
OPTIONDESCRIPTION
<source>If specified, only list this dataset (name or id)

re get stream-comments

Fetch comments from a stream

Usage

re get stream-comments [FLAGS] [OPTIONS] --stream <stream>re get stream-comments [FLAGS] [OPTIONS] --stream <stream>
Options
OPTIONDESCRIPTION
--stream <stream>(Required) The full stream name <owner>/<dataset>/<stream>
--individual-advanceIf set, the command will acknowledge each comment in turn, rather than full batches
--listen <listen>If set, the command will run forever polling every N seconds and advancing the stream
--size <size>The max number of comments to return per batch [default: 16]

re get streams

List the available streams for a dataset

Usage

re get streams --dataset <dataset>re get streams --dataset <dataset>
Options
OPTIONDESCRIPTION
-d, --dataset <dataset>(Required) The dataset name or id

re get users

List the available users

Usage

re get users [OPTIONS]re get users [OPTIONS]
Options
OPTIONDESCRIPTION
-u, --user <user>Use to retrieve a single user with the provided id

re delete

Subcommands for deleting resources

Usage
re delete <SUBCOMMAND>re delete <SUBCOMMAND>
Subcommands
SUBCOMMANDDESCRIPTION
re delete bucketDelete a bucket
re delete bulkDelete all comments in a given time range
re delete commentsDelete comments by id in a source
re delete datasetDelete a dataset
re delete helpPrints this message or the help of the given subcommand(s)
re delete projectDelete a project
re delete sourceDelete a source
re delete userDelete a user
Flags
FLAGSDESCRIPTION
-h, --helpPrints help information
-V, --versionPrints version information

To see the available subcommands or help with a given subcommand

re delete help

Was this page helpful?

Get The Help You Need
Learning RPA - Automation Courses
UiPath Community Forum
Uipath Logo White
Trust and Security
© 2005-2024 UiPath. All rights reserved.