For foreign and mixed-nationality couples who want to get officially married in Portugal, this route is handled through a dedicated service brand: Marry in Portugal.
For a detailed overview of the document side, see documents for marriage in Portugal.
Non-resident couples can read more about the route here: non-resident couples getting married in Portugal.
To start, use Marry in Portugal to check your marriage case.