Command modes

You can use the CLI to run one command or a series of commands, either interactively or from a script.

Single-shot mode
To run a single command, specify the CLI program and that command at the shell prompt, for example:
shell> tpctool lsdev -user me -pwd mypass -url myhost:myport -l -subsys
Interactive mode
To run in interactive mode, enter the tpctool command with no command-line options. In the following example, the string "shell>" represents the shell prompt and tpctool> represents the prompt from the CLI while in interactive mode. At the CLI prompt, any valid CLI command can be entered.
shell> tpctool 
tpctool> lsdev -user me -pwd mypass -url myhost:myport -l -subsys
Script mode
To run a set of commands that you defined in a file, start the CLI program and specify a file that contains the commands, for example:
shell> tpctool –script ~/bin/containersetup
shell>