Introducing a new way to review your PRs.

Read the announcement

solana-foundation / create-solana-dapp

The fastest way to create Solana apps 🚀 Templates 👉 https://github.com/solana-foundation/templates

View on GitHub

18 documents · Updated Nov 6, 2026

overview

Knowledge Base updated: 2026-11-05

create-solana-dapp knowledge base

Orientation

create-solana-dapp is a TypeScript CLI and library for selecting a Solana starter template, preparing a destination workspace, applying template-specific customization, and installing dependencies.

The public CLI and API resolve user input into a creation workflow. Template catalogs and prompt definitions determine which starter can be used; scaffolding, initialization scripts, and system adapters turn that selection into a runnable project.

Critical state crosses the workflow as resolved CLI options, template metadata, initialization-script configuration, target-path/package metadata, and task results. Release automation is defined independently in GitHub workflows, Changesets, and package metadata.

flowchart TD
  U[Developer] --> CLI[CLI entrypoint]
  CLI --> Args[Argument handling]
  Args --> Orchestrator[Create-app orchestration]
  Orchestrator --> Catalog[Template catalog]
  Catalog --> Prompts[Menu and prompts]
  Prompts --> Selected[Selected template and options]
  Selected --> Pipeline[Scaffolding pipeline]
  Pipeline --> Target[Target path and metadata]
  Pipeline --> Acquire[Template acquisition]
  Pipeline --> Init[Initialization scripts]
  Pipeline --> Install[Dependency installation]
  Pipeline --> Adapters[Task runtime and system adapters]
  Init --> Generated[Generated Solana project]
  Install --> Generated
  Release[Changesets and GitHub workflows] --> Package[Published CLI package]

Glossary

  • Template catalog — remote metadata describing template groups, starter repositories, menus, and supported options.
  • Initialization script — template-provided declarative configuration for mutating a generated project and presenting follow-up instructions.
  • Target path — destination directory validated and prepared before template sources are acquired.
  • Template option — selected template-specific input that can drive prompts and initialization behavior.
  • Changeset — release metadata used to describe package version changes for publication automation.

Invariants

  • Public package entrypoints and executable configuration remain aligned with implementation exports and CLI handoff (package.json, src/**).
  • A generated project is prepared only after destination validation succeeds (src/**/target*, src/**/project*).
  • Template selection uses catalog identity and option metadata rather than treating prompt labels as authoritative identifiers (src/**/template*).
  • Initialization operations are driven by validated script configuration before filesystem mutations are applied (src/**/initialization*).
  • Publication remains Changeset-driven and workflow-controlled (.changeset/**, .github/…/publish-pkg-pr-new.yml, package.json).

Routing table