@consensys/create-web3-app
Version:
CLI tool for generating Web3 starter projects, streamlining the setup of monorepo structures with a frontend (Next.js or React) and blockchain tooling (HardHat or Foundry). It leverages the commander library for command-line interactions and guides users
21 lines (16 loc) • 499 B
text/typescript
import "dotenv/config";
import { Command } from "commander";
import { createProject } from "./utils/index.js";
async function main() {
const program = new Command()
.name("create-web3-app")
.description("Web3 starter template CLI tool.")
.arguments("[project-name]")
.action((args: string) => createProject(args))
.version("0.0.2");
program.parse(process.argv);
}
main().catch((error) => {
console.error("An unexpected error occurred:", error);
});