> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Environments

Anaconda Server enables you to upload, move, copy, share, and download an environment yaml file. An environment is a folder or directory that contains a specific collection of conda packages and their dependencies. This allows them to be maintained and run separately without interference from each other.

For example, you may use a conda environment for only Python 2 and Python 2 packages and maintain another conda environment with only Python 3 and Python 3 packages.

This topic provides guidance on the following actions:

* [Uploading an environment.yml file](#uploading-an-environment-yml-file)
* [Viewing environment dependencies](#viewing-environment-dependencies)
* [Viewing environment metadata](#viewing-environment-metadata)
* [Viewing environment vulnerabilities](#viewing-environment-vulnerabilities)
* [Managing an environment](#managing-an-environment)

## Uploading an environment.yml file

1. [Create your environment file](https://docs.conda.io/projects/conda/en/latest/user-guide/tasks/manage-environments.html#create-env-file-manually)

2. Click the green dropdown button in the top right corner, and then click **Upload File**.

   <Frame>
     <img src="https://mintcdn.com/anaconda-29683c67/kBuj3mPdZoBk8YoG/images/uploadfile.png?fit=max&auto=format&n=kBuj3mPdZoBk8YoG&q=85&s=6c1bdefe20e10f398b26ba019c5870c8" alt="" width="1830" height="1068" data-path="images/uploadfile.png" />
   </Frame>

3. On the **Upload a File** screen, select the type of file you’d like to upload from the dropdown.

4. Click the **Browse** button to find your file and add it to the page.

5. Click **Upload**.

## Viewing environment dependencies

On the **Environments** tab, click anywhere on an environment to view its details.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/kBuj3mPdZoBk8YoG/images/viewenv.png?fit=max&auto=format&n=kBuj3mPdZoBk8YoG&q=85&s=7b826eb9b60b7f1f5e00dc5c9bbabf95" alt="" width="1674" height="1532" data-path="images/viewenv.png" />
</Frame>

## Viewing environment metadata

Click the information icon to view a file’s metadata.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/opbTXGcYjx4zM8zO/images/envmeta.png?fit=max&auto=format&n=opbTXGcYjx4zM8zO&q=85&s=ffe47d3ad970a80beee080f7e39cbd1c" alt="" width="1676" height="812" data-path="images/envmeta.png" />
</Frame>

You will be presented with the environment’s metadata.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/opbTXGcYjx4zM8zO/images/envmetadata.png?fit=max&auto=format&n=opbTXGcYjx4zM8zO&q=85&s=5354edcb27f2b9d58c30f6e92ae7dde9" alt="" width="1734" height="1504" data-path="images/envmetadata.png" />
</Frame>

## Viewing environment vulnerabilities

<Note>
  Viewing environment vulnerabilities is an early access feature for *administrators only*, and currently only operates when used in your base environment. This feature will be expanded and made more accessible in upcoming versions of Anaconda Server.
</Note>

Use `conda-audit` to scan your conda environment and show the vulnerabilities associated with your projects.

Open a terminal and activate your base environment.

```sh theme={null}
conda activate base
```

Install `conda-audit`.

```sh theme={null}
conda install conda-audit
```

Run the command:

```sh theme={null}
# Replace <ENV-NAME> with the name of your environment. Make sure your spelling is exact.
conda-audit -n <ENV-NAME>
```

A list of packages affected by CVEs and the name and score of the CVE is displyed. Packages that have been curated by Anaconda display a checkmark next to their name.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/6fJRxAwYs9izUc34/images/conda-audit-return.png?fit=max&auto=format&n=6fJRxAwYs9izUc34&q=85&s=7dbfb14867ec6de49c8b48644b0d7310" alt="" width="2318" height="1196" data-path="images/conda-audit-return.png" />
</Frame>

To produce a machine readable set of this data, run the command:

```sh theme={null}
# Replace <ENV-NAME> with the name of your environment. Make sure your spelling is exact.
conda-audit -n <ENV-NAME> --json
```

A list of packages and CVEs in JSON format is displayed.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/6fJRxAwYs9izUc34/images/conda-audit-json.png?fit=max&auto=format&n=6fJRxAwYs9izUc34&q=85&s=63d1f4b2a42ec53ca1c7f36837c61a25" alt="" width="2318" height="1398" data-path="images/conda-audit-json.png" />
</Frame>

## Managing an environment

Select the checkbox next to an environment. Then, click the dropdown next to the search bar. You may then move, copy, or delete the environment.

<Frame>
  <img src="https://mintcdn.com/anaconda-29683c67/opbTXGcYjx4zM8zO/images/envmanage.png?fit=max&auto=format&n=opbTXGcYjx4zM8zO&q=85&s=4312203d5be0360ba647452f3b8ba74e" alt="" width="2180" height="898" data-path="images/envmanage.png" />
</Frame>
