wallet-cli rename

July 15, 2026 · View on GitHub

Rename an account label.

Synopsis

wallet-cli rename <account> --label <new> [options]

Arguments

  • account — accountId, current label, or address to rename

Options

OptionDescription
--label <string>new unique label, 1-64 chars [required]

Plus global options.

Notes

The stable handle is always the accountId; only the label changes. Metadata-only — no master password needed.

Examples

wallet-cli rename main --label primary
✅ Renamed account
  Old label  main
  New label  primary
wallet-cli rename main-1 --label hot-hd -o json
{"schema":"wallet-cli.result.v1","success":true,"command":"rename","data":{"previousLabel":"main-1","accountId":"wlt_0y2z0gvr.1","label":"hot-hd","type":"seed","index":1,"active":true,"addresses":{"tron":"TRzaAZWRvPCcmqNETTWvmMLDi6cKwM3gbR"},"seedId":"wlt_0y2z0gvr"},"meta":{"durationMs":14,"warnings":[]}}

Output

data is the renamed account, plus previousLabel. Local command — no chain block.

FieldTypeMeaning
previousLabelstringThe old label before renaming
accountIdstringStable account id (unchanged by rename)
labelstringThe new label
typestringseed / privateKey / watch / ledger
indexnumber | nullHD derivation index; null for non-HD accounts
activebooleanWhether it is the active account
addresses.tronstringBase58 TRON address
seedIdstringOwning seed wallet id (seed accounts only)
familystringChain family, e.g. tron (watch accounts only)

Exit status

0 success · 1 execution failure · 2 usage error. See machine-interface.

See also

list · use