Skip to content

Proposal: ci (clean-install) subcommand #1389

Description

@ssssota

Description

Perform a clean install. This command runs pnpm clean followed by pnpm install --frozen-lockfile.

Designed for CI/CD environments where reproducible builds are critical.

https://pnpm.io/11.x/cli/ci

The main differences between using npm install and npm ci are:

  • The project must have an existing package-lock.json or npm-shrinkwrap.json.
  • If dependencies in the package lock do not match those in package.json, npm ci will exit with an error, instead of updating the package lock.
  • npm ci can only install entire projects at a time: individual dependencies cannot be added with this command.
  • If a node_modules is already present, it will be automatically removed before npm ci begins its install.
  • It will never write to package.json or any of the package-locks: installs are essentially frozen.

https://docs.npmjs.com/cli/v11/commands/npm-ci

Suggested solution

Add ci subcommand like:

Alternative

Run rm -rf node_modules && vp install --frozen-lockfile manually.

Additional context

Validations

  • Read the Contributing Guidelines.
  • Confirm this request is for Vite+ itself and not for Vite, Vitest, tsdown, Rolldown, or Oxc.
  • Check that there isn't already an issue requesting the same feature.

Activity

  1. added theissue type on Apr 15, 2026
  2. changed the title [-]`ci` (clean-install) subcommand[/-] [+]Proposal: `ci` (clean-install) subcommand[/+] on Apr 15, 2026
  3. fengmk2 commented on Apr 15, 2026

    @fengmk2
    Member

    It should be a subcommand of vp pm: vp pm ci

  4. cpojer commented on Apr 15, 2026

    @cpojer
    Member

    I agree, vp pm ci is more than enough for this.

  5. ssssota commented on Apr 15, 2026

    @ssssota
    Author

    Got it, that makes sense now. I understand the direction.
    Thanks for the explanation!

  6. fengmk2 commented on Apr 15, 2026

    @fengmk2
    Member

    Keep it open, we will implement the vp pm ci command later.

  7. self-assigned this
    on Apr 15, 2026
  8. added this to the RC milestone on Jul 7, 2026
  9. forehalo commented on Jul 7, 2026

    @forehalo
    Collaborator

    I can take a look @fengmk2

  10. added a commit that references this issue on Aug 4, 2026
    95db85b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Fields

Priority

None yet

Start date

None yet

Target date

None yet

Effort

None yet

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions