Skip to main content

jnc auth

Manages authentication credentials for private conda channels. Credentials are stored in the system’s authentication storage and are used automatically when accessing authenticated channels.

Subcommands

jnc auth login

Stores authentication credentials for a host.
jnc auth login [OPTIONS] <HOST>

Arguments

ArgumentDescription
<HOST>The hostname to authenticate with (e.g., repo.example.com).

Options

OptionDescription
--token <TOKEN>Use a token for authentication (e.g., a Quetz API key).
--username <USER>Username for basic HTTP authentication.
--password <PASS>Password for basic HTTP authentication.
--conda-token <TOKEN>Use a conda token for authentication (token is included in the URL path).

jnc auth logout

Removes stored credentials for a host.
jnc auth logout <HOST>

Arguments

ArgumentDescription
<HOST>The hostname to remove credentials for.

Examples

Authenticate with a token:
jnc auth login repo.example.com --token my-secret-token
Authenticate with username and password:
jnc auth login repo.example.com --username user --password pass
Authenticate with a conda token:
jnc auth login repo.example.com --conda-token t-abc123
Remove stored credentials:
jnc auth logout repo.example.com