Skip to content

Add "new" Command #11

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add "new" Command #11

wants to merge 2 commits into from

Conversation

adrum
Copy link

@adrum adrum commented Nov 16, 2024

This command allows you to create a new project using cpx. We have a couple different repos for bootstrapping projects, so this makes it pretty easy to quickly scaffold a new project from them.

  • cpx new laravel/laravel project or cpx new laravel/laravel:^11.0 project

  • cpx new craftcms/craft project

  • cpx new symfony/skeleton project

@adrum adrum changed the title Add new Command Add "new" Command Nov 16, 2024
@imliam
Copy link
Owner

imliam commented Mar 11, 2025

What is the advantage of this command over just using composer create-project directly?

@adrum
Copy link
Author

adrum commented Mar 14, 2025

@imliam My own personal use case isn't fully realized until #12 would be merged. I have some private git repos thats aren't packages that I use for project templates. It can be a bit wordy:

composer create-project package/name --stability=dev --repository='{"type":"git", "url":"https://example.com/group/repo", "options": {"symlink": false}}' my-app.

I thought it made sense to split up #11 and #12, even though my ultimate goal is using them together.

Also, cpx new feels like a natural short command to be included, even though it does proxy to composer create-project under the hood.

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