There is no single "cheat code" that spawns a fully furnished mansion instantly in The Sims (1, 2, 3, or 4) on PC. However, you can achieve the result quickly using built-in cheats and building tools.
Combine motherlode × 10 + freerealestate on + Gallery mansion download = Instant luxury living in 2 minutes.