@HFTB That is not correct you can obtain a CPL also as a foreign.
If you have an RNE, honestly don't even bother trying to find a job in Brazil without it a Visa is good only if you come to Brazil already employed or you wanna do a part time teaching job. So if you have an RNE, the actual card not the temporary protocolo you can convert any ICAO CPL license into a Brazilian CPL, no restrictions.
If you don't hold an RNE you can get a PPL conversion and then with a flight school take the training towards the CPL, that can even be done on a Student Visa. I have met many pilots that came to Brazil to get a cheap CPL starting from their foreign PPL, and then moved back from whatever country they are from.