From 5500a07d122e0805632b2bef0b2ffd93c6920d46 Mon Sep 17 00:00:00 2001 From: Dom Corvasce Date: Thu, 11 Jul 2019 11:41:26 +0200 Subject: [PATCH] Show available env vars in the help output --- lib/classes/CLI.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/classes/CLI.js b/lib/classes/CLI.js index 80299ddf4..4e26e8017 100644 --- a/lib/classes/CLI.js +++ b/lib/classes/CLI.js @@ -209,6 +209,12 @@ class CLI { this.consoleLog(chalk.yellow.underline('Framework')); this.consoleLog(chalk.dim('* Documentation: https://serverless.com/framework/docs/')); + this.consoleLog(''); + + this.consoleLog(chalk.yellow.underline('Environment Variables')); + this.consoleLog(chalk.dim('* Set SLS_DEBUG=* to see debugging logs')); + this.consoleLog(chalk.dim('* Set SLS_WARNING_DISABLE=* to hide warnings from the output')); + this.consoleLog(''); if (!_.isEmpty(this.loadedCommands)) { _.forEach(this.loadedCommands, (details, command) => {