docs/iamb.1
488 lines · 14904 bytes
1.\" iamb(1) manual page
2.\"
3.\" This manual page is written using the mdoc(7) macros. For more
4.\" information, see <https://manpages.bsd.lv/mdoc.html>.
5.\"
6.\" You can preview this file with:
7.\" $ man ./docs/iamb.1
8.Dd Oct 21, 2026
9.Dt IAMB 1
10.Os
11.Sh NAME
12.Nm iamb
13.Nd a terminal-based client for Matrix for the Vim addict
14.Sh SYNOPSIS
15.Nm
16.Op Fl hV
17.Op Fl P Ar profile
18.Op Fl C Ar dir
19.Op Ar URI
20.Sh DESCRIPTION
21.Nm
22is a client for the Matrix communication protocol.
23It provides a terminal user interface with familiar Vim keybindings, and
24includes support for multiple profiles, threads, spaces, notifications,
25reactions, custom keybindings, and more.
26.Pp
27This manual page includes a quick rundown of the available commands in
28.Nm .
29For example usage and a full description of each one and its arguments, please
30refer to the full documentation online.
31.Sh OPTIONS
32.Bl -tag -width Ds
33.It Fl P , Fl Fl profile
34The profile to start
35.Nm
36with.
37If this flag is not specified,
38then it defaults to using
39.Sy default_profile
40(see
41.Xr iamb 5 ) .
42.It Fl C , Fl Fl config-directory
43Path to the directory the configuration file is located in.
44.It Fl h , Fl Fl help
45Show the help text and quit.
46.It Fl V , Fl Fl version
47Show the current
48.Nm
49version and quit.
50.It Ar URI
51A matrix uri or matrix.to link to open on startup. Specified at
52.Lk https://spec.matrix.org/latest/appendices/#uris
53.El
54
55.Sh "GENERAL COMMANDS"
56.Bl -tag -width Ds
57.It Sy ":chats"
58View a list of joined rooms and direct messages.
59.It Sy ":dms"
60View a list of direct messages.
61.It Sy ":logout [user id]"
62Log out of
63.Nm .
64.It Sy ":rooms"
65View a list of joined rooms.
66.It Sy ":spaces"
67View a list of joined spaces.
68.It Sy ":spaces toplevel"
69View a list of joined spaces that are not children of other joined spaces.
70.It Sy ":unreads"
71View a list of unread rooms.
72.It Sy ":unreads clear"
73Mark all rooms as read.
74.It Sy ":mentions"
75View a list of rooms with mentions of the current user.
76.It Sy ":invites"
77View a list of rooms you are invited to.
78.It Sy ":theme [name]"
79Change the current theme.
80.It Sy ":welcome"
81View the startup Welcome window.
82.It Sy ":forget"
83Remove all left rooms from the internal database.
84.El
85.Sh "E2EE COMMANDS"
86.Bl -tag -width Ds
87.It Sy ":keys export [path] [passphrase]"
88Export and encrypt keys to
89.Pa path .
90.It Sy ":keys import [path] [passphrase]"
91Import and decrypt keys from
92.Pa path .
93Passphrases containing spaces or command metacharacters should be quoted.
94Inside double quotes, escape
95.Ql \
96and
97.Ql "
98with a backslash.
99For unquoted arguments, escape spaces,
100.Ql \ ,
101.Ql # ,
102.Ql % ,
103.Ql | ,
104and
105.Ql " .
106.It Sy ":verify"
107View a list of ongoing E2EE verifications.
108.It Sy ":verify accept [key]"
109Accept a verification request.
110.It Sy ":verify emoji [key]"
111Transition a request to use interactive emoji verification.
112.It Sy ":verify cancel [key]"
113Cancel an in-progress verification.
114.It Sy ":verify confirm [key]"
115Confirm an in-progress verification.
116.It Sy ":verify mismatch [key]"
117Reject an in-progress verification due to mismatched Emoji.
118.It Sy ":verify request [user id]"
119Request a new verification with the specified user.
120.It Sy ":verify recover [recovery key]"
121Recover the encryption secrets from the backup on your homeserver, verifying this session.
122.El
123
124.Sh "MESSAGE COMMANDS"
125.Bl -tag -width Ds
126.It Sy ":message"
127View more information about the focused message.
128.It Sy ":download [path]"
129Download an attachment from the selected message and save it to the optional path.
130.It Sy ":open [path]"
131Download and then open an attachment, or open a link in a message.
132.It Sy ":edit"
133Edit the selected message.
134.It Sy ":editor"
135Open an external
136.Ev $EDITOR
137to compose a message.
138.It Sy ":react [shortcode]"
139React to the selected message with an Emoji.
140.It Sy ":unreact [shortcode]"
141Remove your reaction from the selected message.
142When no arguments are given, remove all of your reactions from the message.
143.It Sy ":redact [reason]"
144Redact the selected message with the optional reason.
145.It Sy ":pin"
146Pin the selected message to the room.
147.It Sy ":unpin"
148Unpin the selected message from the room.
149.It Sy ":reply"
150Reply to the selected message.
151.It Sy ":cancel"
152Cancel the currently drafted message including replies.
153.It Sy ":replied"
154Go to the message the current message replied to.
155.It Sy ":upload [path]"
156Upload an attachment and send it to the currently selected room.
157.El
158
159.Sh "ROOM COMMANDS"
160.Bl -tag -width Ds
161.It Sy ":create [arguments]"
162Create a new room. Arguments can be
163.Dq ++alias=[alias] ,
164.Dq ++public ,
165.Dq ++space ,
166and
167.Dq ++encrypted .
168.It Sy ":follow next"
169Follow the tombstone information to the upgraded room.
170.It Sy ":follow previous"
171Follow the room creation information to the pre-upgraded room.
172.It Sy ":ignore set [user]"
173Add a user to your account's ignore list.
174.It Sy ":ignore unset [user]"
175Remove a user from your account's ignore list.
176.It Sy ":ignore show"
177Show all users in your account's ignore list.
178.It Sy ":invite accept"
179Accept an invitation to the currently focused room.
180.It Sy ":invite reject"
181Reject an invitation to the currently focused room.
182.It Sy ":invite send [user]"
183Send an invitation to a user to join the currently focused room.
184.It Sy ":join"
185Join the focused preview room.
186.It Sy ":join [room]"
187Join a room or open it if you are already joined.
188This accepts a room id, room alias, user id, matrix uri, or matrix.to link.
189If the argument refers to a user, a dm room with them is opened/created.
190.It Sy ":knock"
191Request to join the focused preview room.
192.It Sy ":knock accept [user]"
193Accept a knock from the specified user in the currently focused room.
194.It Sy ":knock ban [user] [reason]"
195Reject a knock from the specified user to the currently focused room, and ban them with an optional reason.
196.It Sy ":knock reject [user] [reason]"
197Reject a knock from the specified user to the currently focused room with an optional reason.
198.It Sy ":knock send [room] [reason]"
199Send a request to join a room with an optional reason.
200.It Sy ":leave"
201Leave the currently focused room.
202.It Sy ":members"
203View a list of members of the currently focused room.
204.It Sy ":pinned"
205View a list of pinned messages in the currently focused room.
206Select a message to jump to it in the room.
207.It Sy ":room access set [rule]"
208Set the join rules for the room to control who can access it.
209Possible values for the
210.Sy rule
211argument are
212.Dq invite ,
213.Dq knock ,
214.Dq knock-restricted ,
215.Dq public ,
216and
217.Dq restricted .
218The
219.Dq knock-restricted
220and
221.Dq restricted
222values allow additional
223.Sy ++members=[room]
224arguments to specify rooms (and spaces) whose members are allowed to join without an invite or knocking.
225If a room alias is given instead of an id, it is resolved immediately.
226.It Sy ":room access unset"
227Set the room to being invite-only so that those not already members cannot join.
228.It Sy ":room access show"
229Show the current join rules for the room.
230.It Sy ":room dm set"
231Mark the currently focused room as a direct message.
232.It Sy ":room dm unset"
233Mark the currently focused room as a normal room.
234.It Sy ":room name set [name]"
235Set the name of the currently focused room.
236.It Sy ":room name unset"
237Unset the name of the currently focused room.
238.It Sy ":room unread set"
239Mark the currently focused room as unread.
240.It Sy ":room unread unset"
241Mark the currently focused room as read.
242.It Sy ":room unread clear"
243Alias for
244.Sy :room unread unset .
245.It Sy ":room version show"
246Show the Matrix version for this room.
247.It Sy ":room version upgrade [version] [++creator=additional creator...]"
248Upgrade the Matrix version for this room to the specified version.
249Note that room upgrading in Matrix works by creating a new room that everyone else will then need to join.
250.It Sy ":room notify set [level]"
251Set a notification level for the currently focused room.
252Valid levels are
253.Dq mute ,
254.Dq mentions ,
255.Dq keywords ,
256and
257.Dq all .
258Note that
259.Dq mentions
260and
261.Dq keywords
262are aliases for the same behaviour, and the room will be labeled
263.Dq Calmed
264in room lists.
265.It Sy ":room notify unset"
266Unset any room-level notification configuration.
267.It Sy ":room notify show"
268Show the current room-level notification configuration.
269If the room is using the account-level default, then this will print
270.Dq default .
271.It Sy ":room tag set [tag]"
272Add a tag to the currently focused room.
273.It Sy ":room tag unset [tag]"
274Remove a tag from the currently focused room.
275.It Sy ":room topic set [topic]"
276Set the topic of the currently focused room.
277.It Sy ":room topic unset"
278Unset the topic of the currently focused room.
279.It Sy ":room topic show"
280Show the topic of the currently focused room.
281.It Sy ":room alias set [alias]"
282Create and point the given alias to the room.
283.It Sy ":room alias unset [alias]"
284Delete the provided alias from the room's alternative alias list.
285.It Sy ":room alias show"
286Show alternative aliases to the room, if any are set.
287.It Sy ":room id show"
288Show the Matrix identifier for the room.
289.It Sy ":room canon set [alias]"
290Set the room's canonical alias to the one provided, and make the previous one an alternative alias.
291.It Sy ":room canon unset [alias]"
292Delete the room's canonical alias.
293.It Sy ":room canon show"
294Show the room's canonical alias, if any is set.
295.It Sy ":room history show"
296Show the history visibility setting for the current room.
297.It Sy ":room history set [mode]" .\" XXX: get options
298Set the history visibility for the current room.
299Valid modes are
300.Dq invited
301(new events after invitation),
302.Dq joined
303(new events after join),
304.Dq shared
305(whole history after join),
306.Dq world_readable
307(whole history for unjoined users).
308.It Sy ":room history unset"
309Reset the room visibility setting to
310.Dq joined .
311.It Sy ":room ban [user] [reason]"
312Ban a user from this room with an optional reason.
313.It Sy ":room unban [user] [reason]"
314Unban a user from this room with an optional reason.
315.It Sy ":room kick [user] [reason]"
316Kick a user from this room with an optional reason.
317.It Sy ":room user name set [name]"
318Set your user display name for this room.
319.It Sy ":room user name unset"
320Delete your per-room user display name.
321.It Sy ":room user name show"
322Show the display name you currently have in this room.
323.El
324.Sh "SPACE COMMANDS"
325.Bl -tag -width Ds
326.It Sy ":space child set [room] [arguments]"
327Add a room to the currently focused space.
328.Dq ++suggested
329marks the room as a suggested child.
330.Dq ++order=[string]
331specifies a string by which children are lexicographically ordered.
332.It Sy ":space child remove"
333Remove the selected room from the currently focused space.
334.El
335.Sh "PROFILE COMMANDS"
336.Bl -tag -width Ds
337.It Sy ":self avatar set [mxc://...]"
338Set the avatar URL for your profile.
339.It Sy ":self avatar unset"
340Unset the avatar for your profile.
341.It Sy ":self avatar show"
342Show the current avatar URL for your profile.
343.It Sy ":self invites set [allow|block]"
344Set whether others are allowed to send you invites.
345.It Sy ":self invites unset"
346Shorthand for
347.Sy ":self invites set allow" .
348.It Sy ":self invites show"
349Show whether other users are currently allowed to send you invites.
350.It Sy ":self name set [nickname]"
351Set the display name for your profile.
352.It Sy ":self name unset"
353Unset the display name for your profile.
354.It Sy ":self name show"
355Show the current display name for your profile.
356.It Sy ":self timezone set [tz]"
357Set the timezone for your profile.
358.It Sy ":self timezone unset"
359Unset the timezone for your profile.
360.It Sy ":self timezone show"
361Show the current timezone for your profile.
362.El
363.Sh "WINDOW COMMANDS"
364.Bl -tag -width Ds
365.It Sy ":horizontal [cmd]"
366Change the behaviour of the given command to be horizontal.
367.It Sy ":leftabove [cmd]"
368Change the behaviour of the given command to open before the current window.
369.It Sy ":only" , Sy ":on"
370Quit all but one window in the current tab.
371.It Sy ":quit" , Sy ":q"
372Quit a window.
373.It Sy ":quitall" , Sy ":qa"
374Quit all windows in the current tab.
375.It Sy ":resize"
376Resize a window.
377.It Sy ":rightbelow [cmd]"
378Change the behaviour of the given command to open after the current window.
379.It Sy ":split" , Sy ":sp"
380Horizontally split a window.
381.It Sy ":vertical [cmd]"
382Change the layout of the following command to be vertical.
383.It Sy ":vsplit" , Sy ":vsp"
384Vertically split a window.
385.El
386
387.Sh "TAB COMMANDS"
388.Bl -tag -width Ds
389.It Sy ":tab [cmd]"
390Run a command that opens a window in a new tab.
391.It Sy ":tabclose" , Sy ":tabc"
392Close a tab.
393.It Sy ":tabedit [room]" , Sy ":tabe"
394Open a room in a new tab.
395.It Sy ":tabrewind" , Sy ":tabr"
396Go to the first tab.
397.It Sy ":tablast" , Sy ":tabl"
398Go to the last tab.
399.It Sy ":tabnext" , Sy ":tabn"
400Go to the next tab.
401.It Sy ":tabonly" , Sy ":tabo"
402Close all but one tab.
403.It Sy ":tabprevious" , Sy ":tabp"
404Go to the preview tab.
405.El
406
407.Sh "SLASH COMMANDS"
408.Bl -tag -width Ds
409.It Sy "/markdown" , Sy "/md"
410Interpret the message body as Markdown markup.
411This is the default behaviour.
412.It Sy "/html" , Sy "/h"
413Send the message body as literal HTML.
414.It Sy "/plaintext" , Sy "/plain" , Sy "/p"
415Do not interpret any markup in the message body and send it as it is.
416.It Sy "/me"
417Send an emote message.
418.It Sy "/confetti"
419Produces no effect in
420.Nm ,
421but will display confetti in Matrix clients that support doing so.
422.It Sy "/fireworks"
423Produces no effect in
424.Nm ,
425but will display fireworks in Matrix clients that support doing so.
426.It Sy "/hearts"
427Produces no effect in
428.Nm ,
429but will display floating hearts in Matrix clients that support doing so.
430.It Sy "/rainfall"
431Produces no effect in
432.Nm ,
433but will display rainfall in Matrix clients that support doing so.
434.It Sy "/snowfall"
435Produces no effect in
436.Nm ,
437but will display snowfall in Matrix clients that support doing so.
438.It Sy "/spaceinvaders"
439Produces no effect in
440.Nm ,
441but will display aliens from Space Invaders in Matrix clients that support doing so.
442.El
443
444.Sh "ENVIRONMENT"
445The behaviour of
446.Nm
447is affected by the following environment variables.
448.Bl -tag -width Ds
449.It Sy "ALL_PROXY, HTTP_PROXY, HTTPS_PROXY"
450Sets the proxy server to use.
451These names also work in lowercase.
452Example:
453.Dq export ALL_PROXY=socks5://localhost:9050 .
454.It Sy "RUST_LOG"
455Overwrites the value set by the
456.Sy log_level
457config value.
458The syntax is defined at
459.Lk https://docs.rs/tracing_subscriber/0.3.16/tracing_subscriber/filter/struct.EnvFilter.html
460.El
461.Sh EXAMPLES
462.Ss Example 1: Starting with a specific profile
463To start with a profile named
464.Sy personal
465instead of the
466.Sy default_profile
467value:
468.Bd -literal -offset indent
469$ iamb -P personal
470.Ed
471.Ss Example 2: Using an alternate configuration directory
472By default,
473.Nm
474will use the XDG directories, but you may sometimes want to store
475your configuration elsewhere.
476.Bd -literal -offset indent
477$ iamb -C ~/src/iamb-dev/dev-config/
478.Ed
479.Sh "REPORTING BUGS"
480Please report bugs in
481.Nm
482or its manual pages at
483.Lk https://github.com/ulyssa/iamb/issues
484.Sh "SEE ALSO"
485.Xr iamb 5
486.Pp
487Extended documentation is available online at
488.Lk https://iamb.chat