Skip to content

Command Reference

Emiel Kollof edited this page Mar 25, 2026 · 11 revisions

Command Reference

Complete list of commands provided by weechat-xmpp-improved.


Account management

/account list
/account add <name> <jid> <password>
/account connect <name>
/account disconnect <name>
/account reconnect <name>
/account delete <name>
/account register <name> <jid> <password>   # create account on server (XEP-0077)
/account unregister <name>                  # cancel account on server (XEP-0077)
/account password <name> <new-password>     # change password in-band (XEP-0077)

Messaging

Command Description
/enter <jid> Join a MUC room
/join <jid> Alias for /enter
/open <jid> Open a direct chat (PM)
/query <jid> [msg] Alias for /open; optional opening message
/msg <text> Send a message in the current buffer
/me <text> Send a /me action (XEP-0245)
/invite <jid> [reason] Invite a user to the current MUC (XEP-0249)
/selfping Verify MUC membership (XEP-0410)
/edit Interactive picker: choose a sent message to correct (XEP-0308)
/edit-to <id> <text> Correct a specific message by ID (used by /edit picker)
/retract Interactive picker: choose a sent message to delete (XEP-0424)
/moderate [reason] Interactive picker: choose a MUC message to moderate (XEP-0425)
/react <emoji> React to the last received message (XEP-0444)
/reply Interactive picker: choose a message to reply to (XEP-0461)
/reply <text> Reply to the last received message (XEP-0461)
/reply-to <id> <text> Reply to a specific message by ID (used by /reply picker)
/spoiler [hint: <hint> :: ] <text> Send a spoiler message (XEP-0382)
/buzz Send attention request to current PM contact (XEP-0224)
/whois [jid] Retrieve vCard (XEP-0054 / XEP-0292)
/setvcard <field> <value> Publish a vCard field (XEP-0054)
/setavatar <filepath> Publish avatar image (XEP-0084)

MUC room management

Command Description
/kick <nick> [reason] Kick an occupant (requires moderator role)
/ban <jid> [reason] Ban a user by JID (requires admin/owner role)
/topic [text] Set or clear the room topic
/nick [newnick] Change your nickname in the current MUC

Nicklist prefixes (XEP-0045)

Affiliation takes precedence over role when both apply.

Prefix Role / Affiliation Meaning
~ affiliation: owner Room owner — full control
& affiliation: admin Administrator — can grant/revoke roles
@ role: moderator Can kick and mute participants
% affiliation: member Registered member (voice in members-only rooms)
+ role: participant Standard occupant with voice
? role: visitor Read-only in moderated rooms
! affiliation: outcast Banned from the room
. (none) No role or affiliation set yet

Privacy & blocking (XEP-0191)

Command Description
/block <jid> [jid ...] Block one or more JIDs
/unblock [jid ...] Unblock; no arguments unblocks all
/blocklist List all blocked JIDs

Encryption

Command Description
/omemo Enable OMEMO for the current buffer
/omemo check Verify OMEMO bundle is published
/omemo republish Republish OMEMO:2 + legacy nodes
/omemo status Show device ID and status
/omemo reset-keys Reset key database (forces renegotiation)
/omemo fetch [jid] [device-id] Force devicelist/bundle refresh
/omemo kex [jid] [device-id] Force key transport now
/pgp [keyid|status|reset] Manage PGP encryption
/plain Disable encryption (use plaintext)

File sharing

Command Description
/upload Interactive file picker
/upload <path> Upload a file directly (XEP-0363, XEP-0447)

Archive & history

Command Description
/mam [days] Fetch MAM history (default: 7 days; XEP-0313)

Service discovery & roster

Command Description
/disco [jid] Discover services and features (XEP-0030)
/adhoc <jid> [node] [id] [field=value ...] Execute ad-hoc commands (XEP-0050)
/roster Display contact list
/roster add <jid> [name] Add a contact
/roster del <jid> Remove a contact
/list [keywords] Search public MUC rooms (XEP-0433)
/bookmark List PEP bookmarks (XEP-0402)
/bookmark add [jid] [name] Add a bookmark
/bookmark del <jid> Remove a bookmark
/bookmark autojoin <jid> <on|off> Toggle autojoin

PubSub feed reader (XEP-0060)

Command Description
/feed <service-jid> Fetch all subscribed nodes
/feed <service-jid> --all Discover and fetch all nodes via disco#items
/feed <service-jid> <node> Fetch a specific node into a dedicated buffer
/feed ... --limit N Override the per-node item limit (default: 20)
/feed ... --before <id> RSM paging: fetch items older than <id>

Microblogging (XEP-0277 / XEP-0472)

Command Description
/feed post <service> <node> <text> Publish a microblog post as an Atom entry
/feed reply <service> <node> <item-id> <text> Threaded reply via thr:in-reply-to
/feed retract <service> <node> <item-id> Retract (delete) a published post

Network & status

Command Description
/ping [jid] Send XMPP ping; defaults to server (XEP-0199)
/mood [mood [text]] Publish mood via PEP (XEP-0107)
/activity [category[/specific] [text]] Publish activity via PEP (XEP-0108)
/xml <stanza> Send raw XML (advanced/debug)
/xmpp Show plugin version
/trap Trigger debug breakpoint (developers only)

Interactive picker key bindings

Several commands open an in-buffer interactive picker when invoked without arguments (/edit, /retract, /moderate, /reply, /upload):

Key Action
/ Navigate up/down
Enter Confirm selection
q / Esc Cancel and return to previous buffer

Clone this wiki locally