diff --git a/crates/pixi_cli/src/cli_config.rs b/crates/pixi_cli/src/cli_config.rs index 5ddfd44cf1..d7e492ec59 100644 --- a/crates/pixi_cli/src/cli_config.rs +++ b/crates/pixi_cli/src/cli_config.rs @@ -141,7 +141,7 @@ impl LockFileUpdateConfig { #[derive(Parser, Debug, Default, Clone)] pub struct NoInstallConfig { /// Don't modify the environment, only modify the lock-file. - #[arg(long, help_heading = consts::CLAP_UPDATE_OPTIONS)] + #[arg(long, env = "PIXI_NO_INSTALL", help_heading = consts::CLAP_UPDATE_OPTIONS)] pub no_install: bool, } diff --git a/crates/pixi_cli/src/update.rs b/crates/pixi_cli/src/update.rs index 678e55e70c..81c0fffb7d 100644 --- a/crates/pixi_cli/src/update.rs +++ b/crates/pixi_cli/src/update.rs @@ -31,7 +31,7 @@ pub struct Args { /// Don't install the (solve) environments needed for pypi-dependencies /// solving. - #[arg(long)] + #[arg(long, env = "PIXI_NO_INSTALL")] pub no_install: bool, /// Don't actually write the lockfile or update any environment. diff --git a/crates/pixi_cli/src/workspace/platform.rs b/crates/pixi_cli/src/workspace/platform.rs index 7064da2a88..7a8e4f4101 100644 --- a/crates/pixi_cli/src/workspace/platform.rs +++ b/crates/pixi_cli/src/workspace/platform.rs @@ -28,7 +28,7 @@ pub struct AddArgs { /// Don't update the environment, only add changed packages to the /// lock-file. - #[clap(long)] + #[clap(long, env = "PIXI_NO_INSTALL")] pub no_install: bool, /// The name of the feature to add the platform to. @@ -44,7 +44,7 @@ pub struct RemoveArgs { /// Don't update the environment, only remove the platform(s) from the /// lock-file. - #[clap(long)] + #[clap(long, env = "PIXI_NO_INSTALL")] pub no_install: bool, /// The name of the feature to remove the platform from. diff --git a/docs/reference/cli/pixi/add.md b/docs/reference/cli/pixi/add.md index 0d43182e96..fe9ed96567 100644 --- a/docs/reference/cli/pixi/add.md +++ b/docs/reference/cli/pixi/add.md @@ -69,6 +69,7 @@ pixi add [OPTIONS] ... ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/build.md b/docs/reference/cli/pixi/build.md index 05c71560ab..e849eda724 100644 --- a/docs/reference/cli/pixi/build.md +++ b/docs/reference/cli/pixi/build.md @@ -56,6 +56,7 @@ pixi build [OPTIONS] ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/list.md b/docs/reference/cli/pixi/list.md index 792e98bd5c..fd5dc2536e 100644 --- a/docs/reference/cli/pixi/list.md +++ b/docs/reference/cli/pixi/list.md @@ -45,6 +45,7 @@ pixi list [OPTIONS] [REGEX]
**env**: `PIXI_LOCKED` - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` ## Global Options - `--manifest-path (-m) ` diff --git a/docs/reference/cli/pixi/lock.md b/docs/reference/cli/pixi/lock.md index 0452f15a37..a6aad71f59 100644 --- a/docs/reference/cli/pixi/lock.md +++ b/docs/reference/cli/pixi/lock.md @@ -24,6 +24,7 @@ pixi lock [OPTIONS] ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` ## Global Options - `--manifest-path (-m) ` diff --git a/docs/reference/cli/pixi/publish.md b/docs/reference/cli/pixi/publish.md index 131ccdcb0b..30af7195b0 100644 --- a/docs/reference/cli/pixi/publish.md +++ b/docs/reference/cli/pixi/publish.md @@ -64,6 +64,7 @@ pixi publish [OPTIONS] --to ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/remove.md b/docs/reference/cli/pixi/remove.md index ef58860c9b..30ee62d23e 100644 --- a/docs/reference/cli/pixi/remove.md +++ b/docs/reference/cli/pixi/remove.md @@ -67,6 +67,7 @@ pixi remove [OPTIONS] ... ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/run.md b/docs/reference/cli/pixi/run.md index f66fc73830..8367136e6b 100644 --- a/docs/reference/cli/pixi/run.md +++ b/docs/reference/cli/pixi/run.md @@ -64,6 +64,7 @@ pixi run [OPTIONS] [TASK]... ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/shell-hook.md b/docs/reference/cli/pixi/shell-hook.md index 8611ca441e..ee2e264a3d 100644 --- a/docs/reference/cli/pixi/shell-hook.md +++ b/docs/reference/cli/pixi/shell-hook.md @@ -55,6 +55,7 @@ pixi shell-hook [OPTIONS] ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/shell.md b/docs/reference/cli/pixi/shell.md index e7b6c2f313..0594c24e43 100644 --- a/docs/reference/cli/pixi/shell.md +++ b/docs/reference/cli/pixi/shell.md @@ -50,6 +50,7 @@ pixi shell [OPTIONS] ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/tree.md b/docs/reference/cli/pixi/tree.md index fe83180fe7..15c410caa3 100644 --- a/docs/reference/cli/pixi/tree.md +++ b/docs/reference/cli/pixi/tree.md @@ -34,6 +34,7 @@ pixi tree [OPTIONS] [REGEX]
**env**: `PIXI_LOCKED` - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` ## Global Options - `--manifest-path (-m) ` diff --git a/docs/reference/cli/pixi/update.md b/docs/reference/cli/pixi/update.md index 0956f4389e..b5a9e7dac6 100644 --- a/docs/reference/cli/pixi/update.md +++ b/docs/reference/cli/pixi/update.md @@ -21,6 +21,7 @@ pixi update [OPTIONS] [PACKAGES]... ## Options - `--no-install` : Don't install the (solve) environments needed for pypi-dependencies solving +
**env**: `PIXI_NO_INSTALL` - `--dry-run (-n)` : Don't actually write the lockfile or update any environment - `--environment (-e) ` diff --git a/docs/reference/cli/pixi/upgrade.md b/docs/reference/cli/pixi/upgrade.md index a563bec90d..4b44901536 100644 --- a/docs/reference/cli/pixi/upgrade.md +++ b/docs/reference/cli/pixi/upgrade.md @@ -55,6 +55,7 @@ pixi upgrade [OPTIONS] [PACKAGES]... ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/workspace/channel/add.md b/docs/reference/cli/pixi/workspace/channel/add.md index 85a05e8b9b..716d5bba37 100644 --- a/docs/reference/cli/pixi/workspace/channel/add.md +++ b/docs/reference/cli/pixi/workspace/channel/add.md @@ -53,6 +53,7 @@ pixi workspace channel add [OPTIONS] ... ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/workspace/channel/remove.md b/docs/reference/cli/pixi/workspace/channel/remove.md index 237a3d8ae1..7e2b20112a 100644 --- a/docs/reference/cli/pixi/workspace/channel/remove.md +++ b/docs/reference/cli/pixi/workspace/channel/remove.md @@ -53,6 +53,7 @@ pixi workspace channel remove [OPTIONS] ... ## Update Options - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` - `--frozen` : Install the environment as defined in the lockfile, doesn't update lockfile if it isn't up-to-date with the manifest file
**env**: `PIXI_FROZEN` diff --git a/docs/reference/cli/pixi/workspace/export/conda-explicit-spec.md b/docs/reference/cli/pixi/workspace/export/conda-explicit-spec.md index cbfb9ad520..9d989a604a 100644 --- a/docs/reference/cli/pixi/workspace/export/conda-explicit-spec.md +++ b/docs/reference/cli/pixi/workspace/export/conda-explicit-spec.md @@ -64,6 +64,7 @@ pixi workspace export conda-explicit-spec [OPTIONS]
**env**: `PIXI_LOCKED` - `--no-install` : Don't modify the environment, only modify the lock-file +
**env**: `PIXI_NO_INSTALL` ## Global Options - `--manifest-path (-m) ` diff --git a/docs/reference/cli/pixi/workspace/platform/add.md b/docs/reference/cli/pixi/workspace/platform/add.md index f2f0cbc5c4..97a224f9b7 100644 --- a/docs/reference/cli/pixi/workspace/platform/add.md +++ b/docs/reference/cli/pixi/workspace/platform/add.md @@ -22,6 +22,7 @@ pixi workspace platform add [OPTIONS] ... ## Options - `--no-install` : Don't update the environment, only add changed packages to the lock-file +
**env**: `PIXI_NO_INSTALL` - `--feature (-f) ` : The name of the feature to add the platform to diff --git a/docs/reference/cli/pixi/workspace/platform/remove.md b/docs/reference/cli/pixi/workspace/platform/remove.md index 3ea0d062aa..2f8202539a 100644 --- a/docs/reference/cli/pixi/workspace/platform/remove.md +++ b/docs/reference/cli/pixi/workspace/platform/remove.md @@ -22,6 +22,7 @@ pixi workspace platform remove [OPTIONS] ... ## Options - `--no-install` : Don't update the environment, only remove the platform(s) from the lock-file +
**env**: `PIXI_NO_INSTALL` - `--feature (-f) ` : The name of the feature to remove the platform from diff --git a/docs/workspace/lockfile.md b/docs/workspace/lockfile.md index 2fbe458b3d..037d356891 100644 --- a/docs/workspace/lockfile.md +++ b/docs/workspace/lockfile.md @@ -55,7 +55,7 @@ You may want to have more control over the interplay between the manifest, the l - `--frozen`: install the environment as defined in the lock file, doesn't update `pixi.lock` if it isn't up-to-date with [manifest file](../reference/pixi_manifest.md). It can also be controlled by the `PIXI_FROZEN` environment variable (example: `PIXI_FROZEN=true`). - `--locked`: only install if the `pixi.lock` is up-to-date with the [manifest file](../reference/pixi_manifest.md). It can also be controlled by the `PIXI_LOCKED` environment variable (example: `PIXI_LOCKED=true`). Conflicts with `--frozen`. - +- `--no-install`: don't modify the environment, only modify the lock-file. It can also be controlled by the `PIXI_NO_INSTALL` environment variable (example: `PIXI_NO_INSTALL=true`). ## Committing your lockfile