Skip to content

Add addDependencies option to TurboGeneratorOptions#11504

Draft
volkanunsal wants to merge 7 commits intovercel:mainfrom
volkanunsal:patch-1
Draft

Add addDependencies option to TurboGeneratorOptions#11504
volkanunsal wants to merge 7 commits intovercel:mainfrom
volkanunsal:patch-1

Conversation

@volkanunsal
Copy link

Description

The use case for this is programmatic creation of workspaces using turbo gen workspace --copy=.... The commandline utility can capture all the required flags to accomplish this without human intervention, except for one: addDependencies.

This PR adds addDependencies as a flag to CLI command, to the TurboGeneratorCLIOptions type, and handles it in dependencies prompt, so that it returns early if opts.addDependencies === false.

This change is backwards compatible. It's only going to be executed if --add-dependencies is explicitly set to false via CLI.

Testing Instructions

  1. Run turbo gen workspace --copy=https://github.com/cloudflare/templates/tree/main/astro-blog-starter-template -n marketing-site -t app --destination=apps/marketing-site2 --add-dependencies=false
  2. It should generate an app without requiring human confirmation.

This is to allow folks to use commandline to fully specify the options of `turbo gen workspace` subcommand.
Returns early if addDependencies option is false.
This allows us to take addOptions option from the command line.
@vercel
Copy link
Contributor

vercel bot commented Jan 17, 2026

@volkanunsal is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant