> ## 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 channel share

## Usage

```bash theme={null}
anaconda channel share <USER> --channel <CHANNEL> [OPTIONS]
```

## Description

Shares a channel with a user, granting them access to the channel.

You can specify channels in two ways:

* **Simple name with `--namespace`**: `--channel my-channel --namespace my-org`
* **Combined format**: `--channel my-org/my-channel`

You can share multiple channels by specifying `--channel` multiple times. Use `--unshare` to revoke access.

> [!NOTE]
>
> Sharing is an anaconda.com (repository) concept. This command does not apply to anaconda.org channels.

## Arguments

Argument

Description

`<USER>`

User ID, email, or username to share with

## Options

Option

Description

`-c, --channel <CHANNEL>`

Required. Channel(s) to share in `namespace/channel` or `channel` format. Can be specified multiple times.

`-n, --namespace <TEXT>`

Namespace for the channel (alternative to `namespace/channel` format)

`-r, --access <ACCESS>`

Access level to grant: `viewer` (read access) or `collaborator` (write access). Defaults to `viewer`.

`--unshare`

Revoke access instead of granting it

`-h, --help`

Show help for this command

### Access levels

* `viewer`: Read-only access to the channel and its packages
* `collaborator`: Read and write access, allowing the user to upload packages

## Examples

**Share a channel with read access**

```bash theme={null}
anaconda channel share user@example.com --channel my-org/my-channel
```

**Share a channel with write access**

```bash theme={null}
anaconda channel share colleague --channel my-channel --namespace my-org --access collaborator
```

**Share multiple channels**

```bash theme={null}
anaconda channel share user@example.com --channel my-org/channel-1 --channel my-org/channel-2
```

**Revoke access to a channel**

```bash theme={null}
anaconda channel share user@example.com --channel my-org/my-channel --unshare
```
