Bitcoin-cli -regtest getaccount, listaccounts, setaccount, method not found
accounts method was deprecated in v0.17 and was removed since v0.18. accounts was replaced by label and it provides more flexibility as compared to before such as setting label on any address, not just receiving address. It also irons out issues raised in the past. If you are used to using accounts to mimic separate wallets, you now have an option to use separate wallets in separate wallet files in Bitcoin Core.

So according to the commands you are looking, you will replace them by:


getaccount with getaddressinfo
listaccounts with listlabels
setaccount with setlabel


You can see the full documentation of accounts vs labels in the v0.17 release docs.