VAST CLI Running Options

Prev Next

There are three ways you can run VAST CLI commands:

  • Open the command line prompt in the shell and run commands interactively (default).

  • Run a single command non-interactively.

  • Run a batch of commands saved to a file.

vcli [-h | --help]
     [-c <command> | --command <command>]
     [-b <batch file> | --batch-file <batch file>]
     [-u <user> | --user <user>]
     [-p <password> | --password <password>] 
     [-d | --debug] 

Option

Description

-h, --help

Shows the help text.

-c <command> | --command <command>

Runs a single command, non-interactively.

  • <command> is the full command string of the command you want to run.

For example, to run the command ldap list:

$  vcli -c ldap list

[-b <batch file> | --batch-file <batch file>]

Runs a batch of commands. The commands must be saved to a file and stored under the /vast/deploy/ path.

  • <batch file> is the name of the file.

-u <user> | --user <user>

Specifies user name for login. If you omit it, you'll be prompted for your user name after you run the command.

-p <password> | --password <password>

Specifies password for login. If you omit it, you'll be prompted for your password after you run the command.

-d | --debug

Enters debug mode.