yarn create next code example Example 1: create next app npx create-next-app my-app Example 2: create next js app yarn yarn create next-app