yii2 error when trying to install all generats files

52 Views Asked by At

When I am trying to type init --env=Development --overwrite=n in command line on Linux

I have an error bash: --env=Development: command not found

1

There are 1 best solutions below

0
On BEST ANSWER

On linux, for security purposes, you have to refer to the current directory specifically.

You will have to use

./init --env=Development --overwrite=n

Also take a look here for a more extensive explanation.