ddev: error message and instructions for `create-project` are unclear

Is there an existing issue for this?

  • I have searched the existing issues

Output of ddev debug test

Expand `ddev debug test` diagnostic information
[COPY-PASTE HERE THE OUTPUT OF `ddev debug test`]

Expected Behavior

I ran ddev composer create-project joachim-n/drupal-core-development-project, thinking I would start a new Drupal project for core development, and got:

'ddev composer create-project' is unsupported. Please use 'ddev composer create'
for basic project creation or 'ddev ssh' into the web container and execute
'composer create-project' directly.

This isn’t completely accurate. Running ddev composer create in a new folder produces an error message:

could not find a project in /Users/joachim/Sites. Have you run 'ddev config'? Please specify a project name or change directories: no .ddev/config.yaml file was found in this directory or any parent

So I ran ddev config and that asked me what sort of project I want:

Project Type [backdrop, craftcms, django4, drupal10, drupal6, drupal7, drupal8, drupal9, laravel, magento, magento2, php, python, shopware6, silverstripe, typo3, wordpress]

What type should I pick if I want an empty project to then run composer create-project inside, as suggested by the first error message?

Actual Behavior

Clearer instructions 😃

Steps To Reproduce

No response

Anything else?

No response

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 15 (14 by maintainers)

Most upvoted comments

That works!

But the error message could do to point the user in the right direction.