在Yii2中,如何使用init命令在不同的目录中创建index.php?

I am using the advanced application on shared hosting. I have the following folder structure.Shared hosting folder structureTo keep things 'clean' I put all the Yii2 related files in their own directory on the server (in this case under yii2-advanced-dashboard) so it is obvious what is what on the shared hosting and in case I need to have other separate applications on the same hosting. I have followed the tutorial about Yii2 advanced on shared hosting.

My Question is, what do I need to do so that I can run the ./init command and have Yii2 create the index.php file under public_html/dashboard? I feel like I should be able to probably configure the behavior using perhaps createSymlink under environments/index.php but there is not a lot of information out there on this. Hope it all makes sense. Thanks!!

You must connect to the server and write this command there. For example, there is a ssh protocol for this. Your terminal in the ide has nothing to do with it.