create-wagmi
Get up and running quickly with wagmi by using the create-wagmi
CLI. This tool interactively scaffolds a new wagmi project for you so you can start building instantly without the hassle of setting up git
, installing packages, worrying about TypeScript configuration, etc.
To get started, create-wagmi
can be instantiated with one of your favorite package managers:
npm init wagmi
pnpm create wagmi
yarn create wagmi
Templates
By default, create-wagmi
scaffolds a basic Next.js application with wagmi. However, you can specify a custom template by passing the --template
/-t
flag:
npm init wagmi -- --template next-with-connectkit
pnpm create wagmi --template next-with-connectkit
yarn create wagmi --template next-with-connectkit
create-wagmi
currently comes with the following templates:
next
(default): A Next.js wagmi project.next-with-connectkit
: A Next.js wagmi project with ConnectKit included.next-with-rainbowkit
: A Next.js wagmi project with RainbowKit included.vite-react
: A Vite (React) wagmi project.create-react-app
: A Create React App wagmi project
Options
--template/-t
Specify a custom template to bootstrap the app with.
--npm
Use npm as the package manager for the app.
--pnpm
Use pnpm as the package manager for the app.
--yarn
Use yarn as the package manager for the app.
--skip-git
Skips initializing the project as a git repository