diff --git a/Documentation/Reference/MaxCtrl.md b/Documentation/Reference/MaxCtrl.md index 4b602e466..f457d8b5a 100644 --- a/Documentation/Reference/MaxCtrl.md +++ b/Documentation/Reference/MaxCtrl.md @@ -59,8 +59,9 @@ HTTPS/TLS Options: [boolean] [default: true] Options: - --version Show version number [boolean] - --help Show help [boolean] + --version Show version number [boolean] + --tls-passphrase Password for the TLS private key [string] + --help Show help [boolean] ``` ## list @@ -675,6 +676,11 @@ Usage: api Commands: get [path] Get raw JSON +API options: + --sum Calculate sum of API result. Only works for arrays of numbers e.g. `api + get --sum servers data[].attributes.statistics.connections`. + [boolean] [default: false] + ``` ### api get diff --git a/maxctrl/lib/core.js b/maxctrl/lib/core.js index 8d7dd6c40..9c0a5a472 100644 --- a/maxctrl/lib/core.js +++ b/maxctrl/lib/core.js @@ -74,6 +74,10 @@ program describe: 'Path to TLS public certificate', type: 'string' }) + .option('tls-passphrase', { + describe: 'Password for the TLS private key', + type: 'string' + }) .option('tls-ca-cert', { describe: 'Path to TLS CA certificate', type: 'string'