Command not available after install with --dir option
ligne13 opened this issue · comments
Maxime Freschard commented
Hi,
after scaffolding a new package with the --dir option , the command is not found :
Error: 'my-command' is not a registered wp command. See 'wp help' for available commands.
Here's my scaffold command :
wp scaffold package ligne13/mypackage --dir=mycustomdir/ligne13/mypackage --skip-tests --skip-readme --skip-github
Files are created in the directory. A reference to the package is added in the ~/.wp-cli/packages/composer.json file :
"repositories": {
...
"ligne13/mypackage": {
"type": "path",
"url": "mycustomdir/ligne13/mypackage"
},
...
}
Did I miss something ?
Maxime Freschard commented
My mistake. I messed with the paths...