⚡ Get up and running fast with Solana dApps ⚡
Just run one simple command to generate a new project!
# npm
npm create solana-dapp@latest
# pnpm
pnpm create solana-dapp@latest
# yarn (only supports the 'latest' tag)
yarn create solana-dapp
This is a CLI that automates the initialization of predefined Solana templates (see below).
The official create-solana-dapp
templates can be found in
this repository.
You can also use create-solana-dapp
to create projects using external templates:
The --template
(or -t
) flag supports anything that giget supports
# npm
npm create solana-dapp@latest -t <github-org>/<github-repo>
# pnpm
pnpm create solana-dapp@latest -t <github-org>/<github-repo>
# yarn
yarn create solana-dapp -t <github-org>/<github-repo>
Template authors can add an init script to the package.json
file to help set up the project.
Use this script to return instructions to the user, check the anchor
and solana
versions, and replace text and files
in the project.
Contributions are welcome! Please see CONTRIBUTING.md for more info.
[!TIP] This project uses pnpm as the package manager. If you don't have it, you can install it using
corepack
:corepack enable corepack prepare pnpm@10 --activate
To install the project locally, run the following commands:
git clone https://github.com/solana-developers/create-solana-dapp.git
cd create-solana-dapp
pnpm install
pnpm build
Detailed instructions on the local development workflow are outlined in the Development Workflow section of the CONTRIBUTING guidelines.