Changing code blocks from python to yaml
Merge pull request #14004 from nmadhok/improve-cmd-state-docs

Improving state docs for cmd