you'll need to know your LG TV model number, its year of manufacture, and have the original remote control that came with the TV on hand (universal remotes won't work). The process may vary ...
If you want to control turning your TV on and off, which is a subscriber-only feature ... but I find that switching HDMI inputs is one of the few things that I have to grab my LG remote for regularly, ...