Command blocks were added to Minecraft PE in Update 1.0.5 and are a redstone component that execute console commands when powered. There are currently three types of command blocks.
Impulse Command Blocks
These blocks are orange and function once they are activated.
Chain Command Blocks
These blocks are green and execute only after the command block pointing to it is processed.
Repeat Command Blocks
These blocks are purple and execute their commands once per tick as long as they are activated.
The video below is a tutorial on how to get command blocks
The Command Block is not available in the Creative Inventory and is obtained using the command /give @p command_block and is then triggered by a redstone signal. Command blocks cannot be moved by pistons and they cannot be placed or accessed in Survival mode.
The video below is a tutorial for easy, small, and simple commands for command blocks
The video below shows you how you can make a small house using command blocks in Minecraft PE 1.0.5 without using Mods.