How do I list compute hosts as JSON?

Table of Contents

List compute hosts via ores.cli as JSON for piping into jq. See the CLI inventory for sibling recipes.

Question

How do I list compute hosts as JSON?

Answer

export ORES_CLI_DB_PASSWORD
./ores.cli compute hosts list ${db_args} ${log_args} --format json | jq .

Emacs 29.3 (Org mode 9.6.15)