You should wire a lead with a plug to the terminal block in the light. And don’t forget that you should ground it. Generally speaking, there will be a ground lug on the housing. If there isn’t one, connect the terminal to the ground wire.
More reading: Village Solar Street Light: Benefits And Step-by-Step Guide