create-bsv-app is the supported CLI and starter catalogue for new BSV
applications. It generates React, Express, and full-stack projects, copies
governed complete examples, and can add wallet capabilities to an existing
project.
npx create-bsv-app new my-app --starter full-stack --yes
cd my-app
npm run devThe CLI can also create react, express, or catalogue starters and supports
interactive, flag, JSON configuration, and local browser-UI inputs. Generated
projects record the resolved starter and layout in bsv-scaffold.json.
Interactive and browser-UI runs start new projects from React, Express, and
every capability; deselect what you do not need.
Generated projects use @bsv/sdk 4. The tx-core capability adds transaction
building blocks (TransactionBuilder from @bsv/wallet-helper, script support,
BRC-29 self-addresses and payment internalization), helpers that parse and
summarize transactions and BEEF, and a Transactions demo page. Adding a
capability to an existing project raises an outdated dependency range it needs,
leaves devDependencies and unrecognized ranges unchanged, and prints both.
A major upgrade is never silent: the interactive terminal asks before raising a
@bsv/* package it pins across a major, and --yes, --file and --ui leave it
with a warning unless --upgrade-bsv-deps is passed. Any other package that would
need a major upgrade is left and reported for manual review.
It also adds any capability the selected one requires where the layout uses it
(for example wallet-connect for tx-core when the project has a frontend),
records it in bsv-scaffold.json, and says so.
Select TerraTestNet with --network ttn or the browser configurator; the
choice is preserved in generated configuration and bsv-scaffold.json.
Use --skip-install when CI or another tool owns dependency installation.
Review generated authentication and nonce-store configuration before
production; multi-process services need a shared atomic replay store.
The package publishes an installed create-bsv-app executable for Node.js 22
or newer. Package checks validate the packed CLI in a clean consumer with
lifecycle scripts disabled. See the
package README
for the starter catalogue, modes, flags, merge rules, and security boundaries.
Apache License 2.0. See the package license.