Question: how to get a command block in minecraft realms?
Answer: Go to configure your realm-, Go to world options. These options can differentiate between the three worlds., From here you can configure the command block allowance, among other things.