XMPPC(1)

πŸ“¦
version 0.1.2 Β· 4 versions
, in alpine 3.24, debian bookworm, debian trixie, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

okay so bestie, welcome to XMPPC(1) β€” the XMPP command line tool, and honestly? iconic. We’re gonna go through every flag, mode, file, and tiny little detail together, no cap. πŸ’–βœ¨

🌸 NAME 🌸

xmppc β€” XMPP Command line Tool. That’s the whole name, and it’s giving β€œsmall binary, big group-chat energy.” πŸ’…

πŸ¦‹ SYNOPSIS πŸ¦‹

xmppc [OPTIONS] -m MODE COMMAND [<args>...]

xmppc [-a ACCOUNT] [-j JID] [-p PASSWORD] -m MODE COMMAND [<args>...]

✨ DESCRIPTION ✨

okay so xmppc is an XMPP command line tool. You need an XMPP Account to use it β€” no account, no slay. The account info can be defined via the command line argument -j JID.

If no password is provided via -p PASSWORD, xmppc will ask the user to enter the password. Another option is to define 1 or more accounts within a configuration file, and -a ACCOUNT can be used to select the account. 🫢

The argument -m MODE defines the xmppc MODE which should be used (roster, message, pgp, omemo, openpgp, monitor, bookmark, mam, discovery). The COMMAND and the args required by the COMMAND depend on the chosen MODE. iykyk ✨

πŸ’… OPTIONS πŸ’…

  • -a, --attribute ACCOUNT β€” ACCOUNT is a name of a xmpp account defined within the configuration file. pick your account, bestie πŸŽ€
  • -j, --jid JID β€” JID of the XMPP Account. literally your XMPP identity πŸ’–
  • -p, --pwd PWD β€” Password of the XMPP Account. secret secret, don’t tell anyone πŸ™ˆ
  • -v VERBOSE, Verbose flags. -v[v[v[v]]] β€” verbosity flags, bestie: -v is WARN, -vv is INFO, --vvv is DEBUG, -vvvv is TRACE. yes, that --vvv is exactly what the page says β€” don’t come for me 😭
  • --help β€” Print program version number and help. short, sweet, helpful 🫢

🌈 MODES AND COMMANDS 🌈

okay, xmppc modes. Pick your main character with -m, then run the command. ✨

  • -m roster β€” The Roster mode can be used to provide information of the xmpp account’s roster. The roster is the XMPP list of contacts. πŸ‘‘
    • list β€” List all contacts
    • export β€” Exports all contacts
  • -m message β€” The message mode can be used to send unencrypted messages to another xmpp account. πŸ’Œ
    • chat <jid> <message> β€” Sending unencrypted message to jid
  • -m pgp β€” PGP Mode (XEP-0027) πŸ”
    • chat <jid> <message> β€” Sending pgp encrypted message to jid
  • -m omemo β€” OMEMO Mode (XEP-0384) πŸ¦‹
    • list β€” List the device IDs and fingerprints
  • -m openpgp β€” openpgp mode (XEP-0373) πŸ”₯
    • signcrypt <jid> <message> β€” Sending pgp signed and encrypted message to jid
  • -m monitor β€” Monitot mode. yes, β€œMonitot” is exactly how the page spells it, bestie 😭
    • stanza β€” Stanza Monitor
    • monitor β€” microblog Monitor microblog (XEP-0277)
  • -m bookmark β€” Bookmark mode (XEP-0048) πŸŽ€
    • list β€” List bookmarks
  • -m mam β€” Message Archive Management (XEP-0313) πŸ—‚οΈ
    • list <jid> β€” List messages from <jid>
  • -m discovery β€” Service Discovery (XEP-0030) πŸ”Ž
    • info <jid> β€” info request for <jid>
    • item <jid> β€” item request for <jid>

πŸ“ ENVIRONMENT VARIABLES πŸ“

the page lists exactly one env var, and honestly? she’s lowkey carrying the whole config vibe:

  • HOME β€” that’s the one, bestie 🏠

πŸ”₯ EXAMPLES πŸ”₯

run these exactly as written; the quotes and flags matter, bestie:

xmppc --jid user@domain.tld --pwd "secret" --mode roster list
xmppc --jid user@domain.tld --mode pgp chat friend@domain.tld "Hello"
xmppc -a account1 --mode discovery item conference@domain.tld
xmppc --mode bookmark list

πŸŽ€ FILES πŸŽ€

Configuration file to setup accounts.

~/.config/xmppc.conf β€” Example:

[default]
jid=account1@domain.tld
pwd=password1

[account2]
jid=account2@domain.tld

[account3]
jid=account3@domain.tld
pwd=password3

πŸ’€ EXIT STATUS πŸ’€

  • 0 β€” Success. slay. ✨
  • 1 β€” Failure. not slay. 😭

πŸ™ˆ BUGS πŸ™ˆ

See https://codeberg.org/Anoxinon_e.V./xmppc/issues β€” that’s the issue tracker, bestie. πŸ›

πŸ‘‘ AUTHOR πŸ‘‘

  • DebXWoody (OpenPGP: A602F76893F138B4A8EFDDD5C2DC916F35751C24)

🌟 RESOURCES 🌟

πŸ’œ COPYING πŸ’œ

Copyright (C) 2020 Anoxinon e.V. Free use of this software is granted under the terms of the GNU General Public License (GPL).


okay that’s the whole page β€” stay hydrated, stay iconic, and may your stanzas always land. 🫢 This was the XMPPC(1) manual page, dated 05/16/2020 πŸŽ€βœ¨