You can run DCLI commands interactively or in scripts in several ways.

Run DCLI commands locally from the vCenter Server Appliance shell.

Run DCLI commands locally from your vCenter Server Windows command prompt.

Run DCLI commands that are included in the vCLI package.

Open a command prompt on a Linux or Windows system on which you installed vCLI. Enter commands into that command prompt, specifying connection options.

Access the vMA Linux console. DCLI does not support the vi-fastpass connections available from vMA.

Prepare scripts that contain DCLI commands. Then run the scripts as vCLI scripts, from the vCenter Server Windows command prompt, or from the vCenter Server Appliance shell. Use the credential store options to authenticate. Passwords are not supported in scripts.