Question: how to get command block in minecraft beta?
Answer: Create a world that enables cheats. If you start your world in Creative mode, cheats are enabled by default. ... 
Clear out a space in the inventory. ... 
Open the chat menu. ... 
Type/give <your username> command_block. ... 
Press Enter.