If you're eligible for a green card, you'll generally go through one of two paths depending on where you currently are.
Adjustment of status: generally for people already in the U.S.
If lawfully present, you may adjust status without leaving the country, generally involving an application, biometrics, and often an interview.
Consular processing: generally for people outside the U.S.
If outside the U.S., the process generally happens through an embassy or consulate abroad, ending in an interview before a visa is issued.
Why the choice isn't always up to you
Your location, how you entered, and immigration history generally affect which path is available.
Pros and cons people commonly weigh
Adjustment generally allows you to remain in the U.S. throughout; consular processing can sometimes move faster but generally requires travel.
Next step
An immigration attorney can help determine which path fits your situation.