Skip to main content

Usage

anaconda repo service-accounts --channel <CHANNEL> [--list-user-ids] [--list-tokens] [--create-token] [--edit-token] [--delete-token] [--user-id <ID>] [--token-id <ID>] [--name <NAME>] [--token-channels <LIST>] [--permission read|write|manage] [--max-days <#>]
Replace <CHANNEL> with the channel name (required).
Replace <ID> with the user ID or token ID when listing or managing.
Replace <NAME> with the token name. Replace <LIST> with channel names for token scope. Replace <#> with max token age in days.

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
anaconda repo service-accounts --channel my-channel --list-tokens
Create a service account token
anaconda repo service-accounts --channel my-channel --create-token --name "CI" --permission read --max-days 90