signal-cli send
Jump to navigation
Jump to search
signal-cli -a +123456789 send -m "This is a test Signal message" +123456789
signal-cli send No local users found, you first need to register or link an account
signal-cli send Multiple users found, you need to specify an account (phone number) with -a
usage: signal-cli [-h] [-v] [--log-file LOG_FILE] [--scrub-log]
named arguments:
-h, --help show this help message and exit
-v, --verbose
--log-file LOG_FILE
--scrub-log
usage: signal-cli send [-h] [-g [GROUP_ID [GROUP_ID ...]]] [--note-to-self] [-a [ATTACHMENT [ATTACHMENT ...]]] [-e]
[--mention [MENTION [MENTION ...]]] [--text-style [TEXT_STYLE [TEXT_STYLE ...]]] [--quote-timestamp QUOTE_TIMESTAMP]
[--quote-author QUOTE_AUTHOR] [--quote-message QUOTE_MESSAGE] [--quote-mention [QUOTE_MENTION [QUOTE_MENTION ...]]]
[--quote-attachment [QUOTE_ATTACHMENT [QUOTE_ATTACHMENT ...]]]
[--quote-text-style [QUOTE_TEXT_STYLE [QUOTE_TEXT_STYLE ...]]] [--sticker STICKER] [--preview-url PREVIEW_URL]
[--preview-title PREVIEW_TITLE] [--preview-description PREVIEW_DESCRIPTION] [--preview-image PREVIEW_IMAGE]
[--story-timestamp STORY_TIMESTAMP] [--story-author STORY_AUTHOR] [--edit-timestamp EDIT_TIMESTAMP] [-m MESSAGE |
--message-from-stdin] [recipient [recipient ...]]
positional arguments:
recipient Specify the recipients' phone number.
named arguments:
-h, --help show this help message and exit
-g [GROUP_ID [GROUP_ID ...]], --group-id [GROUP_ID [GROUP_ID ...]], --group [GROUP_ID [GROUP_ID ...]]
Specify the recipient group ID.
--note-to-self Send the message to self without notification.
-m MESSAGE, --message MESSAGE
Specify the message to be sent.
--message-from-stdin Read the message from standard input.
-a [ATTACHMENT [ATTACHMENT ...]], --attachment [ATTACHMENT [ATTACHMENT ...]]
Add an attachment. Can be either a file path or a data URI. Data URI encoded attachments must follow the RFC
2397. Additionally a file name can be added, e.g. data:<MIME-TYPE>;filename=<FILENAME>;base64,<BASE64 ENCODED
DATA>.
-e, --end-session, --endsession
Clear session state and send end session message.
--mention [MENTION [MENTION ...]]
Mention another group member (syntax: start:length:recipientNumber)
--text-style [TEXT_STYLE [TEXT_STYLE ...]]
Style parts of the message text (syntax: start:length:STYLE)
--quote-timestamp QUOTE_TIMESTAMP
Specify the timestamp of a previous message with the recipient or group to add a quote to the new message.
--quote-author QUOTE_AUTHOR
Specify the number of the author of the original message.
--quote-message QUOTE_MESSAGE
Specify the message of the original message.
--quote-mention [QUOTE_MENTION [QUOTE_MENTION ...]]
Quote with mention of another group member (syntax: start:length:recipientNumber)
--quote-attachment [QUOTE_ATTACHMENT [QUOTE_ATTACHMENT ...]]
Specify the attachments of the original message (syntax: contentType[:filename[:previewFile]]), e.g.
'audio/aac' or 'image/png:test.png:/tmp/preview.jpg'.
--quote-text-style [QUOTE_TEXT_STYLE [QUOTE_TEXT_STYLE ...]]
Quote with style parts of the message text (syntax: start:length:STYLE)
--sticker STICKER Send a sticker (syntax: stickerPackId:stickerId)
--preview-url PREVIEW_URL
Specify the url for the link preview (the same url must also appear in the message body).
--preview-title PREVIEW_TITLE
Specify the title for the link preview (mandatory).
--preview-description PREVIEW_DESCRIPTION
Specify the description for the link preview (optional).
--preview-image PREVIEW_IMAGE
Specify the image file for the link preview (optional).
--story-timestamp STORY_TIMESTAMP
Specify the timestamp of a story to reply to.
--story-author STORY_AUTHOR
Specify the number of the author of the story.
--edit-timestamp EDIT_TIMESTAMP
Specify the timestamp of a previous message with the recipient or group to send an edited message.
Related[edit]
signal-cli verify signal-cli listAccounts signal-cli -a +123123456789 register
Advertising: