This is a simple command for listing out all the address variants given a privkey, a feature which seems obvious but missing (unless I'm not finding the command!).
$ ./bitcoin-cli -regtest getnewaddress
bcrt1qss60qxqt3vk6kxm4j6ufwp725f89esvm8lhvf6
$ ./bitcoin-cli -regtest dumpprivkey bcrt1qss60qxqt3vk6kxm4j6ufwp725f89esvm8lhvf6
cPsQTSmMZ8e3AEUWGjS73f5R364yJxH6RxcgnwbHjbKbFPUP2Dtu
$ ./bitcoin-cli -regtest deriveaddressesfromprivkey cPsQTSmMZ8e3AEUWGjS73f5R364yJxH6RxcgnwbHjbKbFPUP2Dtu
{
"p2pkh": "msZzuZcZUYP8pdLZ3BktxFNZJQNR8ZBQjd",
"segwit": "bcrt1qss60qxqt3vk6kxm4j6ufwp725f89esvm8lhvf6",
"p2sh": "2N6EW9Va47woKmpzUmkqhpzemabnJAZudWW"
}