Skip to main content

re get

Print resources to standard output, including exporting comments in bulk to the local filesystem.

Usage

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 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 comment

Get a single comment from a source

Usage

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

Usage

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 entities 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-user

re get datasets

List the available datasets

Usage

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]

Options

OptionDescription
<dataset>If specified, only list this dataset (name or id)

re get sources

List the available sources

Usage

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>

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>

Options

OptionDescription
-d, --dataset <dataset>(Required) The dataset name or id

re get users

List the available users

Usage

re get users [OPTIONS]

Options

OptionDescription
-u, --user <user>Use to retrieve a single user with the provided id