craftcms / docs

Documentation for Craft CMS, Craft Commerce, and other official products.
https://craftcms.com/docs
38 stars 144 forks source link

Change composer -y to --no-interaction, 'The "-y" option does not exist' #603

Closed Bubalubs closed 2 months ago

Bubalubs commented 2 months ago

Description

Composer Error: The "-y" option does not exist.

--no-interaction or -n does the intended instead.

https://getcomposer.org/doc/03-cli.md#global-options

netlify[bot] commented 2 months ago

Deploy request for craft-docs pending review.

Visit the deploys page to approve it

Name Link
Latest commit 7c6c56d8f383aad3b71342ffbf6d30bd7d4948a6
AugustMiller commented 2 months ago

I'm curious where you're seeing this error… to my knowledge, -y is a DDEV flag that suppresses any of its prompts. Keep in mind ddev composer create is a thin wrapper around the native composer create-project command!

Under the hood, DDEV appears to run something like this:

composer create-project --no-scripts craftcms/craft --no-install

Here is some context, from DDEV maintainer Randy!

FWIW, I don't see evidence of this flag in DDEV's options… but they are acknowledged in the Go source.

Bubalubs commented 2 months ago

Ooh thank you, very good info. Sounds like it's more something needing adding to DDEV docs then! 😊