Home

Awesome

rsmq-cli

Build Status Build Status NPM version

A RSMQ terminal client.

NPM

Install

  npm install -g rsmq-cli

Usage

  rsmq send "mymsg"

Global Options

Global options can be used by every command. Execpt the option --group tt's also possible to define your own default by using rsmq config or by editing the file ~/.rsmq-cli.

Commands

create

create a new queue if not exists

  rsmq create [global-options]

send short: sn

send a message to the queue

  rsmq send message [global-options] 

receive short: rc

receive a single message

  rsmq receive [global-options]

delete short:rm

delete a message from the queue

  rsmq delete [msgid] [global-options]

stats

get the current queue attributes and stats

  rsmq stats [global-options]

count

get the message count of a queue

  rsmq stats [global-options]

listqueues short: ls

List all queues within the namespace

  rsmq listqueues [global-options]

visibility short: vs

change the visibility of a message

  rsmq visibility [msgid] [vt] [global-options]

attributes short: attr

get or set the attributes of a queue

  rsmq attributes set [name] [value] [global-options]
  rsmq attributes get [name] [global-options]
  rsmq attributes ls [global-options]

attributes to set:

config

configurate your client. This makes it possible to redefine the defaults of the client options

  rsmq config [-g group] ls
  rsmq config [-g group] get [name]
  rsmq config [-g group] set [name] [value]

Examples:

# set the host global
rsmq config set host my.redis.server.com

# set the host of group
rsmq config set --group myenv host my.redis.server.com

# set client connection options of a group
rsmq config set --group myenv clientopt.password "myRedisSecret!"

# get the host of a group
rsmq config get --group myenv host

# get the complete configuration of a group as json
rsmq config ls --group myenv --json

# remove the host config of a group
rsmq config set --group myenv host

Release History

VersionDateDescription
0.2.02016-06-27Added the possibility to define redis client options by using --clientopt or setting it via config rsmq config set clientopt.db 0
0.1.32016-06-27fixed error handling on invalid arguments/params; removed generated code docs
0.1.22016-05-06updated dependencies and dev environment
0.1.12015-03-03first working version
0.0.12015-02-23Initial commit

NPM

Initially Generated with generator-mpnodemodule

Other projects

NameDescription
rsmqA really simple message queue based on Redis
rsmq-workera implementatio helper to create a rsmq worker
redis-notificationsA redis based notification engine. It implements the rsmq-worker to safely create notifications and recurring reports.
node-cacheSimple and fast NodeJS internal caching. Node internal in memory cache like memcached.
redis-sessionsAn advanced session store for NodeJS and Redis
obj-schemaSimple module to validate an object by a predefined schema
connect-redis-sessionsA connect or express middleware to simply use the redis sessions. With redis sessions you can handle multiple sessions per user_id.
systemhealthNode module to run simple custom checks for your machine or it's connections. It will use redis-heartbeat to send the current state to redis.
task-queue-workerA powerful tool for background processing of tasks that are run by making standard http requests.
soyerSoyer is small lib for serverside use of Google Closure Templates with node.js.
grunt-soy-compileCompile Goggle Closure Templates ( SOY ) templates inclding the handling of XLIFF language files.
backlunrA solution to bring Backbone Collections together with the browser fulltext search engine Lunr.js

The MIT License (MIT)

Copyright © 2015 mpneuried, http://www.tcs.de

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.