# Basic syntax: conda activate environment_to_export # Activate environment, can be base conda env export > environment.yml # Export the environment to .yml