The Jarvice CLI by Nimbix, Inc. This consists of two components:
- Python API for programmatically accessing https://api.jarvice.com
- jarviceclient, a command-line tool for calling the API
For more information and the full API documentation, see https://api.jarvice.com.
The easiest way to get set up:
Create ~/.jarvice.cfg
with the following contents:
[auth]
username: username
apikey: apikey-from-portal
The easiest way to install is directly from PyPI
pip install --user jarviceclient
If the installation was successful, you should have an executable called jarvice_cli
in your path after installing the jarviceclient
package.
Launch a job from the portal and save the JSON to job.json
. To launch it again, do the following:
jarvice_cli submit -j job.json
jarvice_cli summary
jarvice_cli tail -number <jobnumber>
jarvice_cli output -number <jobnumber>
jarvice_cli connect -number <jobnumber>
jarvice_cli shutdown -number <jobnumber>
jarvice_cli terminate -number <jobnumber>
jarvice_cli info -number <jobnumber>
jarvice_cli status -number <jobnumber>
jarvice_cli action -number <jobnumber> -action <action>
jarvice_cli jobs
jarvice_cli shutdown_all
jarvice_cli terminate_all
jarvice_cli wait_for -number <jobnumber>
The default is drop.jarvice.com, for the Nimbix public cloud
jarvice_cli download -drop <source> -local <destination> [-storage <vault name>]
jarvice_cli upload -local <source> -drop <destination>
jarvice_cli upload -local <source> -drop <destination> -storage altvault.jarvice.com
jarvice_cli ls
or
jarvice_cli ls -d <remote_dir>
jarvice_cli ls -d <remote_dir> -storage altvault.jarvice.com
jarvice_cli apps
jarvice_cli machines
JarviceAPI contains a Client and AuthenticatedClient for interacting with https://api.jarvice.com