Question: how do you apply for green card lottery?
Answer: Find out if you're eligible.
If you are eligible, file Form I-485 - Application to Register Permanent Residence or Adjust Status with USCIS, including all supporting documents and fees.
USCIS will review your application and schedule an interview with you.