DCLI Syntax
Each DCLI command uses the same syntax.
The command name can be
followed by DCLI connection and formatting options, each preceded by a plus
(+
) sign. You also specify the namespace, the command, and the
command options. Namespaces are nested.
Note: The order in which DCLI
options are provided on the command line is not important. However, you must
specify DCLI options with a plus (
+
) and command-specific
options with two minus signs (--
).
The syntax of a DCLI command is the following.
dcli [+[DCLI option] ...] <namespace> [<namespace> ...] <cmd> [--[cmd option] [option value] ...]
The following table describes the DCLI syntax elements.
Syntax Element | Description |
---|---|
DCLI options |
Predefined options for
connection information and formatting options. Always preceded by a plus
( |
namespace | Groups DCLI commands. Namespaces are nested. |
command | Reports on or modifies the state of the system. |
option and
value | Command option and value
pairs preceded by two minus signs (-- ).
|
Examples
dcli +vmc com vmware vmc orgs sddcs get --org orgID --sddc sddcID
dcli +nsx-server <mynsxtaddress> com vmware nsx policy api v1 infra services list
dcli +server myvc +skip com vmware vcenter vm get --vm vm-23