Write a new stream message with autogenerated ID.

Section: Streams

Append an entry to a stream

bash
bash
XADD orders * user_id 1 total 19.99 status paid

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Streams
Get stream length
Return how many entries exist in a stream.
OpenIn sheetbashsame section
Read stream entries forward
Read entries in ascending ID order.
OpenIn sheetbashsame section
Read stream entries backward
Read entries in descending ID order.
OpenIn sheetbashsame section
Read from one or more streams
Block and read new entries from multiple streams.
OpenIn sheetbashsame section
Trim a stream
Keep the stream approximately within a max length.
OpenIn sheetbashsame section
Create a consumer group
Create a consumer group, creating the stream if missing.
OpenIn sheetbashsame section