rux login

Purpose

Authenticate to a Rux package registry

Synopsis

rux login [options]

Behavior

Reads a registry token from stdin so it does not enter shell history or the process list, verifies it when the registry supports verification, and stores it per registry with owner-only permissions.

Arguments

This command accepts no operands.

Options

OptionDescription
--registry <url>Registry API base URL to authenticate to

Global options may appear before or after the command. See Global options.

Output and exit status

Primary results are written to stdout. Progress, warnings, and errors are written to stderr.

Success exits 0, invalid command-line usage exits 2, and compiler, validation, filesystem, network, or generation failures exit 1 unless stated otherwise above.

Examples

rux login
rux login --registry http://localhost:8080

Environment variables

RUX_REGISTRY_URL selects the registry when --registry is absent.

RUX_TOKEN overrides a stored token for commands that authenticate.

The global color environment behavior is described under Global options.