Search code examples
yarnpkg

What is -o flag in yarn?


I am getting through Nuxt installation guide and starting the app is done with this command:

yarn dev -o

What is the -o?


Solution

  • yarn dev -o is actually related to the commands in the scripts in package.json. To be more specific it's related to this line: "dev": "nuxt dev". Exploring Nuxt documentation on commands there is this option --open, -o, which means Open URL in browser.