Skip to content

Message Management

Overall Usage

bash
aleph message [OPTIONS] KEY_COMMAND [ARGS]...

Options

OptionTypeDescription
--helpShow this message and exit

Key Commands

CommandDescription
getRetrieve a message from Aleph Cloud
findSearch for messages on Aleph Cloud
postPost a message on Aleph Cloud
amendAmend an existing Aleph Cloud message
forgetForget an existing Aleph Cloud message
watchWatch a hash for amends and print amend hashes
signSign an aleph message with a private key

Get a Message

Retrieve a message from Aleph Cloud

Usage

bash
aleph message get [OPTIONS] ITEM_HASH

Arguments

ArgumentTypeDescription
ITEM_HASHTEXTItem hash of the message

Options

OptionTypeDescription
--helpShow this message and exit
bash
# Retrieve a message
aleph message get ITEM_HASH

Find a Message

Search for messages on Aleph Cloud

Usage

bash
aleph message find [OPTIONS]

Options

OptionTypeDescription
--paginationINTEGERThe maximum number of messages to return [default: 200]
--pageINTEGERThe page number to display [default: 1]
--message-types[post, aggregate, store, program, instance, forget]Types of messages to search for, separated by commas
--content-typesTEXTContent types to search for, separated by commas
--content-keysTEXTSpecific content keys to search for, separated by commas
--refsTEXTReferences of messages to search for, separated by commas
--addressesTEXTSender addresses to search for, separated by commas
--tagsTEXTTags associated with the messages to search for, separated by commas
--hashesTEXTHashes of the messages to search for, separated by commas
--channelsTEXTChannels associated with the messages to search for, separated by commas
--chainsTEXTBlockchain chains associated with the messages to search for, separated by commas
--start-dateTEXTStart date for the message search (format: YYYY-MM-DD)
--end-dateTEXTEnd date for the message search (format: YYYY-MM-DD)
--ignore-invalid-messages / --no-ignore-invalid-messagesIf enabled, ignores invalid messages in the search results [default: ignore-invalid-messages]
--helpShow this message and exit
bash
# Search for messages from several addresses
aleph message find --adresses ADDRESS_1,ADDRESS_2,ADDRESS_3

# Search for messages with specific tags
aleph message find --tags TAG_1,TAG_2

# Search for messages with pagination
aleph message find --pagination 50 --page 1

Post a Message

Post a message on Aleph Cloud

Usage

bash
aleph message post [OPTIONS]

Options

OptionTypeDescription
--pathPATHPath to the content you want to post. If omitted, you can input your content directly inside the prompt
--typeTEXTText representing the message object type [default: test]
--refTEXTItem hash of the message to update
--channelTEXTAleph Cloud network channel where the message is or will be broadcasted [default: ALEPH-CLOUDSOLUTIONS]
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--debug / --no-debug[default: no-debug]
--helpShow this message and exit
bash
# Post a message by giving the path of the message
aleph message post --path PATH

# Post a new message from a file on a specific channel
aleph message post --path PATH --channel "MY_CHANNEL"

# Update a post with the prompt
aleph message post --ref REF

Amend a Message

Amend an existing Aleph Cloud message

Usage

bash
aleph message amend [OPTIONS] ITEM_HASH

Arguments

ArgumentTypeDescription
ITEM_HASHTEXTHash reference of the message to amend

Options

OptionTypeDescription
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--debug / --no-debug[default: no-debug]
--helpShow this message and exit
bash
# Amend a message without a private key file
aleph message amend ITEM_HASH

# Amend an existing message using its item hash
aleph message amend ITEM_HASH --private-key PATH

Forget a Message

Forget an existing Aleph Cloud message

Usage

bash
aleph message forget [OPTIONS] HASHES

Arguments

ArgumentTypeDescription
HASHESTEXTComma separated list of hash references of messages to forget

Options

OptionTypeDescription
--reasonTEXTA description of why the messages are being forgotten
--channelTEXTAleph Cloud network channel where the message is or will be broadcasted [default: ALEPH-CLOUDSOLUTIONS]
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--debug / --no-debug[default: no-debug]
--helpShow this message and exit
bash
# Forget a message by its hash
aleph message forget ITEM_HASH --reason Outdated content

# Forget multiple messages by their hashes
aleph message forget ITEM_HASH_1,ITEM_HASH_2 --reason Incorrect info

Watch a Message

Watch a hash for amends and print amend hashes

Usage

bash
aleph message watch [OPTIONS] REF

Arguments

ArgumentTypeDescription
REFTEXTHash reference of the message to watch

Options

OptionTypeDescription
--indentINTEGERNumber of indents to use
--debug / --no-debug[default: no-debug]
--helpShow this message and exit
bash
# Watch a message
aleph message watch REF

# Watch a message with indentation
aleph message watch REF --indent 2

Sign a Message

Sign a message that will be post on aleph

Usage

bash
aleph message sign [OPTIONS]

Options

OptionTypeDescription
--messageTEXTMessage to sign
--private-keyTEXTYour private key. Cannot be used with --private-key-file
--private-key-filePATHPath to your private key file [default: /home/$USER/.aleph-im/private-keys/ethereum.key]
--debug / --no-debug[default: no-debug]
--helpShow this message and exit
bash
# Sign a message using the prompt
aleph message sign

# Sign a message with a private key without the prompt
aleph message sign --message MESSAGE --private-key PATH