Commandsauth
ody auth github
Configure GitHub authentication credentials
Synopsis
ody auth github [--profile <name>]Flags
| Flag | Alias | Type | Default | Description |
|---|---|---|---|---|
--profile | string | default | Named profile for storing credentials |
Behavior
- Prompts for a GitHub personal access token.
- Validates that the token is non-empty.
- Saves the token under the selected profile in
$XDG_DATA_HOME/ody/auth.json. - Writes the credentials file with
0600permissions.
If the prompt is cancelled, no changes are written.
Examples
Store credentials in the default profile:
ody auth githubStore credentials in a named profile:
ody auth github --profile workRelated
ody auth-- Auth command overviewody auth list-- View configured profilesody auth jira-- Configure Jira credentials