Easy...
mkdir example-1
cd example-1
yarn init -y
yarn add next react react-dom
mkdir pages
cat <<EOF > pages/index.js
const Page = () => "Hello world!";
export default Page;
EOF
yarn dev
Didn't test. There could be typos and you need to care about the indentation of the HEREDOC.I can't do it with an arbitrary set of tools either, but that's why good tools matter and that's why you should use Next.js.