ovhcloud-cli/doc/ovhcloud_account.md
Arthur Amstutz f1f72e2ba5
doc: Improve doc of flags --filter and --format
Signed-off-by: Arthur Amstutz <arthur.amstutz@corp.ovh.com>
2025-09-24 13:45:56 +00:00

1.4 KiB

ovhcloud account

Manage your account

Options

  -h, --help   help for account

Options inherited from parent commands

  -d, --debug           Activate debug mode (will log all HTTP requests details)
  -f, --format string   Output value according to given format (expression using https://github.com/PaesslerAG/gval syntax)
                        Examples:
                          --format 'id' (to extract a single field)
                          --format 'nested.field.subfield' (to extract a nested field)
                          --format '[id, 'name']' (to extract multiple fields as an array)
                          --format '{"newKey": oldKey, "otherKey": nested.field}' (to extract and rename fields in an object)
                          --format 'name+","+type' (to extract and concatenate fields in a string)
                          --format '(nbFieldA + nbFieldB) * 10' (to compute values from numeric fields)
  -e, --ignore-errors   Ignore errors in API calls when it is not fatal to the execution
  -i, --interactive     Interactive output
  -j, --json            Output in JSON
  -y, --yaml            Output in YAML

SEE ALSO