avalanche-cli
avalanche-cli copied to clipboard
Change subnet/blockchain creation order
Closes https://github.com/ava-labs/avalanche-cli/issues/1279
With this, subnet deploy
will create a subnet id on first execution, and create a blockchain on second execution. In the middle, it is expected for the user to add validators to the subnet. subnet deploy
will check for that condition when creating the blockchain.
Ok so seems that currently with this PR, user is expected to run the deploy command ONCE, call addValidator command, and then call deploy command again -> need to call 3 commands to deploy a subnet in public network.
I think it's better for user experience if we add prompts required for adding Validators in the deploy command so that we can deploy subnet in public network only with 1 command
Also are we changing the order here? Because seems that we are already creating subnet first and then creating blockchain anyways
already implemented in CLI. subnet deploy
can be called just to create the subnet, then called again to create a blockchain.