Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rapportive-oss/heroku-redis-cli
A heroku plugin to connect to your redis servers with a local redis-cli
https://github.com/rapportive-oss/heroku-redis-cli
Last synced: 3 months ago
JSON representation
A heroku plugin to connect to your redis servers with a local redis-cli
- Host: GitHub
- URL: https://github.com/rapportive-oss/heroku-redis-cli
- Owner: rapportive-oss
- License: mit
- Archived: true
- Created: 2011-03-26T21:45:17.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-03-26T21:45:49.000Z (over 13 years ago)
- Last Synced: 2024-03-25T23:27:13.943Z (8 months ago)
- Language: Ruby
- Homepage:
- Size: 127 KB
- Stars: 36
- Watchers: 3
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.MIT
Awesome Lists containing this project
README
A heroku plugin to talk to your redis instances on heroku.
Installation
------------Requirements:
* The heroku gem — `gem install heroku`
* A local installation of redis (or at least the redis-cli utility) — `apt-get install redis-server`
To install:
* `heroku plugins:install https://github.com/rapportive-oss/heroku-redis-cli.git`
Usage
-----* `heroku redis:info` — get run-time statistics from your redis.
* `heroku redis:monitor` — monitor commands being sent to your redis in real time.
* `heroku redis:cli` — execute custom commands against redis.
Arguments
---------Each command can take the heroku `--app APPNAME` parameter, and a `--db REDIS_URL` parameter (which defaults to `REDISTOGO_URL`) for selecting which redis to connect to.
For `heroku redis:cli`, you can run it in interactive mode:
heroku redis:cli
or specify a single command to run on the argument list:
heroku redis:cli get 10
or pipe a file of redis commands.
heroku redis:cli < script.redis
For any command can also specify any arguments that `redis-cli` expects. Where these conflict with information from the environment variable, the explicit options take precedence:
* `-h X` — connect to redis on host named X.
* `-p X` — connect to redis on port named X.
* `-a X` — execute AUTH X after connecting.
* `-n X` — execute SELECT X after connecting.
* `-r X cmd *args` — repeat the following command X times.
* `-v` — print out the version of redis-cli.Meta-fu
-------This is licensed under the MIT license, contributions welcome.