Vue-cli: There is no official vue-cli update / upgrade guide on cli.vuejs.org/guide

Created on 23 Jun 2018  路  7Comments  路  Source: vuejs/vue-cli

What problem does this feature solve?

There should be a section in the guide to describe how to upgrade a project generated using older version of vue-cli to the latest version. This search term on Google yeilds no result '(update|upgrade) site:cli.vuejs.org'

What does the proposed API look like?

A simple section to describe how to upgrade.

Most helpful comment

Actually this is about the new Vue CLI. For example, there a few dependencies of a project generated by vue cli like babel-core, @vue/cli-service, @vue/cli-plugin-babel. I am looking for the official recommendation on how these should be updated. Should I generate a brand new project with the latest CLI and diff the package.json? Or there is a better way? Thanks.

All 7 comments

Unfortunately the old CLI allows you to make arbitrary changes to the config, which makes it near impossible to provide a universally applicable guide on upgrading. If you didn't make any modifications at all, simply copy your src directory over and it should work. Otherwise, read the docs of the new CLI to understand how to apply modifications to the config.

Actually this is about the new Vue CLI. For example, there a few dependencies of a project generated by vue cli like babel-core, @vue/cli-service, @vue/cli-plugin-babel. I am looking for the official recommendation on how these should be updated. Should I generate a brand new project with the latest CLI and diff the package.json? Or there is a better way? Thanks.

Once generated, just bump everything to the latest version with npm update.

Once generated, just bump everything to the latest version with npm update.

I couldn't find this information in the guide on cli.vuejs.org/guide. Care to re-open this issue until the upgrade instructions are available there?

This issue may be dependent on https://github.com/vuejs/vue-cli/issues/1507

hmm ...there is new @vue/eslint-config-prettier (4.0.1) but:

$ grep eslint-config-prettier package.json
    "@vue/eslint-config-prettier": "^4.0.0",
$ npm update
$ grep eslint-config-prettier package.json
    "@vue/eslint-config-prettier": "^4.0.0",

How to get fresh version ?

hmm ...there is new @vue/eslint-config-prettier (4.0.1) but:

$ grep eslint-config-prettier package.json
    "@vue/eslint-config-prettier": "^4.0.0",
$ npm update
$ grep eslint-config-prettier package.json
    "@vue/eslint-config-prettier": "^4.0.0",

How to get fresh version ?

vue upgrade. It will handle minor updates by default. If you want major/patch just specify it vue upgrade major.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

wahidrahim picture wahidrahim  路  3Comments

brandon93s picture brandon93s  路  3Comments

OmgImAlexis picture OmgImAlexis  路  3Comments

eladcandroid picture eladcandroid  路  3Comments

b-zee picture b-zee  路  3Comments