adm:valet dyn$ wp valet new my-project --project=bedrock
Warning: No WordPress install found. If the command ‘valet new my-project’ is in a plugin or theme, pass --path=path/to/wordpress.
Error: ‘valet’ is not a registered wp command. See ‘wp help’ for available commands.
–
I followed the guide to a tee. I’ve got brew services nginx, php, mysql all running on boot, and working fine.
Anyone have any suggestions?
Software:
System Software Overview:
System Version: macOS 10.12.6 (16G1815)
Kernel Version: Darwin 16.7.0
Boot Volume: Macintosh HD
Boot Mode: Normal
Computer Name: adm
User Name: dyn (dyn)
Secure Virtual Memory: Enabled
System Integrity Protection: Enabled
Time since boot: 24 minutes
I had to do that and echo $PATH to confirm that it was actually at the end of my path in .bashrc.
It’s definitely there.
This is just a small portion of my echo $PATH:
pt/X11/bin:/Applications/MAMP/Library/bin:/Users/dyn/Library/Android/sdk/tools:/Users/dyn/Library/Android/sdk/platform-tools:~/.composer/vendor/bin:/Users/dyn/.rvm/bin:/Users/dyn/.composer/vendor/bin
adm:Desktop dyn$ ls /Users/dyn/.composer/vendor/bin
laravel php-parse psysh valet var-dump-server
Sure valet might be installed in your $PATH fine, but my question was in regards to identifying whether or not the aaemnnosttv/wp-cli-valet-command package for WP-CLI was installed as the error message indicates that it is not. Running wp help and then checking the subcommand list for valet will confirm that. Example output:
$ wp help
NAME
wp
DESCRIPTION
Manage WordPress through the command-line.
SYNOPSIS
wp <command>
SUBCOMMANDS
...
valet White-glove turn-key install services. # ← confirm this exists
...
Strange. Does it display in the dependencies list in ~/.wp-cli/packages/composer.json? Are you able to install other third-party WP-CLI packages? You could try installing https://github.com/alwaysblank/blade-generate to test this.