BLACK FRIDAY - Get 35% off your Mastering Nuxt license!

The cli Property

Nuxt.js lets you customize the CLI configuration.

badgeMessages

  • Type Array

Add a message to the CLI banner.

nuxt.config.js
cli: {
  badgeMessages: ['Hello World!']
}

bannerColor

  • Type: String
    • Default: 'green'

Change the color of the 'Nuxt.js' 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
export default {
  cli: {
    bannerColor: 'yellow'
  }
}

Platinum Sponsors

StoryblokMoovweb Support Us