Skip to main content

CLI: create-qorechain-dapp

Scaffold a new QoreChain dApp from an official starter template.

# interactive
npm create qorechain-dapp my-dapp
# or
npx create-qorechain-dapp my-dapp

# non-interactive (CI)
npx create-qorechain-dapp my-dapp --template evm-solidity --yes --no-install

Published to npm as create-qorechain-dapp (0.3.0).

Templates

TemplateDescription
evm-solidityA Solidity Counter contract + a viem deploy/interact script (@qorechain/evm).
fullstack-webA Vite + React + TypeScript dApp reading balances and tokenomics (@qorechain/sdk).

Options

FlagDescription
-t, --template <name>Template to use (evm-solidity | fullstack-web).
--network <name>Network preset (testnet | mainnet).
--package-manager <pm>pnpm | npm | yarn.
-y, --yesSkip prompts and use defaults.
--no-installDo not install dependencies after scaffolding.
--localRewrite @qorechain/* deps to local file: links into the SDK monorepo.
-h, --helpShow help.
-v, --versionPrint the version.

Local development against the workspace

@qorechain/* packages are published to npm; once published a plain npm install works. Before then, use --local to point the scaffolded project at the monorepo packages (build them first with pnpm -r build):

npx create-qorechain-dapp my-dapp --template fullstack-web --local