Skip to content

Implement NPM's ci command #6100

@llucasll

Description

@llucasll

Describe the user story

As a developer, I need a command like pnpm ci to use when it's suggested to use npm ci

Describe the solution you'd like

Would be nice if we had in PNPM a CLI option like NPM's ci
I found other people running into the same issue.

Describe the drawbacks of your solution

If someone has a ci script, so the proposed feature will change the behavior of pnpm ci command.
But once PNPM is meant to stay close to the NPM API, it should have the same commands.
People who use a ci script still can use pnpm run ci, and the API becomes more close to NPM, facilitating migrating from one to another.

Describe alternatives you've considered

In Unix-like environments, it appears that people can use CI=true pnpm i to accomplish the same behavior.
One can even define a ci script with this command.
But It's not a cross-platform solution and don't looks a good solution to recommend end-users to use.
Besides needing to introduce this script manually in every project you need, or manually in the command line every time.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions