Install stellar and soroban CLIs when installing either #1350
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.
What
Install the
stellar
andsoroban
CLI binaries when installing either thestellar-cli
orsoroban-cli
crate.Why
In short this change is being made to improve the developer experience during the rename of the CLI.
The CLI is transitioning from being the Soroban CLI to the Stellar CLI, and with that the binary is also transitioning from being
soroban
tostellar
. It'll take a while for that rename to reverberate through the community, docs, tutorials, video walkthroughs, etc. During that transition period this rename should be a non-event, uninteresting, boring, and zero impact. For an undetermined (read long) period of time both thestellar-cli
andsoroban-cli
crates will be published so that if someone is following an old tutorial or docs in a blog somewhere, the install instructions will continue to work.This change takes it step further and makes it so that no matter which crate you install, you get both binaries. This is to help the situation where someone reads an install tutorial and installs the
soroban-cli
, then reads a newer tutorial that uses thestellar
binary, they'll find the example commands work because thesoroban-cli
installed both. We've already had at least one person in the community fall into this situation where they did the reverse and installed thestellar-cli
crate then followed a tutorial that used thesoroban
binary.Note that it will be possible to identify which crate a binary was installed from, by running the
version
subcommand. For either binary, the name displayed will be the name of the crate the binary was installed from.