CWCLIent and Environment Variables
From TDiWiki
Many of the parameters that are required by the CLI can be stored as environment variables depending on the OS where the CLI is being run.
On Windows, right-click on My Computer and then select "Properties", "Advanced" and then "Environment Variables". Add 4 System Variables with appropriate values:
- CONWRKS_SERVER
- CONWRKS_PORT
- CONWRKS_USERNAME
- CONWRKS_PASSWORD
Note that case matters here. The CLI will use these values and NOT prompt for them.
The same environment variables can be set on Unix/Linux for the same effect but remember to EXPORT the environment variables before you attempt to use them.
This will solve the problem of having to provide those values over and over each time you run the CLI. This is especially useful when using the CLI to automate tasks.
It should be noted that this does leave the Username and Password in clear text where others might be able to see them.
