docs/iamb.1
493 lines · 15153 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 withdraw [user id]"
121Withdraw the verification of the specified user.
122This is necessary when they have reset their cryptographic identity.
123.It Sy ":verify pin [user id]"
124Acknowledge that a user has reset their cryptographic identity.
125.It Sy ":verify recover [recovery key]"
126Recover the encryption secrets from the backup on your homeserver, verifying this session.
127.El
128
129.Sh "MESSAGE COMMANDS"
130.Bl -tag -width Ds
131.It Sy ":message"
132View more information about the focused message.
133.It Sy ":download [path]"
134Download an attachment from the selected message and save it to the optional path.
135.It Sy ":open [path]"
136Download and then open an attachment, or open a link in a message.
137.It Sy ":edit"
138Edit the selected message.
139.It Sy ":editor"
140Open an external
141.Ev $EDITOR
142to compose a message.
143.It Sy ":react [shortcode]"
144React to the selected message with an Emoji.
145.It Sy ":unreact [shortcode]"
146Remove your reaction from the selected message.
147When no arguments are given, remove all of your reactions from the message.
148.It Sy ":redact [reason]"
149Redact the selected message with the optional reason.
150.It Sy ":pin"
151Pin the selected message to the room.
152.It Sy ":unpin"
153Unpin the selected message from the room.
154.It Sy ":reply"
155Reply to the selected message.
156.It Sy ":cancel"
157Cancel the currently drafted message including replies.
158.It Sy ":replied"
159Go to the message the current message replied to.
160.It Sy ":upload [path]"
161Upload an attachment and send it to the currently selected room.
162.El
163
164.Sh "ROOM COMMANDS"
165.Bl -tag -width Ds
166.It Sy ":create [arguments]"
167Create a new room. Arguments can be
168.Dq ++alias=[alias] ,
169.Dq ++public ,
170.Dq ++space ,
171and
172.Dq ++encrypted .
173.It Sy ":follow next"
174Follow the tombstone information to the upgraded room.
175.It Sy ":follow previous"
176Follow the room creation information to the pre-upgraded room.
177.It Sy ":ignore set [user]"
178Add a user to your account's ignore list.
179.It Sy ":ignore unset [user]"
180Remove a user from your account's ignore list.
181.It Sy ":ignore show"
182Show all users in your account's ignore list.
183.It Sy ":invite accept"
184Accept an invitation to the currently focused room.
185.It Sy ":invite reject"
186Reject an invitation to the currently focused room.
187.It Sy ":invite send [user]"
188Send an invitation to a user to join the currently focused room.
189.It Sy ":join"
190Join the focused preview room.
191.It Sy ":join [room]"
192Join a room or open it if you are already joined.
193This accepts a room id, room alias, user id, matrix uri, or matrix.to link.
194If the argument refers to a user, a dm room with them is opened/created.
195.It Sy ":knock"
196Request to join the focused preview room.
197.It Sy ":knock accept [user]"
198Accept a knock from the specified user in the currently focused room.
199.It Sy ":knock ban [user] [reason]"
200Reject a knock from the specified user to the currently focused room, and ban them with an optional reason.
201.It Sy ":knock reject [user] [reason]"
202Reject a knock from the specified user to the currently focused room with an optional reason.
203.It Sy ":knock send [room] [reason]"
204Send a request to join a room with an optional reason.
205.It Sy ":leave"
206Leave the currently focused room.
207.It Sy ":members"
208View a list of members of the currently focused room.
209.It Sy ":pinned"
210View a list of pinned messages in the currently focused room.
211Select a message to jump to it in the room.
212.It Sy ":room access set [rule]"
213Set the join rules for the room to control who can access it.
214Possible values for the
215.Sy rule
216argument are
217.Dq invite ,
218.Dq knock ,
219.Dq knock-restricted ,
220.Dq public ,
221and
222.Dq restricted .
223The
224.Dq knock-restricted
225and
226.Dq restricted
227values allow additional
228.Sy ++members=[room]
229arguments to specify rooms (and spaces) whose members are allowed to join without an invite or knocking.
230If a room alias is given instead of an id, it is resolved immediately.
231.It Sy ":room access unset"
232Set the room to being invite-only so that those not already members cannot join.
233.It Sy ":room access show"
234Show the current join rules for the room.
235.It Sy ":room dm set"
236Mark the currently focused room as a direct message.
237.It Sy ":room dm unset"
238Mark the currently focused room as a normal room.
239.It Sy ":room name set [name]"
240Set the name of the currently focused room.
241.It Sy ":room name unset"
242Unset the name of the currently focused room.
243.It Sy ":room unread set"
244Mark the currently focused room as unread.
245.It Sy ":room unread unset"
246Mark the currently focused room as read.
247.It Sy ":room unread clear"
248Alias for
249.Sy :room unread unset .
250.It Sy ":room version show"
251Show the Matrix version for this room.
252.It Sy ":room version upgrade [version] [++creator=additional creator...]"
253Upgrade the Matrix version for this room to the specified version.
254Note that room upgrading in Matrix works by creating a new room that everyone else will then need to join.
255.It Sy ":room notify set [level]"
256Set a notification level for the currently focused room.
257Valid levels are
258.Dq mute ,
259.Dq mentions ,
260.Dq keywords ,
261and
262.Dq all .
263Note that
264.Dq mentions
265and
266.Dq keywords
267are aliases for the same behaviour, and the room will be labeled
268.Dq Calmed
269in room lists.
270.It Sy ":room notify unset"
271Unset any room-level notification configuration.
272.It Sy ":room notify show"
273Show the current room-level notification configuration.
274If the room is using the account-level default, then this will print
275.Dq default .
276.It Sy ":room tag set [tag]"
277Add a tag to the currently focused room.
278.It Sy ":room tag unset [tag]"
279Remove a tag from the currently focused room.
280.It Sy ":room topic set [topic]"
281Set the topic of the currently focused room.
282.It Sy ":room topic unset"
283Unset the topic of the currently focused room.
284.It Sy ":room topic show"
285Show the topic of the currently focused room.
286.It Sy ":room alias set [alias]"
287Create and point the given alias to the room.
288.It Sy ":room alias unset [alias]"
289Delete the provided alias from the room's alternative alias list.
290.It Sy ":room alias show"
291Show alternative aliases to the room, if any are set.
292.It Sy ":room id show"
293Show the Matrix identifier for the room.
294.It Sy ":room canon set [alias]"
295Set the room's canonical alias to the one provided, and make the previous one an alternative alias.
296.It Sy ":room canon unset [alias]"
297Delete the room's canonical alias.
298.It Sy ":room canon show"
299Show the room's canonical alias, if any is set.
300.It Sy ":room history show"
301Show the history visibility setting for the current room.
302.It Sy ":room history set [mode]" .\" XXX: get options
303Set the history visibility for the current room.
304Valid modes are
305.Dq invited
306(new events after invitation),
307.Dq joined
308(new events after join),
309.Dq shared
310(whole history after join),
311.Dq world_readable
312(whole history for unjoined users).
313.It Sy ":room history unset"
314Reset the room visibility setting to
315.Dq joined .
316.It Sy ":room ban [user] [reason]"
317Ban a user from this room with an optional reason.
318.It Sy ":room unban [user] [reason]"
319Unban a user from this room with an optional reason.
320.It Sy ":room kick [user] [reason]"
321Kick a user from this room with an optional reason.
322.It Sy ":room user name set [name]"
323Set your user display name for this room.
324.It Sy ":room user name unset"
325Delete your per-room user display name.
326.It Sy ":room user name show"
327Show the display name you currently have in this room.
328.El
329.Sh "SPACE COMMANDS"
330.Bl -tag -width Ds
331.It Sy ":space child set [room] [arguments]"
332Add a room to the currently focused space.
333.Dq ++suggested
334marks the room as a suggested child.
335.Dq ++order=[string]
336specifies a string by which children are lexicographically ordered.
337.It Sy ":space child remove"
338Remove the selected room from the currently focused space.
339.El
340.Sh "PROFILE COMMANDS"
341.Bl -tag -width Ds
342.It Sy ":self avatar set [mxc://...]"
343Set the avatar URL for your profile.
344.It Sy ":self avatar unset"
345Unset the avatar for your profile.
346.It Sy ":self avatar show"
347Show the current avatar URL for your profile.
348.It Sy ":self invites set [allow|block]"
349Set whether others are allowed to send you invites.
350.It Sy ":self invites unset"
351Shorthand for
352.Sy ":self invites set allow" .
353.It Sy ":self invites show"
354Show whether other users are currently allowed to send you invites.
355.It Sy ":self name set [nickname]"
356Set the display name for your profile.
357.It Sy ":self name unset"
358Unset the display name for your profile.
359.It Sy ":self name show"
360Show the current display name for your profile.
361.It Sy ":self timezone set [tz]"
362Set the timezone for your profile.
363.It Sy ":self timezone unset"
364Unset the timezone for your profile.
365.It Sy ":self timezone show"
366Show the current timezone for your profile.
367.El
368.Sh "WINDOW COMMANDS"
369.Bl -tag -width Ds
370.It Sy ":horizontal [cmd]"
371Change the behaviour of the given command to be horizontal.
372.It Sy ":leftabove [cmd]"
373Change the behaviour of the given command to open before the current window.
374.It Sy ":only" , Sy ":on"
375Quit all but one window in the current tab.
376.It Sy ":quit" , Sy ":q"
377Quit a window.
378.It Sy ":quitall" , Sy ":qa"
379Quit all windows in the current tab.
380.It Sy ":resize"
381Resize a window.
382.It Sy ":rightbelow [cmd]"
383Change the behaviour of the given command to open after the current window.
384.It Sy ":split" , Sy ":sp"
385Horizontally split a window.
386.It Sy ":vertical [cmd]"
387Change the layout of the following command to be vertical.
388.It Sy ":vsplit" , Sy ":vsp"
389Vertically split a window.
390.El
391
392.Sh "TAB COMMANDS"
393.Bl -tag -width Ds
394.It Sy ":tab [cmd]"
395Run a command that opens a window in a new tab.
396.It Sy ":tabclose" , Sy ":tabc"
397Close a tab.
398.It Sy ":tabedit [room]" , Sy ":tabe"
399Open a room in a new tab.
400.It Sy ":tabrewind" , Sy ":tabr"
401Go to the first tab.
402.It Sy ":tablast" , Sy ":tabl"
403Go to the last tab.
404.It Sy ":tabnext" , Sy ":tabn"
405Go to the next tab.
406.It Sy ":tabonly" , Sy ":tabo"
407Close all but one tab.
408.It Sy ":tabprevious" , Sy ":tabp"
409Go to the preview tab.
410.El
411
412.Sh "SLASH COMMANDS"
413.Bl -tag -width Ds
414.It Sy "/markdown" , Sy "/md"
415Interpret the message body as Markdown markup.
416This is the default behaviour.
417.It Sy "/html" , Sy "/h"
418Send the message body as literal HTML.
419.It Sy "/plaintext" , Sy "/plain" , Sy "/p"
420Do not interpret any markup in the message body and send it as it is.
421.It Sy "/me"
422Send an emote message.
423.It Sy "/confetti"
424Produces no effect in
425.Nm ,
426but will display confetti in Matrix clients that support doing so.
427.It Sy "/fireworks"
428Produces no effect in
429.Nm ,
430but will display fireworks in Matrix clients that support doing so.
431.It Sy "/hearts"
432Produces no effect in
433.Nm ,
434but will display floating hearts in Matrix clients that support doing so.
435.It Sy "/rainfall"
436Produces no effect in
437.Nm ,
438but will display rainfall in Matrix clients that support doing so.
439.It Sy "/snowfall"
440Produces no effect in
441.Nm ,
442but will display snowfall in Matrix clients that support doing so.
443.It Sy "/spaceinvaders"
444Produces no effect in
445.Nm ,
446but will display aliens from Space Invaders in Matrix clients that support doing so.
447.El
448
449.Sh "ENVIRONMENT"
450The behaviour of
451.Nm
452is affected by the following environment variables.
453.Bl -tag -width Ds
454.It Sy "ALL_PROXY, HTTP_PROXY, HTTPS_PROXY"
455Sets the proxy server to use.
456These names also work in lowercase.
457Example:
458.Dq export ALL_PROXY=socks5://localhost:9050 .
459.It Sy "RUST_LOG"
460Overwrites the value set by the
461.Sy log_level
462config value.
463The syntax is defined at
464.Lk https://docs.rs/tracing_subscriber/0.3.16/tracing_subscriber/filter/struct.EnvFilter.html
465.El
466.Sh EXAMPLES
467.Ss Example 1: Starting with a specific profile
468To start with a profile named
469.Sy personal
470instead of the
471.Sy default_profile
472value:
473.Bd -literal -offset indent
474$ iamb -P personal
475.Ed
476.Ss Example 2: Using an alternate configuration directory
477By default,
478.Nm
479will use the XDG directories, but you may sometimes want to store
480your configuration elsewhere.
481.Bd -literal -offset indent
482$ iamb -C ~/src/iamb-dev/dev-config/
483.Ed
484.Sh "REPORTING BUGS"
485Please report bugs in
486.Nm
487or its manual pages at
488.Lk https://github.com/ulyssa/iamb/issues
489.Sh "SEE ALSO"
490.Xr iamb 5
491.Pp
492Extended documentation is available online at
493.Lk https://iamb.chat