Remote Redux Dispatch CLI
A CLI tool for Redux remote dispatch. Used in remote-redux-devtools
Screenshot
Installation
$ npm install -g redux-dispatch-cli
Usage
Use redux-dispatch
or rrd
command.
# Connect to remotedev-server $ redux-dispatch connect --hostname <hostname> --port <port> # Show instance list $ redux-dispatch ls-instance # Select instance $ redux-dispatch
Run redux-dispatch --help
or redux-dispatch <command> --help
for more information.
Steps
remotedev-server (hostname default: localhost
)
Connect to $ rrd connect --hostname <hostname> --port <port>
It will create a daemon, the daemon process will exit when $HOME/.remotedev_d_port
is removed.
Show available instances
$ rrd ls-instance
Make sure have instance can dispatch action.
auto
)
Select a instance (default: $ rrd
Dispatch action
$ rrd action "{ type: 'ACTION', a: 1 }"
Credits
- Remote store create from zalmoxisus/remotedev-app
- Daemon inspired by mantoni/eslint_d.js
- Used chentsulin/react-native-counter-ios-android as a example of screenshot