> ## 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.

# Anaconda Team Edition CLI

The Anaconda Team Edition CLI is used by both users and administrators to do the following:

* Install packages from private or authenticated channels
* Configure channels
* Upload assets
* Create mirrors

This topic provides guidance on the following actions:

* [Installing the conda repo CLI](#installing-the-conda-repo-cli)
* [Conda repo configuration](#conda-repo-configuration)
* [OAuth and SAML configuration](#oauth-and-saml-configuration)
* [Logging in](#logging-in)
* [Further assistance](#further-assistance)

## Installing the conda repo CLI

Install the Team Edition CLI (hereafter referred to as simply CLI) the `conda-repo-cli` package:

```sh theme={null}
conda install conda-repo-cli
```

<Note>
  The Team Edition administrators may also choose to mirror this package into a channel on the server. Contact your administors to determine if `conda-repo-cli` can be installed from an Team Edition channel.
</Note>

## Conda repo configuration

Follow these steps to configure your conda repo site:

* Use the following commands if you are using SSL:

  ```sh theme={null}
  # Replace <SITE_NAME> with the short tag you'll use to identify the fully qualified domain name.
  # Replace <DOMAIN> with your domain.
  conda repo config --set sites.<SITE_NAME>.url https://<DOMAIN>/api
  conda repo config --set default_site <SITE_NAME>

  # The following is an example of two sites, one for production and the second for development:
  # conda repo config --set sites.production.url https://prod.my-ate.company.com/api
  # conda repo config --set sites.development.url https://dev.my-ate.company.com/api
  ```

* Use the following commands if you are **not** using SSL:

  ```sh theme={null}
  # Replace <SITE_NAME> with the short tag you'll use to identify the fully qualified domain name.
  # Replace <DOMAIN> with your domain.
  conda repo config --set sites.<SITE_NAME>.url http://<DOMAIN>/api
  conda repo config --set default_site <SITE_NAME>
  ```

For example, `<SITE\_NAME>` may be anaconda-repo and `<DOMAIN>` may be anaconda-repo.company.com.

## OAuth and SAML configuration

If you are using OAuth or SAML, run the following command to go through the standard SAML authorization flow **after** configuring your site:

```sh theme={null}
conda repo config --set oauth2 true
```

when you run `conda repo login`, a browser window will open for you to log in to Team Edition. After login has completed, the window will display "Token Received".
You can then close the browser window and continue to use the CLI.

## Logging in

Run the following code to log in to Team Edition:

```sh theme={null}
conda repo login # You will be prompted to enter your Team Edition username and password
```

Now you will be able to install packages from private and authenticated channels you have access to.

## Further assistance

For a more robust view of conda repo commands, run the following command:

```sh theme={null}
conda repo --help
```

Similarly, appending `--help` or the shorthand `-h` to a command will provide you with further actions you can take, such as the following:

```sh theme={null}
conda repo mirror -h
conda repo channel -h
conda repo upload -h
```
