The NASA Cumulus CLI is a command-line interface to the NASA Cumulus API. For a number of Cumulus management tasks, it can be used as an alternative to the NASA Cumulus Dashboard web application, particularly when it is desirable to script various Cumulus management tasks.
Before installing the Cumulus CLI, you must have the following installed:
git
(likely already installed)nvm
(see Installing and Updating nvm)
Once the items above are installed, and until the Cumulus CLI is released as an NPM package, you may install it as follows, after opening a terminal window and changing to your desired parent directory:
- Use
git
to clone this repository into your directory of choice. - Change directory to the repository directory.
- Run
nvm install
to install the correct versions ofnpm
andnode
(as specified in.nvmrc
) for subsequent commands. - Run
npm install
to install library dependencies. - Run
npm run build
to build the Cumulus CLI. - Run
npm install --global
to installcumulus
(the Cumulus CLI) as a global command to allow its use from any directory. - Run
ln -s "$(which cumulus)" /usr/local/bin/cumulus
to make thecumulus
command available regardless of which version of Node is currently active.
After completing the steps above, in order to later obtain enhancements and bug fixes committed to this repository, do the following from a terminal window, within the same directory where you originally ran the commands above:
git pull origin
nvm install
npm install
npm run build
npm install --global
ln -s "$(which cumulus)" /usr/local/bin/cumulus
Once installed, run the following to list available commands:
cumulus --help
Usage other than obtaining help via the --help
flag requires the following
environment variables to be set:
AWS_REGION
(orAWS_DEFAULT_REGION
)AWS_PROFILE
(orAWS_ACCESS_KEY_ID
andAWS_SECRET_ACCESS_KEY
)CUMULUS_PREFIX
(or use the--prefix
option)