Somebody did, in TFA. https://github.com/openai/openai-cli#things-to-try
Generate an image and save it locally
openai images generate --prompt "A tiny orange robot watering a houseplant"
...Export API data for a script
openai models list --format jsonl | jq '.id'
openai files list --format json > files.json