In one case one person, as you say, did everything on their own and pays a couple thousand every year to keep the entity in the favourable jurisdiction. When asked if it was all above-board, they said it was one of those grey areas where they hoped the govt didn’t look too deeply into it, but so long as they weren’t making millions they weren’t worried about an audit.
The other cases asked various accounting companies to set this scenario up for them (one to establish a software engineering consulting company, others to set up other companies). The responses ranged from “yes we can do this, it’ll cost you 15-20k upfront, then 5k in annual upkeep” to “no this isn’t looked upon too well by the Portuguese govt”.