Commandsauth

ody auth github

Configure GitHub authentication credentials

Synopsis

ody auth github [--profile <name>]

Flags

FlagAliasTypeDefaultDescription
--profilestringdefaultNamed profile for storing credentials

Behavior

  1. Prompts for a GitHub personal access token.
  2. Validates that the token is non-empty.
  3. Saves the token under the selected profile in $XDG_DATA_HOME/ody/auth.json.
  4. Writes the credentials file with 0600 permissions.

If the prompt is cancelled, no changes are written.

Examples

Store credentials in the default profile:

ody auth github

Store credentials in a named profile:

ody auth github --profile work

On this page