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.