Getting CEC to work

Hi all
I have the latest version of Volumio on a RP4.
I have installed the CEC client, and can switch off my TV ( via HDMI) using ssh.
Question is what Rasberry pi file do I edit, and place the command in, so it becomes a permanent command?
Many thanks