The Verdict: Unlikely
Citizenship by residence cannot be completed from abroad: you would need to live in Portugal on a permit for seven or ten years. Check first whether descent or marriage gives you a route from where you are.
The clock is seven years of legal residence for nationals of Portuguese-speaking countries and EU states, and ten for everyone else. It starts the day your first permit is issued.
Many permits start it: remote work for an employer or clients abroad, living on a pension or investment income, a job offer, study (a student permit counts), the golden visa, or family reunification.
A Portuguese parent or grandparent may give you a claim by descent from abroad, and three years of marriage to a Portuguese citizen allows a declaration at a consulate. Both are faster for the people they fit.