CPA projects generated with the `vercel-postgres` db type were not receiving the proper DB env vars in the .env.example & .env files With the `vercel-postgres` db type, the DB env var needs to be `POSTGRES_URL` not `DATABASE_URI`. Additionally, updates the generated .env.example file to show generic env var strings. #### Blank w/ MongoDB: - `.env.example`: ``` DATABASE_URI=mongodb://127.0.0.1/your-database-name PAYLOAD_SECRET=YOUR_SECRET_HERE ``` - `.env`: ``` # Added by Payload DATABASE_URI=mongodb://127.0.0.1/test-cpa-blank-mongodb PAYLOAD_SECRET=aef857429edc7f42a90bb374 ``` #### Blank w/ Postgres: - `.env.example`: ``` DATABASE_URI=postgres://postgres:<password>@127.0.0.1:5432/your-database-name PAYLOAD_SECRET=YOUR_SECRET_HERE ``` - `.env`: ``` # Added by Payload DATABASE_URI=postgres://postgres:<password>@127.0.0.1:5432/test-cpa-blank-postgres PAYLOAD_SECRET=241bfe11fbe0a56dd9757019 ``` #### Blank w/ SQLite: - `.env.example`: ``` DATABASE_URI=file:./your-database-name.db PAYLOAD_SECRET=YOUR_SECRET_HERE ``` - `.env`: ``` # Added by Payload DATABASE_URI=file:./test-cpa-blank-sqlite.db PAYLOAD_SECRET=a7808731b93240a73a11930c ``` #### Blank w/ vercel-postgres: - `.env.example`: ``` POSTGRES_URL=postgres://postgres:<password>@127.0.0.1:5432/your-database-name PAYLOAD_SECRET=YOUR_SECRET_HERE ``` - `.env`: ``` # Added by Payload POSTGRES_URL=postgres://postgres:<password>@127.0.0.1:5432/test-cpa-blank-vercel-postgres PAYLOAD_SECRET=af3951e923e8e4662c9c3d9e ``` Fixes #9996
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