Installing the DataONE CLI

The DataONE Command Line Interface (CLI) enables operations to be performed against the DataONE infrastructure from the command line. Supported operations include creating and retrieving DataONE objects, searching, updating access control rules and retrieving statistics.


The CLI is distributed via PyPI, the Python Package Index.

Set up OS packages required by some of the CLI’s PyPI distributed dependencies. This includes a build environment for DataONE Python extensions.

$ sudo apt install --yes build-essential python-dev libssl-dev \
libxml2-dev libxslt-dev openssl curl

Install pip:

$ sudo apt install --yes python-pip; sudo pip install pip --upgrade

Install the CLI from PyPI:

$ sudo pip install dataone.cli