Control CEC Adapter by SSH

Hello. I have a problem. Sometimes my TV thows all HDMI CEC connections (soundbar, ugoos etc). And I disable and enable the CEC Adapter via my phone Kore. Can I disable and enable the CEC Adapter via SSH script? Can smb tell me about SSH command or JRPC API command for this action?

Not sure about ssh

With Kore app should be able to navigate to settings
Input
Peripherals

Disable there/adjust settings