npx create-next-app folder-name
# Automatic Setup
# We recommend creating a new Next.js app using create-next-app, which sets up everything automatically for you. To create a project, run:
$ npx create-next-app@latest
# or
$ yarn create next-app
# or
$ npm create next-app
# If you want to start with a TypeScript project you can use the --typescript flag:
$ npx create-next-app@latest --typescript
# or
$ yarn create next-app --typescript
# or
$ npm create next-app --typescript
#After the installation is complete:
#Run npm run dev or yarn dev or pnpm dev to start the development server on http://localhost:3000
#Visit http://localhost:3000 to view your application