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

# Managing channels with the CLI

You can create, view, and manage channels in Package Security Manager from the command line. For general information about channels, see [Channels](https://anaconda.com/docs/psm-on-prem/6.8.0/user/channel.md).

## Viewing channels

To view a list of channels you own and channels shared with you through group membership:

```sh theme={null}
conda repo channel --list
```

> [!NOTE]
>
> Public channels do not appear in the list, but you can still access all public channels by default.

## Viewing a channel's packages

To view the packages available on a specific channel:

```sh theme={null}
conda repo channel --list-packages <CHANNEL_NAME>
```

Comments

Replace \<CHANNEL\_NAME> with the name of the channel.

## Viewing a channel's files

To view the files available on a specific channel:

```sh theme={null}
conda repo channel --list-files <CHANNEL_NAME>
```

Comments

Replace \<CHANNEL\_NAME> with the name of the channel.

> [!TIP]
>
> To view files of a specific artifact family (for example, general artifacts), use the `--family` flag:
>
> ```sh theme={null}
> conda repo channel --list-files <CHANNEL_NAME> --family <FAMILY>
> ```
>
> Comments
>
> Replace \<CHANNEL\_NAME> with the name of the channel.\\
>
> Replace \<FAMILY> with the artifact family type (`conda`, `python`, `cran`, `anaconda_project`, `anaconda_env`, `notebook`, `gra`).

## Viewing a channel's details

To view the details of a channel:

```sh theme={null}
conda repo channel --show <CHANNEL_NAME>
```

Comments

Replace \<CHANNEL\_NAME> with the name of the channel.

This returns the channel's name, description, privacy permissions, number of artifacts, download count, mirror count, subchannel count, creation date, last update date, and owners.

## Channel privacy permissions

You can set the privacy permissions of your channels at any time.

To make a channel **private** (only you can view it):

```sh theme={null}
conda repo channel --lock <CHANNEL_NAME>
```

Comments

Replace \<CHANNEL\_NAME> with your channel name.

To make a channel **authenticated** (only authenticated users can view it):

```sh theme={null}
conda repo channel --soft-lock <CHANNEL_NAME>
```

Comments

Replace \<CHANNEL\_NAME> with your channel name.

To make a private or authenticated channel **public**:

```sh theme={null}
conda repo channel --unlock <CHANNEL_NAME>
```

Comments

Replace \<CHANNEL\_NAME> with your channel name.

## Creating a channel

To create a public channel:

```sh theme={null}
conda repo channel --create <CHANNEL_NAME>
```

Comments

Replace \<CHANNEL\_NAME> with a name for your channel.

## Creating a subchannel

To create a subchannel within an existing channel:

```sh theme={null}
conda repo channel --create <CHANNEL>/<SUBCHANNEL_NAME>
```

Comments

Replace \<CHANNEL> with the channel you want to contain your subchannel.\\

Replace \<SUBCHANNEL\_NAME> with the name for your subchannel.

## Deleting a channel

To delete a channel:

```sh theme={null}
conda repo channel --remove <CHANNEL_NAME>
```

Comments

Replace \<CHANNEL\_NAME> with your channel name.

## Related

* [Channels](https://anaconda.com/docs/psm-on-prem/6.8.0/user/channel.md): Managing channels through the GUI
* [`channel` command reference](https://anaconda.com/docs/psm-on-prem/6.8.0/cli/commands/channel): Full options and flags
