This package contains the @coinbase/create-cdp-app
CLI command, which allows developers to quickly bootstrap a React App using the CDP Web SDK.
This guide will help you get started with @coinbase/create-cdp-app
. You'll learn how to create a new CDP-enabled React application with just a few commands.
Before you begin, make sure you have one of the following package managers installed:
Gather your project ID and whitelist your app from the CDP Portal:
http://localhost:3000
(or wherever your app will run)You can create a new CDP app using any of these methods:
# Using pnpm
pnpm create @coinbase/cdp-app
# Using npm
npm create @coinbase/cdp-app@latest
# Using yarn
yarn create @coinbase/cdp-app
The CLI will guide you through the setup process:
Currently, create-cdp-app
offers the following template:
react
): A React application template that includes:
nextjs
): A Next.js application template that includes: