Annotations Export

Export the variable annotations of one or all tables of a project. This can be used to backup annotations, that can be restored using Annotations Import.



Argument Description
RESOURCE Resource identification in the format <datasource>[.<table>]. Each project has a datasource which is identified by the project’s name.


Option Description
--output OUTPUT, -out OUTPUT CSV/TSV file path where to write the exported annotations. When not specified, standard output is used.
--locale LOCALE, -l LOCALE Exported locale (default is none)
--separator SEPARATOR, -s SEPARATOR The character separator to be used in the output. When not specified tab character is used.
--taxonomies TAXONOMIES [TAXONOMIES ...], -tx TAXONOMIES [TAXONOMIES ...] The list of taxonomy names of interest (default is any that are found in the variable attributes).


Authentication can be done by username/password credentials OR by personal access token OR by certificate/private key pair (two-way SSL authentication).

Option Description
--opal OPAL, -o OPAL Opal server base url
--user USER, -u USER Credentials auth: user name (requires a password)
--password PASSWORD, -p PASSWORD Credentials auth: user password (requires a user name)
--otp, -ot Whether a one-time password is to be provided (required when connecting with username/password AND two-factor authentication is enabled)
--token TOKEN, -tk TOKEN Token auth: user’s personal access token
--ssl-cert SSL_CERT, -sc SSL_CERT Two-way SSL auth: certificate/public key file (requires a private key)
--ssl-key SSL_KEY, -sk SSL_KEY Two-way SSL auth: private key file (requires a certificate)


Option Description
-h, --help Show the command help’s message.
--verbose, -v Verbose output.


Export annotations of the Mlstr_area taxonomy from a specific table:

opal export-annot --opal --user administrator --password password CLSA --taxonomies Mlstr_area --out /tmp/clsa-area.tsv