From b8f73a6458d79c57af9ac89210e9dc8dd9ab73d7 Mon Sep 17 00:00:00 2001 From: Ruben Arts Date: Thu, 28 Mar 2024 08:49:46 +0100 Subject: [PATCH] docs: add small piece on updating a lockfile in preparation for the update command. --- docs/cli.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/cli.md b/docs/cli.md index d90bed517..410cce2b9 100644 --- a/docs/cli.md +++ b/docs/cli.md @@ -97,6 +97,17 @@ pixi install --frozen pixi install --locked ``` +To reinitialize the lockfile in your project, you can remove the existing `pixi.lock` file and run `pixi install`. +This process will regenerate the lockfile based on the dependencies defined in your manifest file: + +```sh +rm pixi.lock && pixi install +``` +This action ensures that your project's dependencies are reset and updated according to the current specifications in manifest file. + +In a future version of Pixi, we will introduce the `pixi update` command. +This command will allow you to update the lockfile directly, without manually deleting the `pixi.lock` file, making the dependency management process even smoother. + ## `run` The `run` commands first checks if the environment is ready to use.