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