Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.38 KB

File metadata and controls

55 lines (39 loc) · 1.38 KB

utils — Utility Commands

Miscellaneous tools: unit conversion, latency benchmarking, shell completions, self-update, diagnostics.

Subcommands

utils convert

Convert between TAO and RAO.

agcli utils convert --tao 1.5      # → 1500000000 RAO
agcli utils convert --rao 1000000000  # → 1.0 TAO

utils latency

Benchmark RPC endpoint latency.

agcli utils latency [--count 10]

Measures round-trip time for chain queries.

completions

Generate shell completions.

agcli completions --shell bash > ~/.bash_completion.d/agcli
agcli completions --shell zsh > ~/.zfunc/_agcli
agcli completions --shell fish > ~/.config/fish/completions/agcli.fish
agcli completions --shell powershell > _agcli.ps1

update

Self-update agcli from GitHub.

agcli update

doctor

Diagnostic check: connectivity, wallet access, chain state.

agcli doctor

Source Code

agcli handler: src/cli/system_cmds.rshandle_utils() at L184 (Convert L191, Latency L215), generate_completions() at L112, handle_update() at L331, handle_doctor() at L439

No on-chain interaction for convert/completions/update. Latency and doctor make RPC test calls.

Related Commands

  • agcli explain — Built-in concept reference
  • agcli config show — Current configuration