To enter the console press backslash or tilde or ö. Depending on your keyboard layout.
Enter the admin mode:
This unlocks all buildings. Building is free, and you can add and remove resources to buildings.
Add resource to a building:
a Wood 10
Remove resource from a building:
r Wood 10