Setting Up Clients#
Setting up clients for interacting with the Determined master through the CLI provides users with efficient access for task execution without having to go through the WebUI.
Follow these step-by-step instructions to set up clients.
Step 1 - Set DET_MASTER
Environment Variable#
Set the DET_MASTER
environment variable, which is the network address of the Determined master.
You can override the value in the command line using the -m
option.
Note
You can skip this step when deploying locally.
Step 2 - Install the Determined CLI#
The Determined CLI is a command-line tool that lets you launch new experiments and interact with a Determined cluster. The CLI can be installed on any machine you want to use to access Determined. To install the CLI, follow the installation instructions.
The -m
or --master
flag determines the network address of the Determined master that the CLI
connects to. If this flag is not specified, the value of the DET_MASTER
environment variable is
used; if that environment variable is not set, the default address is localhost
. The master
address can be specified in three different formats:
example.org:port
(ifport
is omitted, it defaults to8080
)http://example.org:port
(ifport
is omitted, it defaults to80
)https://example.org:port
(ifport
is omitted, it defaults to443
)
Examples:
# Connect to localhost, port 8080.
$ det experiment list
# Connect to example.org, port 8888.
$ det -m example.org:8888 e list
# Connect to example.org, port 80.
$ det -m http://example.org e list
# Connect to example.org, port 443.
$ det -m https://example.org e list
# Connect to example.org, port 8080.
$ det -m example.org e list
# Set default Determined master address to example.org, port 8888.
$ export DET_MASTER="example.org:8888"