The config namespace in the Contentstack CLI provides commands to configure various settings, including logging preferences.
The config:set:log command lets you configure the logging behavior of the Contentstack CLI. You can set the preferred log level and specify a file path for storing log outputs.
Usage
csdx config:set:log [--level <level>] [--path <path>]Options
Examples
csdx config:set:log --level debugcsdx config:set:log --level info --path ./logs/app.logThe config:get:log command retrieves the current logging settings, including the log level and the file path where logs are stored. If no configuration is set, the CLI will indicate that no logging configuration is available.
Usage
csdx config:get:log