Skip to content

fix command to create the project #712

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

carstenjaksch
Copy link
Contributor

create-project is not supported anymore

Bildschirmfoto 2025-07-02 um 15 23 28

create-project is not supported anymore
@carstenjaksch carstenjaksch requested a review from a team as a code owner July 2, 2025 13:25
Copy link

netlify bot commented Jul 2, 2025

👷 Deploy request for craft-docs pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 218d5c2

@AugustMiller
Copy link
Contributor

AugustMiller commented Jul 2, 2025

I'm not aware of this changing. Are you sure your DDEV installation is up-to-date?

$ ddev -v

ddev version v1.24.6

$ ddev help composer

Executes a Composer command at the Composer root in the web container. Generally,
any Composer command can be forwarded to the container context by prepending
the command with 'ddev'.

Usage:
  ddev composer [command] [flags]
  ddev composer [command]

Aliases:
  composer, co

Examples:
ddev composer install
ddev composer require <package>
ddev composer outdated --minor-only
ddev composer create-project drupal/recommended-project .

Available Commands:
  create-project Executes 'composer create-project' within the web container with the arguments and flags provided

Global Flags:
      --skip-hooks   If true, any hook normally run by the command will be skipped.

Use "ddev composer [command] --help" for more information about a command.

(At one point, DDEV did use the create shorthand, but moved toward full compatibility with Composer’s create-project!)

@carstenjaksch
Copy link
Contributor Author

Yeah my bad, ddev was out of date.

Now both commands work.

I would prefer the shorter one, but totally understand if you want to stay consistent with the default composer command, since composer does not support create as far as I know.

@AugustMiller
Copy link
Contributor

Understood! I don't think we can recommend it, as it's no longer publicly documented.

FYI, they do provide a ddev co shortcut for all composer sub-commands!

ddev co create-project ...

You can also set up a custom global command that simplifies the syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants