There's no cheat code for it, but there are two reliable earners. Chat with Farmer Brown and you can pick up a LEGO tree, which quietly grows bricks for you every single day.
The other route is the Magazine Module at rank 1, which delivers up to 75 bricks daily. Set both up and the bricks start adding up on their own.