fix(console): use platform-cli binary + v2.0.0 command names in generated CLI commands#4317
Merged
1 commit merged intoJun 30, 2026
Merged
Conversation
…ated CLI commands The Builder Console generates copy-paste platform-cli commands, but they used the old binary name `platform` and pre-v2.0.0 command names, so the commands failed (command not found / unknown command). Update the generated commands: - platform -> platform-cli (binary renamed in platform-cli#34) - validator add -> validator add-permissionless - validator delegate -> validator add-permissionless-delegator - subnet convert-l1 -> subnet convert-to-l1 - l1 set-weight -> l1 set-validator-weight - l1 add-balance -> l1 increase-validator-balance 12 files, string-content only (no logic changes).
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
ashucoder9
approved these changes
Jun 29, 2026
arminreiter
pushed a commit
to avalancheteam1/builders-hub
that referenced
this pull request
Jun 30, 2026
…li-v2-commands
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The Builder Console generates copy-paste platform-cli commands (the "Run via CLI" snippets in the staking, L1, subnet, transfer, and onboarding tools). Those strings were stale after platform-cli v2.0.0 and would fail if a user pasted them:
platform …→ the binary isplatform-cli(renamed in platform-cli #34) →command not found.unknown command.Fix
Updated the generated command strings across 12 Console files:
platform …platform-cli …validator addvalidator add-permissionlessvalidator delegatevalidator add-permissionless-delegatorsubnet convert-l1subnet convert-to-l1l1 set-weightl1 set-validator-weightl1 add-balancel1 increase-validator-balanceCommands that only needed the binary rename (
keys,wallet,transfer,subnet create,chain create,l1 register-validator,l1 disable-validator) were updated too.Notes
//platform chain idtest comments and a// validator add/remove/weightcode comment.platform→platform-clirename in docs).