Use the command line mode
Use the command line to create, delete, and populate VTS tables. Open a command window from the folder that contains the vtscmd.js file (%ProgramFiles%\OpenText\VTS\web) and type a command with the following syntax: cmdHandler.exe <command> <parameter>. For example to access the help, type cmdHandler.exe help.
Note: In the VTS installation folder, sample command files are provided (%ProgramFiles%\OpenText\VTS\web\samples). One launches new instances and imports data (InitVTSInstances.bat) and the other stops all running instances (StopAllInstances.bat).
The following table describes the available commands:
| Command | Parameters | Description | Example |
|---|---|---|---|
| -cert -key |
When requestClientCert=true in configure.json, specify the certificate and key for server verification. | cmdHandler.exe start -port 2000 -name Employees -cert “clientCert.cer” -key “clientCert.key”
|
|
| delete_data | -port | Delete all data stored in a VTS table | cmdHandler.exe delete_data -port 2000
|
| -domain -username -password |
When authentication is set to NLTM/Basic in configure.json, use these commands to specify the credentials for NTLM/Basic authentication. Note: -domain is required for NTLM. |
cmdHandler.exe start -port 2000 -name Employees -domain Domain -username User -password Pass
|
|
| help | List all VTS commands and parameters | cmdHandler.exe help
|
|
| import |
-port -file -delimiter (optional) |
Import a local .csv file to the VTS | cmdHandler.exe import
sample/customers.csv
-port 2000
|
| list | List all the running VTS instances | cmdHandler.exe list
|
|
| start |
-port -name |
Start an instance of the VTS | cmdHandler.exe start
-port 2000 -name Employees
|
| stop | -port or -name | Stop a VTS instance | cmdHandler.exe stop
-name Employees
or
cmdHandler.exe stop
-port 2000 |
| stop_all | Stop all VTS instances | cmdHandler.exe stop_all
|

