How to setup cron in yii2

I am trying to setup CRON in my yii2 project. I have already referred the following link -

This link does not explain the entire flow properly. Attached is the error which I am getting-

I am not able to find proper documentation for the same. Can anyone please explain all the config settings and the flow needed for cron setup in yii2?

Thanks in advance.