Skip to main content

encrypt command

Use the encrypt command to encrypt, save, and update the credentials or the sensitive setting values in the specified plain text file.

encrypt command syntax

OneCli.exe misc encrypt < --configfile <arg>> [--unattended]
Table 1. encrypt command specific parameters
ParameterRequired/OptionalNotes
--configfileRequired

Specify the JSON configuration file.

  • For encrypting the credentials, the template file is available in Sample/credentials_config.json.

  • For encrypting the sensitive setting values, the template file is available in Sample/setting.json.

--unattendedOptional

Refer to Table 2.

Example of the encrypt command

OneCli.exe misc encrypt --configfile credentials.json --unattended