If you run the CLI command:

bin/magento ...

and get the error:

bash: bin/magento: Permission denied

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

For this, please run the CLI command:

chmod +x bin/magento

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

php bin/magento ...