I installed this package on WP-CLI. When I run
wp login create in bash it works fine, but when I run
exec("wp login create") in PHP script WP-CLI return this error:
Error: 'login' is not a registered wp command. See 'wp help' for available commands.
Did you mean 'plugin'?
I checked the user from
exec("whoami") and it's the same. How can I find the problem?
when I run
wp package list in PHP it returns:
Error: Composer directory '/.wp-cli/packages' for packages couldn't be created: mkdir(): Permission denied