On many occasions, I'd like to quickly connect to a local or remote node via web3.js and query for things directly from the console. I imagine something like:
web3-cli set --host http://localhost:8545
web3-cli eth --get-accounts
The first command would switch over to the given host, and when you query for accounts or others things it connects to that
HttpProvider in the backend.
Is this possible? I've seen David Knott from OmiseGo created a nice cli for plasma-mvp, so why not upgrade the idea to a general-purpose, handy terminal tool?
Note: I'm already running node in the console, but it's not the same sweet level of flexibility provided by a cli.