2 vim:set ts=4 sw=4 tw=82 noet:
12 signal-cli - A commandline interface for the Signal messenger
16 *signal-cli* [--config CONFIG] [-h | -v | -a ACCOUNT | --dbus | --dbus-system] command [command-options]
20 signal-cli is a commandline interface for libsignal-service-java.
21 It supports registering, verifying, sending and receiving messages.
22 For registering you need a phone number where you can receive SMS or incoming calls.
23 signal-cli was primarily developed to be used on servers to notify admins of important events.
24 For this use-case, it has a dbus and a JSON-RPC interface, that can be used to send messages from other programs.
26 Originally the Signal protocol only allowed sending messages to other phone numbers.
27 Now with the introduction of phone number privacy, the phone number of a recipient is not always known.
28 Only the recipient's ServiceId, ACI/PNI (a special UUID) is known.
30 In all places where a RECIPIENT argument is expected in signal-cli's interface, one of the following can be used:
33 - The ACI, just a UUID
34 - The PNI, just a UUID, with "PNI:" prefix
35 - The username, with "u:" prefix, e.g. "u:test.000"
37 For some functionality the Signal protocol requires that all messages have been received from the server.
38 The `receive` command should be regularly executed.
39 In daemon mode messages are by default continuously received.
44 Show help message and quit.
47 Print the version and quit.
50 Raise log level and include lib signal logs.
52 *--log-file* LOG_FILE::
53 Write log output to the given file.
54 If `--verbose` is also given, the detailed logs will only be written to the log file.
57 Scrub possibly sensitive information from the log, like phone numbers and UUIDs.
58 Doesn't work reliably on dbus logs with very verbose logging (`-vvv`)
61 Set the path, where to store the config.
62 Make sure you have full read/write access to the given directory.
63 (Default: `$XDG_DATA_HOME/signal-cli` (`$HOME/.local/share/signal-cli`))
65 *-a* ACCOUNT, *--account* ACCOUNT::
66 Specify your phone number, that will be your identifier.
67 The phone number must include the country calling code, i.e. the number must start with a "+" sign.
69 This flag must not be given for the `link` command.
70 It is optional for the `daemon` command.
71 For all other commands it is only optional if there is exactly one local user in the config directory.
73 *--service-environment* ENVIRONMENT::
74 Choose the server environment to use:
80 Make request via user dbus.
83 Make request via system dbus.
86 Connect to another D-Bus bus name than the default.
88 *-o* OUTPUT-MODE, *--output* OUTPUT-MODE::
89 Specify if you want commands to output in either "plain-text" mode or in "json".
90 Defaults to "plain-text"
92 *--trust-new-identities* TRUST-MODE::
93 Choose when to trust new identities:
94 - `on-first-use` (default): Trust the first seen identity key from new users, changed keys must be verified manually
95 - `always`: Trust any new identity key without verification
96 - `never`: Don't trust any unknown identity key, every key must be verified manually
98 *--disable-send-log*::
99 Disable message send log (for resending messages that recipient couldn't decrypt).
105 Register a phone number with SMS or voice verification.
106 Use the verify command to complete the verification.
108 If the account is just deactivated, the register command will just reactivate account, without requiring an SMS verification.
109 By default the unregister command just deactivates the account, in which case it can be reactivated without sms verification if the local data is still available.
110 If the account was deleted (with --delete-account) it cannot be reactivated.
113 The verification should be done over voice, not SMS.
114 Voice verification only works if an SMS verification has been attempted before.
116 *--captcha* CAPTCHA::
117 The captcha token, required if registration failed with a captcha required error.
118 To get the token, go to https://signalcaptchas.org/registration/generate.html
119 For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html
120 After solving the captcha, right-click on the "Open Signal" link and copy the link.
123 Register even if account is already registered.
127 Verify the number using the code received via SMS or voice.
130 The verification code.
132 *-p* PIN, *--pin* PIN::
133 The registration lock PIN, that was set by the user.
134 Only required if a PIN was set.
138 Disable push support for this device, i.e. this device won't receive any more messages.
139 If this is the primary device, other users can't send messages to this number anymore.
140 Use "updateAccount" to undo this.
141 To remove a linked device, use "removeDevice" from the primary device.
144 Delete account completely from server.
145 Cannot be undone without loss.
146 You will have to be readded to each group.
148 CAUTION: Only delete your account if you won't use this number again!
150 === deleteLocalAccountData
152 Delete all local data for this account.
153 Data should only be deleted if the account is unregistered.
155 CAUTION: This cannot be undone.
157 *--ignore-registered*::
158 Delete the account data even though the account is still registered on the Signal servers.
162 Update the account attributes on the signal server.
163 Can fix problems with receiving messages.
165 *-n* NAME, *--device-name* NAME::
166 Set a new device name for the primary or linked device
168 *-u* NAME *--username* NAME::
169 Specify a username that can then be used to contact this account.
170 This can either be just the nickname (e.g. test) or the complete username with discriminator (e.g. test.000).
171 Returns the new username with discriminator and the username link.
173 *--delete-username*::
174 Delete the username associated with this account.
176 *--unrestricted-unidentified-sender* {true,false}::
177 Enable if anyone should be able to send you unidentified sender messages.
179 *--discoverable-by-number* {true,false}::
180 Enable/disable if the account should be discoverable by phone number
182 *--number-sharing* {true,false}::
183 Indicates if Signal should share its phone number when sending a message.
185 === startChangeNumber
187 Change an account to a new phone number with SMS or voice verification.
188 Use the finishChangeNumber command to complete the verification.
191 The new phone number.
194 The verification should be done over voice, not SMS.
195 Voice verification only works if an SMS verification has been attempted before.
198 The captcha token, required if registration failed with a captcha required error.
199 To get the token, go to https://signalcaptchas.org/registration/generate.html
200 For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html
201 After solving the captcha, right-click on the "Open Signal" link and copy the link.
203 === finishChangeNumber
205 Verify the number using the code received via SMS or voice.
208 The new phone number.
210 *-v*, *--verification-code*::
211 The verification code.
213 *-p* PIN, *--pin* PIN::
214 The registration lock PIN, that was set by the user.
215 Only required if a PIN was set.
217 === updateConfiguration
219 Update signal configs and sync them to linked devices.
220 This command only works on the primary devices.
222 *--read-receipts* {true,false}::
223 Indicates if Signal should send read receipts.
225 *--unidentified-delivery-indicators* {true,false}::
226 Indicates if Signal should show unidentified delivery indicators.
228 *--typing-indicators* {true,false}::
229 Indicates if Signal should send/show typing indicators.
231 *--link-previews* {true,false}::
232 Indicates if Signal should generate link previews.
236 Set a registration lock pin, to prevent others from registering your account's phone number.
238 REGISTRATION_LOCK_PIN::
239 The registration lock PIN, that will be required for new registrations (resets after 7 days of inactivity)
243 Remove the registration lock pin.
247 Link to an existing device, instead of registering a new number.
248 This shows a "sgnl://linkdevice?uuid=..." URI.
249 If you want to connect to another signal-cli instance, you can just use this URI.
250 If you want to link to an Android/iOS device, create a QR code with the URI (e.g. with qrencode) and scan that in the Signal app.
252 *-n* NAME, *--name* NAME::
253 Optionally specify a name to describe this new device.
254 By default "cli" will be used.
258 Link another device to this device.
259 Only works, if this is the primary device.
262 Specify the uri contained in the QR code shown by the new device.
263 You will need the full URI such as "sgnl://linkdevice?uuid=...&pub_key=..." (formerly "tsdevice:/?uuid=...") Make sure to enclose it in quotation marks for shells.
267 Show a list of linked devices.
271 Remove a linked device.
272 Only works, if this is the primary device.
274 *-d* DEVICE_ID, *--device-id* DEVICE_ID::
275 Specify the device you want to remove.
276 Use listDevices to see the deviceIds.
280 Uses a list of phone numbers or usernames to determine the statuses of those users.
281 Shows if they are registered on the Signal Servers or not.
282 In json mode this is outputted as a list of objects.
284 [RECIPIENT [RECIPIENT ...]]::
285 One or more numbers to check.
287 [--username [USERNAME ...]]::
288 One or more usernames to check.
292 Send a message to another user or group.
295 Specify the recipients.
298 Send the message to self without notification.
300 *-g* GROUP, *--group-id* GROUP::
301 Specify the recipient group ID in base64 encoding.
303 *-u* USERNAME, *--username* USERNAME::
304 Specify the recipient username or username link.
306 *-m* MESSAGE, *--message* MESSAGE::
309 *--message-from-stdin*::
310 Read the message from standard input.
312 *-a* [ATTACHMENT [ATTACHMENT ...]], *--attachment* [ATTACHMENT [ATTACHMENT ...]]::
313 Add one or more files as attachment.
314 Can be either a file path or a data URI.
315 Data URI encoded attachments must follow the RFC 2397.
316 Additionally a file name can be added:
317 e.g.: `data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED DATA>`
319 *--sticker* STICKER::
320 Send a sticker of a locally known sticker pack (syntax: stickerPackId:stickerId).
321 Shouldn't be used together with `-m` as the official clients don't support this.
322 e.g.: `--sticker 00abac3bc18d7f599bff2325dc306d43:2`
325 Mention another group member (syntax: start:length:recipientNumber) In the apps the mention replaces part of the message text, which is specified by the start and length values.
326 The units of start and length should be UTF-16 code units, NOT Unicode code points.
327 For more information, see https://github.com/AsamK/signal-cli/wiki/FAQ#string-indexing-units
328 e.g.: `-m "Hi X!" --mention "3:1:+123456789"`
331 Style parts of the message text (syntax: start:length:STYLE).
332 Like `--mention`, the units are UTF-16 code units.
333 Where STYLE is one of: BOLD, ITALIC, SPOILER, STRIKETHROUGH, MONOSPACE
335 e.g.: `-m "Something BIG!" --text-style "10:3:BOLD"` or for a mixed text style `-m "Something BIG!" --text-style "0:9:ITALIC" "10:3:BOLD"`
337 *--quote-timestamp*::
338 Specify the timestamp of a previous message with the recipient or group to add a quote to the new message.
341 Specify the author of the original message.
344 Specify the message of the original message.
347 Specify the mentions of the original message (same format as `--mention`).
349 *--quote-text-style*::
350 Style parts of the original message text (same format as `--text-style`).
352 *--quote-attachment*::
353 Specify the attachments of the original message (syntax: contentType[:filename[:previewFile]]), e.g. 'audio/aac' or 'image/png:test.png:/tmp/preview.jpg'.
356 Specify the url for the link preview.
357 The same url must also appear in the message body, otherwise the preview won't be displayed by the apps.
360 Specify the title for the link preview (mandatory).
362 *--preview-description*::
363 Specify the description for the link preview (optional).
366 Specify the image file for the link preview (optional).
368 *--story-timestamp*::
369 Specify the timestamp of a story to reply to.
372 Specify the author of the story.
374 *-e*, *--end-session*::
375 Clear session state and send end session message.
378 Specify the timestamp of a previous message with the recipient or group to send an edited message.
380 === sendMessageRequestResponse
382 Send response to a message request to linked devices.
385 Specify the recipients.
387 *-g* GROUP, *--group-id* GROUP::
388 Specify the recipient group ID in base64 encoding.
390 *-u* USERNAME, *--username* USERNAME::
391 Specify the recipient username or username link.
394 Type of message request response (accept, delete)
396 === sendPaymentNotification
398 Send a payment notification.
401 Specify the recipient.
403 *--receipt* RECEIPT::
404 The base64 encoded receipt blob.
407 Specify a note for the payment notification.
411 Send reaction to a previously received or sent message.
414 Specify the recipients.
416 *-g* GROUP, *--group-id* GROUP::
417 Specify the recipient group ID in base64 encoding.
419 *-u* USERNAME, *--username* USERNAME::
420 Specify the recipient username or username link.
422 *-e* EMOJI, *--emoji* EMOJI::
423 Specify the emoji, should be a single unicode grapheme cluster.
425 *-a* RECIPIENT, *--target-author* RECIPIENT::
426 Specify the author of the message to which to react.
428 *-t* TIMESTAMP, *--target-timestamp* TIMESTAMP::
429 Specify the timestamp of the message to which to react.
435 React to a story instead of a normal message
439 Send a read or viewed receipt to a previously received message.
444 *-t* TIMESTAMP, *--target-timestamp* TIMESTAMP::
445 Specify the timestamp of the message to which to react.
448 Specify the receipt type, either `read` (the default) or `viewed`.
452 Send typing message to trigger a typing indicator for the recipient.
453 Indicator will be shown for 15seconds unless a typing STOP message is sent first.
456 Specify the recipients.
458 *-g* GROUP, *--group-id* GROUP::
459 Specify the recipient group ID in base64 encoding.
462 Send a typing STOP message.
466 Remotely delete a previously sent message.
469 Specify the recipients.
471 *-g* GROUP, *--group-id* GROUP::
472 Specify the recipient group ID in base64 encoding.
474 *-u* USERNAME, *--username* USERNAME::
475 Specify the recipient username or username link.
477 *-t* TIMESTAMP, *--target-timestamp* TIMESTAMP::
478 Specify the timestamp of the message to delete.
482 Query the server for new messages.
483 New messages are printed on standard output and attachments are downloaded to the config directory.
484 In json mode this is outputted as one json object per line.
486 *-t* TIMEOUT, *--timeout* TIMEOUT::
487 Number of seconds to wait for new messages (negative values disable timeout).
488 Default is 5 seconds.
491 Maximum number of messages to receive, before returning.
493 *--ignore-attachments*::
494 Don’t download attachments of received messages.
497 Don’t receive story messages from the server.
500 *--send-read-receipts*::
501 Send read receipts for all incoming data messages (in addition to the default delivery receipts)
505 Join a group via an invitation link.
508 The invitation link URI (starts with `https://signal.group/#`)
512 Create or update a group.
513 If the user is a pending member, this command will accept the group invitation.
515 *-g* GROUP, *--group-id* GROUP::
516 Specify the recipient group ID in base64 encoding.
517 If not specified, a new group with a new random ID is generated.
519 *-n* NAME, *--name* NAME::
520 Specify the new group name.
522 *-d* DESCRIPTION, *--description* DESCRIPTION::
523 Specify the new group description.
525 *-a* AVATAR, *--avatar* AVATAR::
526 Specify a new group avatar image file.
528 *-m* [MEMBER [MEMBER ...]], *--member* [MEMBER [MEMBER ...]]::
529 Specify one or more members to add to the group.
531 *-r* [MEMBER [MEMBER ...]], *--remove-member* [MEMBER [MEMBER ...]]::
532 Specify one or more members to remove from the group
534 *--admin* [MEMBER [MEMBER ...]]::
535 Specify one or more members to make a group admin
537 *--remove-admin* [MEMBER [MEMBER ...]]::
538 Specify one or more members to remove group admin privileges
540 *--ban* [MEMBER [MEMBER ...]]::
541 Specify one or more members to ban from joining the group.
542 Banned members cannot join or request to join via a group link.
544 *--unban* [MEMBER [MEMBER ...]]::
545 Specify one or more members to remove from the ban list
548 Reset group link and create new link password
550 *--link* LINK_STATE::
551 Set group link state: `enabled`, `enabled-with-approval`, `disabled`
553 *--set-permission-add-member* PERMISSION::
554 Set permission to add new group members: `every-member`, `only-admins`
556 *--set-permission-edit-details* PERMISSION::
557 Set permission to edit group details: `every-member`, `only-admins`
559 *--set-permission-send-messages* PERMISSION::
560 Set permission to send messages in group: `every-member`, `only-admins`
561 Groups where only admins can send messages are also called announcement groups
563 *-e* EXPIRATION_SECONDS, *--expiration* EXPIRATION_SECONDS::
564 Set expiration time of messages (seconds).
565 To disable expiration set expiration time to 0.
569 Send a quit group message to all group members and remove self from member list.
570 If the user is a pending member, this command will decline the group invitation.
572 *-g* GROUP, *--group-id* GROUP::
573 Specify the recipient group ID in base64 encoding.
576 Delete local group data completely after quitting group.
580 Show a list of known groups and related information.
581 In json mode this is outputted as an list of objects and is always in detailed mode.
584 Include the list of members of each group and the group invite link.
587 Filter the group list by one or more group IDs.
591 Show a list of known contacts with names and profiles.
592 When a specific recipient is given, its profile will be refreshed.
595 Specify the recipients.
597 *-a*, *--all-recipients*::
598 Include all known recipients, not only contacts.
601 Specify if only blocked or unblocked contacts should be shown (default: all contacts)
604 Find contacts with the given contact or profile name.
607 List the contacts with more details.
608 If output=json, then this is always set
611 Include internal information that's normally not user visible
615 List all known identity keys and their trust status, fingerprint and safety number.
617 *-n* RECIPIENT, *--number* RECIPIENT::
618 Only show identity keys for the given recipient.
622 Set the trust level of a given recipient.
623 The first time a key for a recipient is seen, it is trusted by default (TOFU).
624 If the key changes, the new key must be trusted manually.
627 Specify the recipient, for which to set the trust.
629 *-a*, *--trust-all-known-keys*::
630 Trust all known keys of this user, only use this for testing.
632 *-v* VERIFIED_SAFETY_NUMBER, *--verified-safety-number* VERIFIED_SAFETY_NUMBER::
633 Specify the safety number of the key, only use this option if you have verified the safety number.
634 Can be either the plain text numbers shown in the app or the bytes from the QR-code, encoded as base64.
638 Update the profile information shown to message recipients.
639 The profile is stored encrypted on the Signal servers.
640 The decryption key is sent with every outgoing messages to contacts and included in every group.
642 *--given-name* NAME, *--name* NAME::
645 *--family-name* FAMILY_NAME::
648 *--about* ABOUT_TEXT::
649 New profile status text.
651 *--about-emoji* EMOJI::
652 New profile status emoji.
654 *--avatar* AVATAR_FILE::
655 Path to the new avatar image file.
660 *--mobile-coin-address*::
661 New MobileCoin address (Base64 encoded public address)
665 Update the info associated to a recipient on our contact list.
666 This change is only local but can be synchronized to other devices by using `sendContacts` (see below).
667 If the contact doesn't exist yet, it will be added.
670 Specify the recipient.
672 *--given-name* GIVEN_NAME, *--name* NAME::
673 New system given name.
675 *--family-name* FAMILY_NAME::
676 New system family name.
678 *--nick-given-name* NICK_GIVEN_NAME::
681 *--nick-family-name* NICK_FAMILY_NAME::
682 New nick family name.
687 *-e*, *--expiration* EXPIRATION_SECONDS::
688 Set expiration time of messages (seconds).
689 To disable expiration set expiration time to 0.
693 Remove the info of a given contact
696 Specify the recipient.
699 Hide the contact in the contact list, but keep the data.
702 Delete all data associated with this contact, including identity keys and sessions.
706 Block the given contacts or groups (no messages will be received).
707 This change is only local but can be synchronized to other devices by using `sendContacts` (see below).
709 [RECIPIENT [RECIPIENT ...]]::
710 Specify the contacts that should be blocked.
712 *-g* [GROUP [GROUP ...]], *--group-id* [GROUP [GROUP ...]]::
713 Specify the group IDs that should be blocked in base64 encoding.
717 Unblock the given contacts or groups (messages will be received again).
718 This change is only local but can be synchronized to other devices by using `sendContacts` (see below).
720 [RECIPIENT [RECIPIENT ...]]::
721 Specify the contacts that should be unblocked.
723 *-g* [GROUP [GROUP ...]], *--group-id* [GROUP [GROUP ...]]::
724 Specify the group IDs that should be unblocked in base64 encoding.
728 Send a synchronization message with the local contacts list to all linked devices.
729 This command should only be used if this is the primary device.
733 Send a synchronization request message to the primary device (for group, contacts, ...).
734 The primary device will respond with synchronization messages with full contact and group lists.
736 === uploadStickerPack
738 Upload a new sticker pack, consisting of a manifest file and the sticker images. +
739 Images must conform to the following specification: (see https://support.signal.org/hc/en-us/articles/360031836512-Stickers#sticker_reqs )
741 - Static stickers in PNG or WebP format
742 - Animated stickers in APNG format,
743 - Maximum file size for a sticker file is 300KiB
744 - Image resolution of 512 x 512 px
746 The required manifest.json has the following format:
751 "title": "<STICKER_PACK_TITLE>",
752 "author": "<STICKER_PACK_AUTHOR>",
753 "cover": { // Optional cover, by default the first sticker is used as cover
754 "file": "<name of image file, mandatory>",
755 "contentType": "<optional>",
756 "emoji": "<optional>"
760 "file": "<name of image file, mandatory>",
761 "contentType": "<optional>",
762 "emoji": "<optional>"
770 The path of the manifest.json or a zip file containing the sticker pack you wish to upload.
774 Show a list of known sticker packs.
778 Install a sticker pack for this account.
781 Specify the uri of the sticker pack.
782 e.g. https://signal.art/addstickers/#pack_id=XXX&pack_key=XXX
786 Gets the raw data for a specified attachment.
787 This is done using the ID of the attachment the recipient or group ID.
788 The attachment data is returned as a Base64 String.
791 The ID of the attachment as given in the attachment list of the message.
793 *--recipient* [RECIPIENT]::
794 Specify the recipient which sent the attachment.
795 Referred to generally as recipient.
797 *-g* [GROUP], *--group-id* [GROUP]::
798 Alternatively, specify the group IDs for which to get the attachment.
802 Gets the raw data for a specified contact, contact's profile or group avatar.
803 The attachment data is returned as a Base64 String.
805 *--contact* [RECIPIENT]::
806 Specify the recipient.
808 *--profile* [RECIPIENT]::
809 Specify the recipient.
811 *-g* [GROUP], *--group-id* [GROUP]::
812 Alternatively, specify the group ID for which to get the avatar.
816 Gets the raw data for a specified sticker.
817 The attachment data is returned as a Base64 String.
819 *--pack-id* [PACK_ID]::
820 Specify the id of a sticker pack (hex encoded).
822 *--sticker-id* [STICKER_ID]::
823 Specify the index of a sticker in the sticker pack.
827 signal-cli can run in daemon mode and provides JSON-RPC or an experimental dbus interface.
828 If no `-a` account is given, all local accounts will be loaded.
829 Multiple interfaces can be used at the same time, e.g. `daemon --socket --dbus`
831 *--socket [SOCKET]*::
832 Export a JSON-RPC interface on a UNIX socket (default $XDG_RUNTIME_DIR/signal-cli/socket). +
833 See **signal-cli-jsonrpc**(5) for info on the JSON-RPC interface.
835 *--tcp [HOST:PORT]*::
836 Export a JSON-RPC interface on a TCP socket (default localhost:7583). +
837 See **signal-cli-jsonrpc**(5) for info on the JSON-RPC interface.
839 *--http [HOST:PORT]*::
840 Expose a JSON-RPC interface as http endpoint (default localhost:8080).
841 The JSON-RPC endpoint is `/api/v1/rpc`. +
842 See **signal-cli-jsonrpc**(5) for info on the JSON-RPC interface.
845 Export DBus interface on user bus. +
846 See **signal-cli-dbus**(5) for info on the dbus interface.
849 Export DBus interface on system bus. +
850 See **signal-cli-dbus**(5) for info on the dbus interface.
853 Claim another D-Bus bus name than the default.
855 *--ignore-attachments*::
856 Don’t download attachments of received messages.
859 Don’t receive story messages from the server.
861 *--send-read-receipts*::
862 Send read receipts for all incoming data messages (in addition to the default delivery receipts)
864 *--no-receive-stdout*::
865 Don’t print received messages to stdout.
868 Specify when to start receiving messages (on-start, on-connection, manual)
872 Run in signal-cli in JSON-RPC mode.
873 Reads JSON-RPC requests on stdin and responds on stdout.
874 See **signal-cli-jsonrpc**(5) for info on the JSON-RPC interface.
876 *--ignore-attachments*::
877 Don’t download attachments of received messages.
880 Don’t receive story messages from the server.
882 *--send-read-receipts*::
883 Send read receipts for all incoming data messages (in addition to the default delivery receipts)
886 Specify when to start receiving messages (on-start, manual)
888 === submitRateLimitChallenge
890 When running into rate limits, sometimes the limit can be lifted, by solving a CAPTCHA.
891 To get the captcha token, go to https://signalcaptchas.org/challenge/generate.html
892 For the staging environment, use: https://signalcaptchas.org/staging/registration/generate.html
894 *--challenge* CHALLENGE_TOKEN::
895 The challenge token from the failed send attempt.
897 *--captcha* CAPTCHA::
898 The captcha result, starting with signalcaptcha://
902 Register a number (with SMS verification)::
903 signal-cli -a ACCOUNT register
905 Verify the number using the code received via SMS or voice::
906 signal-cli -a ACCOUNT verify CODE
908 Send a message to one or more recipients::
909 signal-cli -a ACCOUNT send -m "This is a message" [RECIPIENT [RECIPIENT ...]] [-a [ATTACHMENT [ATTACHMENT ...]]]
911 Pipe the message content from another process::
912 uname -a | signal-cli -a ACCOUNT send --message-from-stdin [RECIPIENT [RECIPIENT ...]]
915 signal-cli -a ACCOUNT updateGroup -n "Group name" -m [MEMBER [MEMBER ...]]
917 Add member to a group::
918 signal-cli -a ACCOUNT updateGroup -g GROUP_ID -m "NEW_MEMBER"
920 Accept a group invitation::
921 signal-cli -a ACCOUNT updateGroup -g GROUP_ID
924 signal-cli -a ACCOUNT quitGroup -g GROUP_ID
926 Send a message to a group::
927 signal-cli -a ACCOUNT send -m "This is a message" -g GROUP_ID
929 Trust new key, after having verified it::
930 signal-cli -a ACCOUNT trust -v SAFETY_NUMBER RECIPIENT
932 Trust new key, without having verified it. Only use this if you don't care about security::
933 signal-cli -a ACCOUNT trust -a RECIPIENT
937 * *1*: Error is probably caused and fixable by the user
938 * *2*: Some unexpected error
939 * *3*: Server or IO error
940 * *4*: Sending failed due to untrusted key
941 * *5*: Server rate limiting error
945 The password and cryptographic keys are created when registering and stored in the current users home directory, the directory can be changed with *--config*:
947 `$XDG_DATA_HOME/signal-cli/` (`$HOME/.local/share/signal-cli/`)
951 Maintained by AsamK <asamk@gmx.de>, who is assisted by other open source contributors.
952 For more information about signal-cli development, see
953 <https://github.com/AsamK/signal-cli>.