cli icon indicating copy to clipboard operation
cli copied to clipboard

CLI command to switch between nightly and stable nuxt channels

Open pi0 opened this issue 1 year ago • 3 comments

We introduced an edge channel since Nuxt 2, mainly for internally testing changes before public releases. This allows opting-in to beta test features ahead of time for the community too.

Manual migration is currently documented here: https://v3.nuxtjs.org/guide/going-further/edge-channel.

The idea is to make it easy to opt-in and opt-out from edge release channel and also be able to keep it updated. @Atinux previously shared the idea of nuxi edge on|off an @AndreyYolkin in nuxt/framework#6998 using nuxi upgrade --channel edge. I like both actually because they complete each other and can be combined:

  • nuxi upgrade edge: Change dependency to npm:nuxt3 and upgrade to the latest edge
  • nuxi upgrade stable: Change dependency to nuxt with the latest RC tag

pi0 avatar Aug 29 '22 10:08 pi0

I want to add 1 more question to resolve: should we upgrade not only nuxt but other enviroment packages, too? I have at least @nuxt/kit (because it's recommended to be explicitly installed) and also @nuxt/bridge.

IMO, we should update them with upgrading Nuxt, too.

AndreyYolkin avatar Aug 29 '22 11:08 AndreyYolkin

That makes sense! If you use caret ^ for nuxt/kit dependency, nuxi upgrade should already handle the update via lockfile but it could be also explicitly bumped from package.json too. Do you mind to open a new issue not forget about it?

pi0 avatar Aug 29 '22 11:08 pi0

Yes, I'll create create the issue👌

AndreyYolkin avatar Aug 29 '22 11:08 AndreyYolkin