@@ -42,7 +42,7 @@ export async function executeRemoteTemplate(
4242 // TODO: prompt for project name if not provided for degit
4343 // Template not found - use package manager runner (npx/pnpm dlx/etc.)
4444 if ( ! isGitHubTemplate ) {
45- // templateInfo.command is the npm package name (e.g. "create-vite", "@tanstack/create-start ")
45+ // templateInfo.command is the npm package name (e.g. "create-vite", "@tanstack/cli ")
4646 const packageExists = await checkNpmPackageExists ( templateInfo . command ) ;
4747 if ( ! packageExists ) {
4848 if ( ! silent ) {
@@ -106,7 +106,7 @@ export async function runRemoteTemplateCommand(
106106}
107107
108108function autoFixRemoteTemplateCommand ( templateInfo : TemplateInfo , workspaceInfo : WorkspaceInfo ) {
109- // @tanstack /create-start @latest, create-vite@latest
109+ // @tanstack /cli @latest , create-vite@latest
110110 let packageName = templateInfo . command ;
111111 const indexOfAt = packageName . indexOf ( '@' , 2 ) ;
112112 if ( indexOfAt !== - 1 ) {
@@ -118,7 +118,11 @@ function autoFixRemoteTemplateCommand(templateInfo: TemplateInfo, workspaceInfo:
118118 templateInfo . args . push ( '--no-immediate' ) ;
119119 // don't present rolldown option to users
120120 templateInfo . args . push ( '--no-rolldown' ) ;
121- } else if ( packageName === '@tanstack/create-start' ) {
121+ } else if ( packageName === '@tanstack/cli' ) {
122+ // ensure create command is used
123+ if ( templateInfo . args [ 0 ] !== 'create' ) {
124+ templateInfo . args . unshift ( 'create' ) ;
125+ }
122126 // don't run npm install after project creation
123127 templateInfo . args . push ( '--no-install' ) ;
124128 // don't setup toolchain automatically
@@ -136,7 +140,7 @@ function autoFixRemoteTemplateCommand(templateInfo: TemplateInfo, workspaceInfo:
136140 // don't run git init on monorepo
137141 if ( packageName === 'create-nuxt' ) {
138142 templateInfo . args . push ( '--no-gitInit' ) ;
139- } else if ( packageName === '@tanstack/create-start ' ) {
143+ } else if ( packageName === '@tanstack/cli ' ) {
140144 templateInfo . args . push ( '--no-git' ) ;
141145 }
142146 }
0 commit comments