| Crates.io | rocketmq-cli |
| lib.rs | rocketmq-cli |
| version | 0.6.0 |
| created_at | 2024-11-17 14:59:45.28885+00 |
| updated_at | 2025-08-19 14:15:08.721819+00 |
| description | Provide some command-line tools to read data from RocketMQ files |
| homepage | https://github.com/mxsm/rocketmq-rust |
| repository | https://github.com/mxsm/rocketmq-rust |
| max_upload_size | |
| id | 1451317 |
| size | 99,699 |
Provide some command-line tools to read data from RocketMQ files.
Run the following command to see usageļ¼
windows platform
cargo run --bin rocketmq-cli-rust -- --help
RocketMQ CLI(Rust)
Usage: rocketmq-cli-rust.exe <COMMAND>
Commands:
read-message-log read message log file
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
cargo run --bin rocketmq-cli-rust help read-message-log
read message log file
Usage: rocketmq-cli-rust.exe read-message-log [OPTIONS]
Options:
-c, --config <FILE> message log file path
-f, --from <FROM> The number of data started to be read, default to read from the beginning. start from 0
-t, --to <TO> The position of the data for ending the reading, defaults to reading until the end of the file.
-h, --help Print help
-V, --version Print version
Linux platform
$ cargo run --bin rocketmq-cli-rust -- --help
RocketMQ CLI(Rust)
Usage: rocketmq-cli-rust <COMMAND>
Commands:
read-message-log read message log file
help Print this message or the help of the given subcommand(s)
Options:
-h, --help Print help
-V, --version Print version
$ cargo run --bin rocketmq-cli-rust help read-message-log
read message log file
Usage: rocketmq-cli-rust read-message-log [OPTIONS]
Options:
-c, --config <FILE> message log file path
-f, --from <FROM> The number of data started to be read, default to read from the beginning. start from 0
-t, --to <TO> The position of the data for ending the reading, defaults to reading until the end of the file.
-h, --help Print help
-V, --version Print version$ cargo run --bin rocketmq-namesrv-rust -- --help
example for read-message-log (Linux platform)
$ ./rocketmq-cli-rust read-message-log -c /mnt/c/Users/ljbmx/store/commitlog/00000000000000000000 -f 0 -t 2
file size: 1073741824B
+----------------------------------+
| message_id |
+----------------------------------+
| AC16B00100002A9F0000000000000000 |
+----------------------------------+
| AC16B00100002A9F000000000000032A |
+----------------------------------+