All you do is plug them in. I've seen ones with just one outlet, but I have many that have 3 outlets. It has a sensor on it that detects when it gets dark, and turns the outlets on.
Here is an example : https://www.amazon.com/Waterproof-Countdown-Grounded-Electrical-Backyard/dp/B01LAS876Y?th=1