diff --git a/packages/cli/src/commands/generate.js b/packages/cli/src/commands/generate.js index e20a183d05..c36c6b31a1 100644 --- a/packages/cli/src/commands/generate.js +++ b/packages/cli/src/commands/generate.js @@ -25,6 +25,18 @@ export default { } } }, + quiet: { + alias: 'q', + type: 'boolean', + description: 'Disable output except for errors', + prepare(cmd, options, argv) { + // Silence output when using --quiet + options.build = options.build || {} + if (argv.quiet) { + options.build.quiet = true + } + } + }, modern: { ...common.modern, description: 'Generate app in modern build (modern mode can be only client)',