> ## 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 repo service-accounts

## Usage

```bash theme={null}
anaconda repo service-accounts --channel <CHANNEL> [OPTIONS]
```

Comments

Replace \<CHANNEL> with the channel name.

## Description

Manages service accounts for channel access. List service account user IDs for a channel, list tokens, and create, edit, or delete tokens with optional name, channel scope, permission level, and max age in days.

## Options

Option

Default

Description

`--channel <CHANNEL>`

Channel name (required)

`--list-user-ids`

List service account user IDs for the channel

`--list-tokens`

List all service account tokens for the channel

`--create-token`

Create a new service account token

`--edit-token`

Edit an existing token

`--delete-token`

Delete a service account token

`--user-id <ID>`

Service account user ID

`--token-id <ID>`

Token ID (for edit/delete)

`--name <NAME>`

Token name

`--token-channels <LIST>`

Channels for token (for example, `channel1`, `channel2`)

`--permission <LEVEL>`

Permission: `read`, `write`, or `manage`

`--max-days <#>`

`30`

Maximum age in days for the token

`-h, --help`

Show help for this command

## Examples

**List service account tokens for a channel**

```bash theme={null}
anaconda repo service-accounts --channel my-channel --list-tokens
```

**Create a service account token**

```bash theme={null}
anaconda repo service-accounts --channel my-channel --create-token --name "CI" --permission read --max-days 90
```
