### What? Previously, `.env` & `.env.example` modifications during `cpa` occurred after a project was initialized. ### Why? As a result, these modifications would be seen as uncommitted modifications in the project repo. ### How? Now, we make these modifications in the `createProject` script before the project is initialized. Also, updates the **template** `.env.example` files to use the generic db name `your-database-name` for better alignment & clarity. Fixes #10232
Create Payload App
CLI for easily starting new Payload project
Usage
USAGE
$ npx create-payload-app
$ npx create-payload-app my-project
$ npx create-payload-app -n my-project -t website
OPTIONS
-n my-payload-app Set project name
-t template_name Choose specific template
Available templates:
blank Blank Template
website Website Template
ecommerce E-commerce Template
plugin Template for creating a Payload plugin
payload-demo Payload demo site at https://demo.payloadcms.com
payload-website Payload website CMS at https://payloadcms.com
--use-npm Use npm to install dependencies
--use-yarn Use yarn to install dependencies
--use-pnpm Use pnpm to install dependencies
--no-deps Do not install any dependencies
-h Show help