How to get my 24 word seed using bitcoin-cli I've tried:
bitcoin-cli sethdseed 'word1 word2 ...'
but i got invalid private key.
please help me getting my 24 word seed using bitcoin core
You can't.
Bitcoin Core is not BIP39 compliant.