create next js application code example Example 1: create next js app yarn yarn create next-app Example 2: make nextjs project npx create-next-app # or yarn create next-app