Skip to main content
Version: 0.8.0

Submarine CLI

Submarine CLI comes with pysubmarine python package. You can get CLI tools by pip installing apache-submarine.

Config

You can set your CLI settings by this command

Init

submarine config init 

Return

Submarine CLI Config initialized

Restore CLI config to default (hostname=localhost,port=32080)

Show current config

submarine config list 

For example : return

╭──────────────────── SubmarineCliConfig ─────────────────────╮
{
"connection": {
"hostname": "localhost", │
"port": 32080
}
}
╰─────────────────────────────────────────────────────────────╯

Set config

submarine config set <parameter_path> <value> 

For example, Set connection port to 8080:

submarine config set connection.port 8080

Get config

submarine config get <parameter_path>

For example,

submarine config get connection.port

Return

connection.port=8080

Notebooks

List Notebooks

submarine list notebook 

Get Notebooks

submarine get notebook <notebook id>

you can get notebook id by using list command

Delete Notebooks

submarine delete notebook <notebook id>

Experiments

List Experiments

submarine list experiment 

Get Experiment

submarine get experiment <experiment id>

you can get experiment id by using list command

Delete Experiment

submarine delete experiment <experiment id> [--wait/--no-wait]
  • --wait/--no-wait: blocking or non blocking (default no wait)

Environments

List Environments

submarine list environment 

Get Environments

submarine get environment <environment name>

Delete Environments

submarine delete experiment <environment name>