I am trying to get information about reward distributions (between delegators and pool operators) of a staking pool with the cardano-cli. I have tried the cardano-cli query commands but I cannot seem to find the correct command for retrieving
the delegators of a pool (until now I can only find the owners)
the rewards the delegators and pool operators received
Don’t bother. Use blockfrost.io to run queries. You can get a free account which gives you 50k queries a day. Much easier to use json, and then process via nodejs (or whatever you prefer server side) or with jquery client side in browser.