diff --git a/conda_lock/conda_lock.py b/conda_lock/conda_lock.py index e635dcad..0d8b9ffc 100644 --- a/conda_lock/conda_lock.py +++ b/conda_lock/conda_lock.py @@ -1194,17 +1194,22 @@ def main() -> None: @main.command("lock", context_settings={"show_default": True}) @click.option( - "--conda", default=None, help="path (or name) of the conda/mamba executable to use." + "--conda", + default=None, + help="path (or name) of the conda/mamba executable to use.", + envvar="CONDA_LOCK_CONDA", ) @click.option( "--mamba/--no-mamba", default=HAVE_MAMBA, help="don't attempt to use or install mamba.", + envvar="CONDA_LOCK_MAMBA", ) @click.option( "--micromamba/--no-micromamba", default=False, help="don't attempt to use or install micromamba.", + envvar="CONDA_LOCK_MICROMAMBA", ) @click.option( "-p", @@ -1454,17 +1459,22 @@ def lock( @main.command("install", context_settings={"show_default": True}) @click.option( - "--conda", default=None, help="path (or name) of the conda/mamba executable to use." + "--conda", + default=None, + help="path (or name) of the conda/mamba executable to use.", + envvar="CONDA_LOCK_CONDA", ) @click.option( "--mamba/--no-mamba", default=DEFAULT_INSTALL_OPT_MAMBA, help="don't attempt to use or install mamba.", + envvar="CONDA_LOCK_MAMBA", ) @click.option( "--micromamba/--no-micromamba", default=DEFAULT_INSTALL_OPT_MICROMAMBA, help="don't attempt to use or install micromamba.", + envvar="CONDA_LOCK_MICROMAMBA", ) @click.option( "--copy",