To apply for the D8 digital nomad visa, you should first gather all required documents. Then, you need to submit them, complete the application form, attend an appointment with a Portuguese consulate, pay the initial fee, travel to Portugal, and get your D8 visa.