Skip to content

fix(console): use platform-cli binary + v2.0.0 command names in generated CLI commands#4317

Merged
1 commit merged into
masterfrom
console/fix-platform-cli-v2-commands
Jun 30, 2026
Merged

fix(console): use platform-cli binary + v2.0.0 command names in generated CLI commands#4317
1 commit merged into
masterfrom
console/fix-platform-cli-v2-commands

Conversation

@owenwahlgren

Copy link
Copy Markdown
Contributor

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:

  • Binary name: platform … → the binary is platform-cli (renamed in platform-cli #34) → command not found.
  • Renamed commands (v2.0.0 breaking renames): the old names now error with unknown command.

Fix

Updated the generated command strings across 12 Console files:

Old New
platform … platform-cli …
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

Commands that only needed the binary rename (keys, wallet, transfer, subnet create, chain create, l1 register-validator, l1 disable-validator) were updated too.

Notes

…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).
@vercel

vercel Bot commented Jun 29, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
builder-hub Ready Ready Preview, Comment Jun 29, 2026 6:41pm

Request Review

@navillanueva navillanueva closed this pull request by merging all changes into master in b02ae49 Jun 30, 2026
@navillanueva navillanueva deleted the console/fix-platform-cli-v2-commands branch June 30, 2026 07:57
arminreiter pushed a commit to avalancheteam1/builders-hub that referenced this pull request Jun 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants