npx create-nextjs-dapp without any flags, you’ll be prompted to answer a series of questions.
How it works
The CLI uses @clack/prompts to provide a beautiful, user-friendly terminal interface. All prompts include validation, default values, and can be cancelled at any time withCtrl+C.
If you prefer to skip the prompts, use the
--yes flag to accept all defaults or provide all options via CLI flags.Prompt flow
1. Project name
The first prompt asks for your project name:- Default value:
my-dapp - Validates against npm naming rules (lowercase, no spaces, etc.)
- Shows error if name is invalid
src/cli/prompts.ts
2. Blockchain selection
Choose which blockchain you want to build on:- EVM: Ethereum and EVM-compatible chains (Polygon, Base, Arbitrum, Optimism, etc.)
- Solana: Solana blockchain
src/cli/prompts.ts
3. Wallet provider
Select your wallet connection provider (filtered based on your blockchain choice): For EVM:Only providers compatible with your selected blockchain are shown. The CLI automatically filters the list.
4. Conflict detection
If a directory with your project name already exists and contains files, you’ll see a warning:src/cli/prompts.ts
Tips for interactive mode
Use arrow keys to navigate
Use arrow keys to navigate
Cancel at any time
Cancel at any time
Press
Ctrl+C at any prompt to cancel the operation. You’ll see a friendly “See you next time!” message.See descriptions before choosing
See descriptions before choosing
Each option in the select prompts includes a hint/description shown on the right side. Read these to understand what each provider offers before making your choice.
Validation happens automatically
Validation happens automatically
Don’t worry about invalid input - the CLI validates your project name against npm naming rules and will show an error if something is wrong.
Defaults are safe
Defaults are safe
All prompts have sensible defaults:
- Project name:
my-dapp - Blockchain:
evm - Wallet: The first (recommended) option for your blockchain
Non-interactive mode
If you’re using the CLI in a CI/CD environment or prefer not to answer prompts, use the--yes flag:
- Use
my-dappas the project name - Select
evmas the blockchain - Use
rainbowkitas the wallet provider - Exit with an error if the directory already exists
Need more control?
Learn about all available CLI flags to customize your project without prompts
What happens after prompts?
Once you’ve answered all prompts, the CLI will:- Create your project directory
- Copy the base Next.js template
- Add blockchain-specific code (EVM or Solana)
- Configure your chosen wallet provider
- Install dependencies (if you used
--install) - Initialize git (if you used
--git)