If you run the CLI command:

bin/magento ...

and get the error:

bash: bin/magento: Permission denied

You'll need to add execute (x) permission to the file bin/magento.

To do this, please run the command:

chmod +x bin/magento

You can also use the next command to avoid the issue (php before bin/magento):

php bin/magento ...