A command line interface to query ElephantDrived users' data for troubleshooting.
Install Node and npm at nodejs.org/en/download/
git clone https://elephantdrive.git.beanstalkapp.com/edcli.git
cd edcli
npm install -gThat's it!
The first thing to do is to login with your account (or admin account). This step is performed only once. Your credentials will be stored in ~/.config/configstore/elephant.json (for mac/linux). To log in, run the following command:
elephant auth --env [ENVIRONMENT] Where ENVIRONMENT is the environment you want to log in with (QA, STG, or LIVE). It is set to LIVE by default. You will be prompted to enter your credentials and an API key.
You have several commands that gets you user's account information. Here is a list of the currently available commands:
devices Get all devices
configs Get device configuration
sub Get account subscription information
usage Get account usage informationYou can either get information about your own account or about other users (if you have admin privilages). Here are some example commands demonstrating usage:
elephant devices # will return device information about your own account
elephant devices -u other_user@elepha.net # will return device information for other_user@elepha.net
# another way to pass optional arguments (I prefer this way)
elephant -u other_user@elepha.net devices
elephant -u other_user@elepha.net usageHere are sample output of some of the commands:
