vmw-cli
所属分类:操作系统开发
开发工具:JavaScript
文件大小:129KB
下载次数:0
上传日期:2018-10-10 22:06:18
上 传 者:
sh-1993
说明: vmw cli是一个cli客户端,用于登录my.vmware.com并与之交互。允许编程查询和下载V...
(vmw-cli is a CLI client used to login and interact with my.vmware.com. Allows for programmatic query and download of VMware product binaries.)
文件列表:
asciicast (0, 2018-10-11)
asciicast\build-cast.sh (381, 2018-10-11)
asciicast\run.sh (612, 2018-10-11)
asciicast\vmw-cli.find1.cast (4607, 2018-10-11)
asciicast\vmw-cli.find1.cast.svg (36617, 2018-10-11)
asciicast\vmw-cli.install.cast (6801, 2018-10-11)
asciicast\vmw-cli.install.cast.svg (36864, 2018-10-11)
backup-shrinkwrap.json (423, 2018-10-11)
build.sh (140, 2018-10-11)
dockerfile (291, 2018-10-11)
lib (0, 2018-10-11)
lib\examples (0, 2018-10-11)
lib\examples\data.json (197, 2018-10-11)
lib\examples\test-01.js (548, 2018-10-11)
lib\examples\test-02.js (483, 2018-10-11)
lib\examples\test-03.js (453, 2018-10-11)
lib\examples\test-04.js (509, 2018-10-11)
lib\examples\test-05.js (463, 2018-10-11)
lib\extract-files.js (6786, 2018-10-11)
lib\get-file.js (2134, 2018-10-11)
lib\get-index.js (2123, 2018-10-11)
lib\get-product.js (3464, 2018-10-11)
lib\get-solution.js (6423, 2018-10-11)
lib\utils.js (1723, 2018-10-11)
lib\vmw-api.js (6627, 2018-10-11)
lib\vmw-cli.js (2907, 2018-10-11)
lib\xcell.js (918, 2018-10-11)
lib\xtable.js (2846, 2018-10-11)
license (1092, 2018-10-11)
mainIndex.json (707568, 2018-10-11)
npm-shrinkwrap.json (423, 2018-10-11)
package.json (550, 2018-10-11)
run.sh (89, 2018-10-11)
# vmw-cli
`vmw-cli` is a CLI client used to login and interact with my.vmware.com.
It provides an interface for programmatic query and download of VMware product binaries.
Every product.
Every version.
Every file.
#### Configure authentication for my.vmware.com
```
export VMWUSER='
'
export VMWPASS=''
```
Note: Any download attempts will be restricted to the entitlements afforded by your account.
Alternatively, if using `docker` commands, you can pass credentials directly to the container instead.
## Install
`vmw-cli` can be installed natively via NPM or consumed using a pre-built docker image.
Requested files via the `get` command will be downloaded to current working directory.
### via NPM
**vmw-cli requires NodeJS >= 8.x, some older Linux distros need to have NodeJS [manually updated](https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions)**
Once installed, `vmw-cli` can be leveraged directly via the `vmw-cli` shell command - see *Usage* below
```
npm install vmw-cli --global
```
### via Docker run
This is where we simply use `docker run` with the required ENV parameters set:
```
docker run -t --rm -e VMWUSER='' -e VMWPASS='' -v ${PWD}:/files apnex/vmw-cli
```
**Where:**
- `` is your **my.vmware.com** username
- `` is your **my.vmware.com** password
- `` is one of [`list`, `index`, `find`, `get`, `json`]
- `${PWD}` ENV will resolve to current working directory in BASH for file downloads
See **Usage** for examples
### via Docker exec
This is where we start the container using `docker run` with the required ENV parameters set.
Subsequent commands are then issued using `docker exec` commands.
Start the container in background:
```
docker run -itd --name vmw -e VMWUSER='' -e VMWPASS='' -v ${PWD}:/files --entrypoint=sh apnex/vmw-cli
```
**Where:**
- `` is your **my.vmware.com** username
- `` is your **my.vmware.com** password
- `${PWD}` ENV will resolve to current working directory in BASH for file downloads
Then issue one or more `docker exec` commands:
```
docker exec -t vmw vmw-cli
```
Clean up docker container when done:
```
docker rm -f vmw
```
See **Usage** for examples
Index some files in `productGroup` *OVFTOOL430* and *NSX-T-220*
```
vmw-cli index OVFTOOL430
vmw-cli index NSX-T-220
vmw-cli get VMware-ovftool-4.3.0-7948156-lin.x86_***.bundle
vmw-cli get nsx-unified-appliance-2.2.0.0.0.8680778.ova
```
## Usage
#### vmw-cli list
The `list` command displays the current high-level `` available on my.vmware.com.
You will need to first generate an index of files under at least 1 solution or productGroup before proceeding with other commands.
```
$ vmw-cli list
vmware-workstation-pro
vmware-workstation-player
vmware-workspace
vmware-workspace-one
vmware-vsphere
vmware-vsphere-with-operations-management
vmware-vsphere-storage-appliance
vmware-vsphere-integrated-containers
vmware-vsphere-hypervisor-esxi
vmware-vsphere-data-protection-advanced
vmware-vsan
--
近期下载者:
相关文件:
收藏者: