That is an outdated format that is no longer valid. Please see the example lower down on this page:
configurration.yaml
command_line:
- switch:
name: Relay switch
command_on: "curl -k 'http://192.168.1.4/30000/01'"
command_off: "curl -k 'http://192.168.1.4/30000/00'"
Also in future please format your pasted config correctly for the forum. See https://community.home-assistant.io/t/how-to-help-us-help-you-or-how-to-ask-a-good-question/114371#oneone-format-it-properly-16 or https://community.home-assistant.io/t/how-to-format-your-code-in-forum-posts/702762