--tailwind and --no-tailwind Flags Removed From CLI #375
Send to my agentWhich project does this relate to?#
Create Tanstack App
Describe the bug#
The --tailwind and --no-tailwind flags were removed from the CLI, and I was looking for confirmation on whether that was an intended change. They were removed with this commit: https://github.com/TanStack/cli/commit/337eebaafa190de96194910b6c8c9e550ca142fc
Currently, running the command: npx @tanstack/cli@latest create my-tanstack-app --no-tailwind generates the following error: error: unknown option '--no-tailwind'.
If This Was An Intended Change#
This makes the CLI out of sync with the CLI Reference and some of the CLI-aliases README.md's like ts-create-start, which uses the command pnpm create @tanstack/start@latest my-app --tailwind.
Moreover, it also makes it out of sync with the Tanstack Builder Tool.
Finally, it seems to reverse the PR merged last month by jherr which makes no tailwind a legit option: https://github.com/TanStack/cli/pull/151. That PR intended to make opting out of tailwind quick and easy. Currently, without a --no-tailwind flag, you're back to doing manual work to remove tailwind from a project, leading to a worse DX.
If This was Not An Intended Change#
Please reverse it! 😄
Your Example Website or App#
N/A
Steps to Reproduce the Bug or Issue#
npx @tanstack/cli@latest create my-tanstack-app --no-tailwind
Expected behavior#
N/A
Screenshots or Videos#
No response
Platform#
N/A
Additional context#
No response
tannerlinsley closed this
Sign in to join this conversation.
Thanks for the thorough report — you were absolutely right to flag this.
Tailwind is now intentionally always enabled for TanStack Start, but removing
--tailwind/--no-tailwindentirely caused a compatibility/docs mismatch. We fixed that in #382 by restoring both flags as deprecated compatibility flags: they are accepted again, but ignored with a clear warning.So
npx @tanstack/cli@latest create my-app --no-tailwindshould no longer error; it should scaffold successfully and print the deprecation warning.