At the moment, through verbal statement. Note: If the NIF assignment is made as a consequence of the Citizen Card application, the deadline for the provision of the service is based on the arrival of the request to the Tax and Customs Authority, being on average three days.
https://eportugal.gov.pt/en/servicos/pedir-o-numero-de-identificacao-fiscal-para-pessoa-singular

