SQ(1)

πŸ’– SQ(1) β€” the sq manual, but make it cute πŸ’–

okay bestie, so this page is from the sq manual (User Commands, in case you were wondering) and it's all about one lil subcommand, sq-key-userid-add. grab a strawberry πŸ“ and let's go.


✨ NAME ✨

sq-key-userid-add β€” add a user ID πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

sq key userid add [OPTIONS]

🌸 DESCRIPTION 🌸

Add a user ID. that's it, that's the whole vibe. adding identity info to a key, iconic behavior.

a user ID can have a name, like Juliet, or an email address, like <juliet@example.org>. bestie, historical tea β˜•: back in the day a name and an email address were usually smooshed into a single user ID, like Juliet <juliet@example.org>. but here's the thing β€” user IDs that mix different kinds of info (name AND email, together) are lowkey harder to reason about 🧠😡, so nowadays the preferred move is to use distinct user IDs for the name and for the email address. separate. clean. slay.

also important: sq key userid add respects the reference time set by the top-level --time argument ⏰. it sets the creation time of the user ID's binding signature to whatever time you specified. fr fr.


✨ OPTIONS ✨

πŸŽ€ Subcommand options

  • --allow-non-canonical-userids β€” don't reject user IDs that aren't in canonical form. icoβ€” canonical user IDs are of the form Name (Comment) <localpart@example.org>. so if it's not shaped like that, this flag is your "it's fine, let it in" pass 🫢.
  • --cert=FINGERPRINT|KEYID β€” add the user ID to the key with the specified fingerprint or key ID πŸ”‘.
  • --cert-email=EMAIL β€” add the user ID to the key where a user ID includes the specified email address πŸ“§.
  • --cert-file=PATH β€” add the user ID to the key read from PATH πŸ“‚.
  • --cert-userid=USERID β€” add the user ID to the key with the specified user ID 🏷️.
  • --email=ADDRESS β€” add an email address as user ID to the key βœ‰οΈ.
  • --name=NAME β€” add a name as user ID to the key πŸͺͺ.
  • --output=FILE β€” write to the specified FILE πŸ“.
    • if you don't specify it, and the certificate was read from the certificate store, it imports the modified certificate into the cert store.
    • if you don't specify it, and the certificate was read from a file, it writes the modified certificate to stdout. (so like, careful where that goes πŸ‘€)
  • --userid=USERID β€” add a user ID to the key.
    • this user ID can combine name and email address, can optionally contain a comment, or even be free-form if --allow-non-canonical-userids is given. but bestie, remember β€” user IDs that include different information such as name and email address are more difficult to reason about, so using distinct user IDs for name and email address is preferred nowadays.
    • in doubt, prefer --name and --email. like genuinely, that's the move πŸ’―.

🌈 Global options

  • see sq(1) for a description of the global options. yes girl, go read the parent page, it's giving main character energy πŸ‘‘

πŸ’« EXAMPLES πŸ’«

# Add a new user ID to Alice's key.

sq key userid add --cert \
       EB28F26E2739A4870ECC47726F0073F60FD0CBF0 --name Alice \
       --email alice@work.example.com

πŸ‘€ SEE ALSO πŸ‘€


πŸ† VERSION πŸ†

1.5.0


okay that's the whole page, you ate that πŸ½οΈπŸ’–. this absolute banger of a manpage is brought to you by Sequoia PGP, version 1.5.0 β€” literally the same version number as the page itself, matching set, obsessed βœ¨πŸ‘‘πŸ’œ. go add some user IDs bestie, and remember: --name and --email, not the combo. periodt. πŸ’…πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from