This is not a solar powered system. To get the amount of lumens needed to light up a half-court area reliably, a hardline is required.
Out of the box, you're able to run an extension cord to the light and plug it in at the base but optimally you'll want an electrician to permanently hard wire it into a switch.