relation

relation list

List relation between usersets and datasets or filesets

jexia relation list
    [-f {csv,json,table,value,yaml}]
    [-c COLUMN]
    [--quote {all,minimal,none,nonnumeric}]
    [--noindent]
    [--max-width <integer>]
    [--fit-width]
    [--print-empty]
    [--sort-column SORT_COLUMN]
    --project PROJECT_ID
-f <FORMATTER>, --format <FORMATTER>

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated to show multiple columns

--quote <QUOTE_MODE>

when to include quotes, defaults to nonnumeric

--noindent

whether to disable indenting the JSON

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

--sort-column SORT_COLUMN

specify the column(s) to sort the data (columns specified first have a priority, non-existing columns are ignored), can be repeated

--project PROJECT_ID

Projects ID

relation create

Create relation between usersets and dataset or fileset

jexia relation create
    [-f {json,shell,table,value,yaml}]
    [-c COLUMN]
    [--noindent]
    [--prefix PREFIX]
    [--max-width <integer>]
    [--fit-width]
    [--print-empty]
    --project PROJECT_ID
    --relation RELATION
    (--dataset DATASET | --fileset FILESET)
-f <FORMATTER>, --format <FORMATTER>

the output format, defaults to table

-c COLUMN, --column COLUMN

specify the column(s) to include, can be repeated to show multiple columns

--noindent

whether to disable indenting the JSON

--prefix <PREFIX>

add a prefix to all variable names

--max-width <integer>

Maximum display width, <1 to disable. You can also use the CLIFF_MAX_TERM_WIDTH environment variable, but the parameter takes precedence.

--fit-width

Fit the table to the display width. Implied if –max-width greater than 0. Set the environment variable CLIFF_FIT_WIDTH=1 to always enable

--print-empty

Print empty table if there is no data to show.

--project PROJECT_ID

Projects ID

--relation RELATION

Relation’s type from userset to other resource (ONE-MANY, MANY-MANY, MANY-ONE, ONE-ONE)

--dataset DATASET

ID of dataset

--fileset FILESET

ID of fileset

relation delete

Delete dataset

jexia relation delete
    --project PROJECT_ID
    --resource RESOURCE
    RELATION_ID
--project PROJECT_ID

Projects ID

--resource RESOURCE

Type of resource in relation (dataset, fileset).

RELATION_ID

UUID of relation which should be deleted