Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

dennisprudlo's avatar

Forge app installs dev dependencies by default

Hey guys,

I created a new site on Forge and I realized that the composer install command does not have the --no-dev flag by default so I found the development dependencies installed in the vendor/ folder.

Does anyone know if there is a specific reason for that or is this just the new default and we need to update the command for new sites?

0 likes
4 replies
sos99's avatar

Hi @dennisprudlo

you can create a service as stagging environment and you could install telescope as a dev package

you still want the ability to debug your service with

debugbar, telescope ,etc

when we want to create a production service is our responsibility to change the script and install packages without dev and etc and of course different env with production parameters only

dennisprudlo's avatar

@sos99 I just updated the composer install command to omit all dev dependencies 3 months ago :D. It was the default before, I just wondered why they changed it.

However I think --no-dev should still be the default. If I want to use a debugging tool on like a staging or production environment (telescope on prod is totally fine) I don't add the dependency as a dev-dependency.

sos99's avatar

Ok I understand your point, you can always ask them on the intercom support

interesting question

Please or to participate in this conversation.