using npx-generate-react-cli nextjs code example Example 1: create next app npx create-next-app my-app Example 2: create next js app yarn yarn create next-app