If you are outside of the US, you need to apply for US Visa at a US Consulate or a US Embassy and get H1B Visa stamping in your passport to enter US and work on H1B visa.
1
Complete DS-160 form, Online Non-immigrant Visa Application form
2
Pay US Visa Fee of $190 USD ( also called MRV fee) online or at a bank.
3
Schedule US Visa Appointments for Biometrics, Interview at CGI Federal website
4
Give Biometrics at Visa Application Center (VAC) on the appointment date
5
Attend H1B Visa Interview at Consulate or Embassy on the appointment date. Check H1B Visa Documents Checklist for the list of documents you need to carry for the interview.
6
Check US Visa Stamping Status online
7
Collect passport with H1B Visa Stamp glued in it ( assuming visa was approved)