Skip to content

tynd create

Terminal window
bunx @tynd/cli create <name>

The project name is required and may contain letters, numbers, dots, underscores, and dashes. React is the default frontend.

Flag Effect
--framework <name> react (default), vue, svelte, solid, preact, lit, or angular; a -ts suffix (react-ts) is accepted as an alias. Any other value fails with unknown framework
-t, --template <specifier> Scaffold a remote/local template through bunx giget
--no-install Skip final bun install
--no-git Skip git init
-f, --force Replace an existing real directory at the exact project target

Template scaffolding takes precedence over framework scaffolding when both are present.

Terminal window
bunx @tynd/cli create my-app
bunx @tynd/cli create my-app --framework react
bunx @tynd/cli create my-app --framework angular --no-install
bunx @tynd/cli create my-app --template github:user/repo --no-git
  • React, Vue, Svelte, Solid, Preact, and Lit: run bun create vite@latest with the matching TypeScript template.
  • Angular: runs bunx @angular/cli@latest new with SSR, Git, and install disabled before Tynd initialization.
  • --template: runs bunx giget <specifier> <target> --force before Tynd initialization.

Then tynd init adds config/backend/editor setup, git init runs unless disabled, and bun install runs unless disabled. A failed git init is a warning; a failed bun install stops with an error but leaves the scaffold in place, with the command to rerun.

create then checks the Rust toolchain the host is compiled with (Rust 1.95 or newer, see Prerequisites). A missing or too old toolchain is a warning, not an error: the project is created, but tynd dev and tynd build need Rust.

Terminal window
cd my-app
tynd dev # frontend dev server + native window (the first run compiles the native host)
tynd build # packed executable under release/<platform>-<arch>/

Before the first build, tynd doctor reports frontend assets as missing because the frontend output does not exist yet. Installers (tynd build --bundle ...) also need a bundle.identifier in tynd.config.ts; see Your First App.

--force refuses links, reparse points, and non-directory targets before replacement. A remote template and its package scripts are third-party code; review the source before installing dependencies.