To obtain the command block, you need to use the command: /give [name player] command_block, a command block will be spawned in the players inventory.
Minecraft Command Block Guide : 5 Steps - Instructables
This summary was compiled by our editorial team from publicly available information for quick reading. For full details, refer to original reporting where available.