Skip to content

gitid add

Create a new identity profile.

bash
gitid add work

When required values are missing and the terminal is interactive, GitID opens a guided form.

Flag-Based Usage

bash
gitid add work \
  --user "Work Name" \
  --email work@example.com \
  --github work-github \
  --ssh-key ~/.ssh/work_ed25519

Options

OptionDescription
--nameProfile name. Usually supplied as the positional argument.
--userGit user.name for commits.
--emailGit user.email for commits.
--githubGitHub username for gh auth switch.
--ssh-keySSH private key path for this profile.
--hostGit provider hostname. Defaults to github.com.
--host-aliasSSH host alias managed by GitID.
--generate-ssh-keyGenerate an ed25519 key if the configured key is missing.
--gh-authRun gh auth login after creating the profile.
--signingEnable GPG commit signing for this profile.
--gpg-keyGPG signing key id.

What Gets Stored

Profiles are stored locally in ~/.config/gitid/profiles.yaml.

GitID stores metadata only. It does not store GitHub tokens, passwords, or private key contents.

Released under the MIT License.