As an alternative to a package installation, you can deploy vMA on an ESXi host and run vCLI commands from there.
vMA is a virtual machine that you can use to run scripts to manage ESXi systems. vMA includes a Linux environment, vCLI, and other prepackaged software.
Setting up vMA consists of several tasks. For details about each task, see the vSphere Management Assistant Guide.