Add cosmos cli for low-level utility functionality #1595
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Simplification and update version of PR #1552
closes #1563
To compile the 2 cli, run:
make build-cmd-cosmos
.You should have the 2 new cli in the
bin
directory:mesg-cosmos
andmesg-cosmos-daemon
.mesg-cosmos
cli is a real client. It connects to tendermint using tendermint's rpc port. It can create transaction (transfers and other cool stuff) and publish them. It exposes all cosmos modules commands. It uses a local folder to keep configs (~/.mesg-cosmos-cli
).You can run a few commands to set its config and stop passing it as flags:
mesg-cosmos-daemon
is a cli for the "server" side. It can display some useful info about an existing tendermint node (node id, pubkey) and also it is used to create new genesis. I used it to create the testnet genesis. I will publish in the doc or blog a guide on how to create a new genesis.