Question: how to use command blocks 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.