Skip to content

Update migrate-only requires to argument #24510

@bgotink

Description

@bgotink

Command

update

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

13.x

Description

Using ng update --migrate-only --from <version> <name> used to work:

$ NG_DISABLE_VERSION_CHECK=1 yarn dlx --package @angular/cli@13.x \ ng update --migrate-only --from 14.0.0 @angular/cdk Using package manager: 'yarn' Collecting installed dependencies... Found 74 dependencies. ** Executing migrations of package '@angular/cdk' ** ❯ Updates the Angular CDK to v15. ... 

The docs also point to this:

$ yarn run -TB ng update --help ng update [packages..] ... --to Version up to which to apply migrations. Only available with a single package being updated, and only with 'migrate-only' option. Requires 'from' to be specified. Default to the installed version detected. [string] ... 

Minimal Reproduction

$ ng update --migrate-only --from 14.0.0 @angular/cdk 

Exception or Error

Error: Missing dependent arguments: from -> to 

Your Environment

_ _ ____ _ ___ / \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _| / △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | | / ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | | /_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___| |___/ Angular CLI: 15.0.0 Node: 16.16.0 Package Manager: yarn 3.2.4 OS: darwin x64 Angular: 15.0.0 ... cdk, cli, common, compiler, compiler-cli, core, elements ... forms, localize, platform-browser, platform-browser-dynamic ... router Package Version --------------------------------------------------------- @angular-devkit/architect 0.1500.0 @angular-devkit/build-angular 15.0.0 @angular-devkit/core 15.0.0 @angular-devkit/schematics 15.0.0 @schematics/angular 15.0.0 rxjs 7.5.5 typescript 4.8.2 

Anything else relevant?

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions