Community Solar Farm

I'm buying into a community solar farm.  The final payment will be in June 2024 when the farm becomes operational.  How do I claim the energy tax credit for this purchase?