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.

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.

DCLI supports running commands in either interactive or non-interactive mode.

Interactive mode allows for running commands quickly.

Non-interactive mode is suitable for scripting purposes.