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: node vtscmd <command> <parameter>
. For example to access the help, type node vtscmd /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. | Node vtscmd /start /port 2000 /name Employees /cert “clientCert.cer” /key “clientCert.key”
|
|
/delete_data | /port | Delete all data stored in a VTS table | node vtscmd /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. |
Node vtscmd /start /port 2000 /name Employees /domain Domain /username User /password Pass
|
|
/help or /? | List all VTS commands and parameters | node vtscmd /help
|
|
/import |
/port /file /delimiter (optional) |
Import a local .csv file to the VTS | node vtscmd /import
sample/customers.csv
/port 2000
|
/list | List all the running VTS instances | node vtscmd /list
|
|
/start |
/port /name |
Start an instance of the VTS | node vtscmd /start
/port 2000 /name Employees
|
/stop | /port or /name | Stop a VTS instance | node vtscmd /stop
/name Employees
or
node vtscmd /stop
/port 2000 |
/stop_all | Stop all VTS instances | node vtscmd /stop_all
|