Skip to content

RFC: New command names (and alias the old ones) #274

Closed
@arcanis

Description

@arcanis

I think the current command names are at odds with what most people would expect. What do you think about rewording them to be closer from what package managers' interfaces look like? The old commands would still work, but wouldn't be displayed in --help (or perhaps marked as deprecated in the documentation).

  • corepack prepare [email protected] -> corepack install -g [email protected]

  • corepack prepare [email protected] --activate -> corepack use -g [email protected]

  • corepack hydrate path/to/archive.gz -> corepack install -g path/to/archive.gz

  • corepack hydrate path/to/archive.gz --activate -> corepack use -g path/to/archive.gz

  • corepack prepare -o ... -> corepack pack -g

Along with new commands:

  • corepack use [email protected] -> Add the packageManager field to the package.json file
  • corepack remove -g foo -> Removes all versions from foo from the cache
  • corepack up foo -> Download the latest version from the registry and automatically use it
  • corepack info foo -> List all versions currently in the cache (and the latest one from the remote)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions