From 24ad07f44134d3227cc99a39ad771dc9c3a3f7ed Mon Sep 17 00:00:00 2001 From: "May.Buzaglo" Date: Wed, 2 Sep 2026 00:31:20 +0300 Subject: [PATCH] fxadmin update decode command readme Signed-off-by: May.Buzaglo --- tools/fxadmin/docs/README.md | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tools/fxadmin/docs/README.md b/tools/fxadmin/docs/README.md index 603f1094..fc8b5f51 100644 --- a/tools/fxadmin/docs/README.md +++ b/tools/fxadmin/docs/README.md @@ -195,15 +195,24 @@ The decode command extracts the `common.Config` embedded in a binary config bloc This command is typically used after retrieving the latest configuration from the ledger. ```bash -fxadmin decode \ - --block last_config.pb \ - --output current_config.json +fxadmin decode --output ``` + +Example: +```bash +fxadmin decode last_config.pb --output current_config.json +``` + +**Arguments** + +| Argument | Required | Description | +|---------------------| :------: |--------------------------------------------------| +| `` | yes | Path to the protobuf config block file to decode | + **Flags** | Flag | Required | Description | |------------| :------: |--------------------------------------------------| -| `--block` | yes | Path to the protobuf config block file to decode | | `--output` | yes | Path to the output `common.Config` JSON file, derived from the block | --- @@ -597,7 +606,7 @@ flow can be run by that admin: fxadmin ledger --config=admin.yaml --current-block=current_block.pb config latest --output last_config.pb # 2. Decode it to JSON. -fxadmin decode --block=last_config.pb --output=current_config.json +fxadmin decode last_config.pb --output=current_config.json # 3. Edit manually: copy the current_config.json to modified_config.json and edit. @@ -628,7 +637,7 @@ transaction: fxadmin ledger --config=admin_org1.yaml --current-block=current_block.pb config latest --output last_config.pb # 2. Decode it to JSON. -fxadmin decode --block=last_config.pb --output=current_config.json +fxadmin decode last_config.pb --output=current_config.json # 3. Edit manually: copy the current_config.json to modified_config.json and edit.