Skip to content

composer create-project allow requiring additional packages #12370

@shyim

Description

@shyim

Is your feature request related to a problem? Please describe.
Right now you can create a new project using composer create-project xxx to install an additional package, you need to cd into that folder and run composer req

Describe the solution you'd like
It would be nice to provide in documentation a one-liner to setup a project + additional packages like

# local setup
composer create-project shopware/production

# docker setup
composer create-project shopware/production --require 'shopware/docker-local:*'

It would just add that package to the root composer.json before it runs composer install

Describe alternatives you've considered
curl + bash script into docs as a one liner, composer create with an flag would be more trustworhy

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels
    No fields configured for Feature.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions