amqp-ie
v0.2.4
Published
File based import and export of AMQP messages
Downloads
5
Readme
amqp-ie
Import and export of AMQP messages to and from a dump file
Installation
To install from npm, run
npm install -g amqp-ie
Usage
$ amqp-ie -h
Usage: amqp-ie <command> -u [amqp_uri] -q [queue_name]
Commands:
export Export messages from amqp to file [aliases: export, e]
import Import messages from file into amqp [aliases: import, i]
Not enough non-option arguments: got 0, need at least 1
Export
Export messages from an AMQP server to a dump file.
$ amqp-ie export -h
export -u [uri] -q [queue] -f [file]
Options:
-v, --verbose Verbosity of the application [count]
-u, --uri The AMQP uri to connect to [required] [default: "amqp://localhost:5672"]
-q, --queue Name of the Queue that should be listened on
-c, --count How many messages should be dumped [default: 1000]
-f, --file Filename where the messages should be dumped to [default: "dump.json"]
-e, --exchange Exchange from which messages should be dumped
-t, --topic Topic which should be used for exchange dumping [default: "#"]
-h, --help Show help [boolean]
You can either use a queue or an exchange with a topic.
Import
Import a dump file into an AMQP server.
$ amqp-ie import -h
import -u [uri] -q [queue] -f [file]
Options:
-v, --verbose Verbosity of the application [count]
-u, --uri The AMQP uri to connect to [required] [default: "amqp://localhost:5672"]
-q, --queue Name of the Queue that should be listened on
-c, --count How many messages should be dumped [default: 1000]
-f, --file Filename where the messages should be dumped to [default: "dump.json"]
-e, --exchange Exchange from which messages should be dumped
-h, --help Show help [boolean]
You can either use a queue or an exchange with a topic.