This question already has an answer here:
I'm trying to use command blocks for my next creation, but I'm making it so that command blocks make it for me when I press a button. However, I need to have a command that once placed in a command block, it will place another command block with a command already in it (when given a redstone signal, that is).
I'm on Education Edition, so only the Bedrock Edition type of command style will work - Java Edition won't. I have looked for a command that does this,but I can not find one.