Permalink
Browse files

Readme updated

  • Loading branch information...
1 parent d391a8c commit a5970f183e218af4d8f0fa22fcfafa541e307acb @FGRibreau committed Dec 13, 2011
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
View
@@ -1,12 +1,12 @@
-## (Work in Progress, will be released through npm soon) ##
+`AMQP-tool` is a cli for importing and/or exporting message from/to an AMQP/RabbitMQ broker.
## Installation
$ npm install amqp-tool -g
## Usage overview
-```bash
+```
Usage: node ./bin/amqp-tool [options] [-import | -export]
Options:
@@ -36,11 +36,13 @@ into a file ...
amqp-tool --host rabbitmq.local -u user -p azerty -q queuetest --count 5000 --export > dump.json
+
### Continuously export a queue into a file
amqp-tool --host rabbitmq.local -u user -p azerty -q queuetest --export > dump.json
+
### Import all messages to a queue
from a file...
@@ -50,12 +52,12 @@ from a file...
cat dump.json | amqp-tool --host rabbitmq.local -u user -p azerty -q queuetest --import
+
### Import the first 10 messages of a file into a queue
head -n10 500messages.json | amqp-tool --host rabbitmq.local -u user -p azerty -q queuetest --import
+
### Continuously transfer message between two RabbitMQ Server (just for fun)
- amqp-tool --host rabbitmq1.local -u user -p azerty -q queue1 --export | amqp-tool \
- --host rabbitmq2.local -u user -p azerty -q queue2 --import
- ue from a file.json or `stdout`
+ amqp-tool --host rabbitmq1.local -u user -p azerty -q queue1 --export | amqp-tool --host rabbitmq2.local -u user -p azerty -q queue2 --import

0 comments on commit a5970f1

Please sign in to comment.