Skip to content

Commit

Permalink
Dockerfile updates..
Browse files Browse the repository at this point in the history
  • Loading branch information
apnex committed Aug 14, 2018
1 parent 34ea9a3 commit 8c34ddc
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 16 deletions.
File renamed without changes.
9 changes: 4 additions & 5 deletions lib/vmw-cli.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
#!/usr/bin/env node
const args = process.argv;
var fs = require('fs');
var xtable = require('./xtable.js');
var getFile = require('./getFile.js');
const myVmw = require('./getIndex.js');
const products = require('./getProduct.js');
var xtable = require('./xtable.js'); // view
var getFile = require('./getFile.js'); // download
const products = require('./getProduct.js'); // index
const client = new getFile();

// global dir settings
Expand Down Expand Up @@ -37,7 +36,7 @@ if(args[1].match(/vmw-cli/g)) {
list(args[3]);
break;
default:
console.log('No command specified [index, find, get]');
console.log('No command specified [list, index, find, get]');
// improve help output
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vmw-cli",
"version": "1.0.20",
"version": "1.0.21",
"description": "CLI interface for my.vmware.com",
"license": "MIT",
"repository": "apnex/vmw-cli",
Expand Down
18 changes: 8 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# 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.

#### Configure authentication for my.vmware.com
```
Expand All @@ -8,10 +10,10 @@ export VMWPASS='<password>'

## Install
`vmw-cli` can be installed natively via NPM or consumed using a pre-built docker image.
Files will be downloaded to current directory.
Requested files via the `get` command will be downloaded to current directory.

#### via NPM
After install - tool can be leveraged directly via `vmw-cli` command
Once installed, `vmw-cli` can be leveraged directly via the `vmw-cli` shell command
```
npm install vmw-cli --global
```
Expand Down Expand Up @@ -39,9 +41,7 @@ vmware-vsphere-integrated-containers
vmware-vsphere-hypervisor-esxi
vmware-vsphere-data-protection-advanced
vmware-vsan
<output ommitted>
-- <output ommitted> --
vmware-photon-platform
vmware-nsx-t-data-center
vmware-nsx-sd-wan
Expand All @@ -56,10 +56,10 @@ You will need to use one of the `<solution>` entries available from the `list` c
The index intentionally creates duplicate entries for files, as a `product` may map to multiple `solutions`.
You can issue the `index` command multiple times to generate a consolidated index of all files.

**WARNING: Some solutions such as `vmware-vsphere` and `vmware-vsphere` contain a large number of products, and could take 10-15 mins to index**
**WARNING: Some solutions such as `vmware-vsphere` and `vmware-vsan` contain a large number of products, and could take 10-15 mins to index**
```
$ vmw-cli index vmware-nsx-t-data-center
Updating [fileIndex.json] for all permitted downloads from [vmware-nsx-t-data-center] ...
Updating [fileIndex.json] for all permitted downloads in [vmware-nsx-t-data-center] ...
file[/state/index.json.session] does not exist, writing...
Synching delicious cookies from [https://my.vmware.com]
Offering up afforementioned snacks as a sacrifice to [https://my.vmware.com/oam/server/auth_cred_submit]
Expand All @@ -74,9 +74,7 @@ Resolving files in solution [vmware-nsx-t-data-center]
[FETCH]: https://my.vmware.com/group/vmware/details?downloadGroup=NSX-T-PKS-213&productId=673
[FETCH]: https://my.vmware.com/group/vmware/details?downloadGroup=NSX-T-PKS-212&productId=673
[FETCH]: https://my.vmware.com/group/vmware/details?downloadGroup=NSX-T-PKS-2101&productId=673
<output ommitted>
-- <output ommitted> --
[FETCH]: https://my.vmware.com/group/vmware/details?downloadGroup=VRLI-430-OSS&productId=673
[FETCH]: https://my.vmware.com/group/vmware/details?downloadGroup=NSX-T-110&productId=631
[FETCH]: https://my.vmware.com/group/vmware/details?downloadGroup=VRLI-430-NSX&productId=631
Expand Down

0 comments on commit 8c34ddc

Please sign in to comment.