The cli property

Nuxt lets you customize the CLI configuration.


badgeMessages

  • Type Array

Add a message to the CLI banner.

nuxt.config.js

  1. cli: {
  2. badgeMessages: ['Hello World!']
  3. }

The cli Property - 图1

bannerColor

  • Type: String
    • Default: 'green'

Change the color of the ‘Nuxt’ title in the CLI banner.

Available colors:

black, red, green, yellow, blue, magenta, cyan, white, gray, redBright, greenBright, yellowBright, blueBright, magentaBright, cyanBright, whiteBright

nuxt.config.js

  1. export default {
  2. cli: {
  3. bannerColor: 'yellow'
  4. }
  5. }