# Basic syntax:
conda activate environment_to_update # Activate environment, can be base
conda env update --file environment.yml # Update env from .yml file
# Basic syntax:
conda activate environment_to_export # Activate environment, can be base
conda env export > environment.yml # Export the environment to .yml
$ conda activate earth-analytics-python
$ conda env update -f environment.yml
conda env update --name myenv --file environment.yml --prune #--prune uninstalls dependencies which were removed from environment.yml