CLI Commands¶
CLI - Command line interface, is a text-based interface to interact with your system. On Mac/Linux based OS you’ll have terminal application where these commands can be executed, on windows it’ll be named as command prompt or conda prompt can be used if Anaconda has been installed.
These commands requires installation of jovian library, if you’re working with pip/conda virtual environments make sure you activate the environment where the jovian library is installed.
These commands ensure that you can directly interact with Jovian from CLI.
clone¶
Clone a notebook hosted on Jovian:
$ jovian clone aakashns/jovian-tutorial
Or clone a specific version of notebook:
$ jovian clone aakashns/jovian-tutorial -v 10
jovian clone <username/title>
Options
-
-v
,
--version
<version>
¶ Version number
-
--no-outputs
¶
Exclude output files
-
--overwrite
¶
Overwrite existing project
Arguments
-
<username/title>
¶
Required argument
install¶
Install packages from environment file:
$ jovian install
or, to specify environment name:
$ jovian install -n my_env
jovian install
Options
-
-n
,
--name
<name>
¶ Name of conda env
pull¶
Fetch the new version of notebook hosted on Jovian(inside a cloned directory):
$ jovian pull
Or fetch a specific version of a specific notebook:
$ jovian pull -n aakashns/jovian-tutorial -v 10
jovian pull
Options
-
-n
,
--notebook
<notebook>
¶ Notebook project (format: username/title)
-
-v
,
--version
<version>
¶ Version number
set-project¶
Associate notebook (filename.ipynb) to Jovian project (username/title)
$ jovian set-project my_notebook.ipynb danb/keras-example
This will create or update the .jovianrc file in the current directory to ensure that commits inside the Jupyter notebook “my_notebook.ipynb” add new versions to the project danb/keras-example
jovian set-project NOTEBOOK PROJECT
Arguments
-
NOTEBOOK
¶
Required argument
-
PROJECT
¶
Required argument