diff --git a/README.md b/README.md index dcc0559ca7..6f702fc505 100644 --- a/README.md +++ b/README.md @@ -72,7 +72,12 @@ See the [repoquery documentation](https://mamba.readthedocs.io/en/latest/user_gu `micromamba` can be used to install lock files generated by [conda-lock](https://conda.github.io/conda-lock/) without having to install `conda-lock`. -Simply invoke e.g. `micromamba create -n my-env -f conda-lock.yml` with an environment lockfile named `*-lock.yml` or `*-lock.yaml`. +Simply invoke `micromamba create` with the `-f` option, providing an environment lockfile whose name ends with +`-lock.yml` or `-lock.yaml`; for instance: + +```bash +micromamba create -n my-env -f conda-lock.yml +``` ### setup-micromamba (setup-miniconda replacement) diff --git a/docs/source/user_guide/micromamba.rst b/docs/source/user_guide/micromamba.rst index ad1fc7640c..b49341cf54 100644 --- a/docs/source/user_guide/micromamba.rst +++ b/docs/source/user_guide/micromamba.rst @@ -268,6 +268,8 @@ These files are named ``conda-lock.yml`` by default, and look like: category: main optional: false +In order to YAML files to be considered as ``conda-lock`` files, their name must ends with ``-lock.yml`` or ``-lock.yaml``. + To install such a file with ``micromamba``, just pass the ``-f`` flag again: .. code::