XF 2.0XF2 creating addon via CLI and I continue to get "no Such file or directory"

Active member

When I try to create an addon via the documentation https://xf2demo.xenforo.com/dev-docs/lets-build-an-add-on/ I run the command and it asks me for an addon ID. I put in an addon ID and it immediately spits back "No such file or directory". I then go and create the directory in src and I still continue to get the error.

XenForo developer

This is quite possibly DB related and your CLI PHP is looking for the DB connection socket at a different location than your web server. If you change your src/config.php to 127.0.0.1 instead of localhost and that fixes it, that's the cause.

Active member

This is quite possibly DB related and your CLI PHP is looking for the DB connection socket at a different location than your web server. If you change your src/config.php to 127.0.0.1 instead of localhost and that fixes it, that's the cause.