tailwindcss.cli
4.2.0
See the version list below for details.
dotnet tool install --global tailwindcss.cli --version 4.2.0
dotnet new tool-manifest
dotnet tool install --local tailwindcss.cli --version 4.2.0
#tool dotnet:?package=tailwindcss.cli&version=4.2.0
nuke :add-package tailwindcss.cli --version 4.2.0
A dotnet tool to install the tailwindcss cli for windows (x64), macos (x64 and arm64) and linux (x64 and arm64).
This repository and the published wrapper tool now target .NET 10. Building from source requires the .NET 10 SDK, and running the wrapper requires a .NET 10 runtime.
Installation
Global install
dotnet tool install --global tailwindcss.cli
Once installed, tailwindcss should now be added to the path and invokable in your command prompts or terminals.
If the .NET 10 runtime is not installed, the wrapper will not start.
Note: on macos when using the default terminal zsh, globally installed tools will not be found. They will be found however if you use a bash shell.
To add globally installed tools to your zsh profile, edit ~/.zshrc and add the following line:
export PATH=$HOME/.dotnet/tools:$PATH
See: https://github.com/dotnet/sdk/issues/9415 for more information.
Local install
dotnet tool install tailwindcss.cli
Once installed, dotnet tailwindcss should now be invokable in your command prompts or terminals.
Installing specific versions
# global installs
dotnet tool install tailwindcss.cli --version 3.0.10 --global
# local installs
dotnet tool install tailwindcss.cli --version 3.0.10
Upgrading installations
# global installs
dotnet tool update tailwindcss.cli --version 3.0.10 --global
# local installs
dotnet tool update tailwindcss.cli --version 3.0.11
Uninstallation
# global installs
dotnet tool uninstall tailwindcss.cli --global
# local installs
dotnet tool uninstall tailwindcss.cli
GitHub Actions auto-sync
This repository now includes a GitHub Actions workflow at .github/workflows/sync-missing-packages.yml that:
- discovers stable upstream Tailwind CSS releases with the full runtime asset set
- compares each version against the wrapper package plus all platform packages on NuGet
- only publishes the missing package/version combinations
The workflow runs on a daily schedule and also supports manual workflow_dispatch runs with:
dry_run: detect only, no NuGet publishversion: optionally restrict the run to one stable Tailwind version such as4.2.2
Publishing runs require a repository secret named NUGET_API_KEY.
Sync commands
You can run the same detection and sync flow locally:
# detect missing packages only
./build.sh DetectMissing --DryRun true
# detect missing packages for one version only
./build.sh DetectMissing --SpecificVersion 4.2.2 --DryRun true
# publish missing packages
./build.sh SyncMissing --NugetApiKey <key>
# publish missing packages for one version only
./build.sh SyncMissing --SpecificVersion 4.2.2 --NugetApiKey <key>
Every run writes a machine-readable summary to artifacts/package-sync-report.json.
Bootstrap process
On initial run, there is a bootstrap process to download the platform specific tailwindcss cli binary to be used. e.g.:
PS C:\Users\Duane> tailwindcss
Running on windows-x64, downloading tailwindcss cli v3.0.23 using nuget...
Package found in repository nuget.org: https://api.nuget.org/v3/index.json
Downloaded package tailwindcss.cli.windows.x64 v3.0.23 from nuget.org.
Extracting tailwindcss cli for windows-x64...
tailwindcss v3.0.23
Usage:
tailwindcss [--input input.css] [--output output.css] [--watch] [options...]
tailwindcss init [--full] [--postcss] [options...]
...
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.2.2 | 130 | 3/25/2026 |
| 4.2.1 | 77 | 3/25/2026 |
| 4.2.0 | 74 | 3/25/2026 |
| 4.1.18 | 72 | 3/25/2026 |
| 4.1.17 | 73 | 3/25/2026 |
| 4.1.16 | 72 | 3/25/2026 |
| 4.1.15 | 74 | 3/25/2026 |
| 4.1.14 | 71 | 3/25/2026 |
| 4.1.13 | 72 | 3/25/2026 |
| 4.1.12 | 76 | 3/25/2026 |
| 4.1.11 | 76 | 3/25/2026 |
| 4.1.10 | 75 | 3/25/2026 |
| 4.1.9 | 78 | 3/25/2026 |
| 4.1.8 | 73 | 3/25/2026 |
| 4.1.7 | 76 | 3/25/2026 |
| 4.1.6 | 75 | 3/25/2026 |
| 4.1.5 | 74 | 3/25/2026 |
| 4.1.4 | 73 | 3/25/2026 |
| 4.1.3 | 77 | 3/25/2026 |
| 4.1.2 | 76 | 3/25/2026 |
### Added
- Add mauve, olive, mist, and taupe color palettes to the default theme ([#19627](https://github.com/tailwindlabs/tailwindcss/pull/19627))
- Add `@tailwindcss/webpack` package to run Tailwind CSS as a webpack plugin ([#19610](https://github.com/tailwindlabs/tailwindcss/pull/19610))
- Add `pbs-*` and `pbe-*` utilities for `padding-block-start` and `padding-block-end` ([#19601](https://github.com/tailwindlabs/tailwindcss/pull/19601))
- Add `mbs-*` and `mbe-*` utilities for `margin-block-start` and `margin-block-end` ([#19601](https://github.com/tailwindlabs/tailwindcss/pull/19601))
- Add `scroll-pbs-*` and `scroll-pbe-*` utilities for `scroll-padding-block-start` and `scroll-padding-block-end` ([#19601](https://github.com/tailwindlabs/tailwindcss/pull/19601))
- Add `scroll-mbs-*` and `scroll-mbe-*` utilities for `scroll-margin-block-start` and `scroll-margin-block-end` ([#19601](https://github.com/tailwindlabs/tailwindcss/pull/19601))
- Add `border-bs-*` and `border-be-*` utilities for `border-block-start` and `border-block-end` ([#19601](https://github.com/tailwindlabs/tailwindcss/pull/19601))
- Add `inline-*`, `min-inline-*`, `max-inline-*` utilities for `inline-size`, `min-inline-size`, and `max-inline-size` ([#19612](https://github.com/tailwindlabs/tailwindcss/pull/19612))
- Add `block-*`, `min-block-*`, `max-block-*` utilities for `block-size`, `min-block-size`, and `max-block-size` ([#19612](https://github.com/tailwindlabs/tailwindcss/pull/19612))
- Add `inset-s-*`, `inset-e-*`, `inset-bs-*`, `inset-be-*` utilities for `inset-inline-start`, `inset-inline-end`, `inset-block-start`, and `inset-block-end` ([#19613](https://github.com/tailwindlabs/tailwindcss/pull/19613))
- Add `font-features-*` utility for `font-feature-settings` ([#19623](https://github.com/tailwindlabs/tailwindcss/pull/19623))
### Fixed
- Prevent double `@supports` wrapper for `color-mix` values ([#19450](https://github.com/tailwindlabs/tailwindcss/pull/19450))
- Allow whitespace around `@source inline()` argument ([#19461](https://github.com/tailwindlabs/tailwindcss/pull/19461))
- Emit comment when source maps are saved to files when using `@tailwindcss/cli` ([#19447](https://github.com/tailwindlabs/tailwindcss/pull/19447))
- Detect utilities containing capital letters followed by numbers ([#19465](https://github.com/tailwindlabs/tailwindcss/pull/19465))
- Fix class extraction for Rails' strict locals ([#19525](https://github.com/tailwindlabs/tailwindcss/pull/19525))
- Align `@utility` name validation with Oxide scanner rules ([#19524](https://github.com/tailwindlabs/tailwindcss/pull/19524))
- Fix infinite loop when using `@variant` inside `@custom-variant` ([#19633](https://github.com/tailwindlabs/tailwindcss/pull/19633))
- Allow multiples of `.25` in `aspect-*` fractions (e.g. `aspect-8.5/11`) ([#19688](https://github.com/tailwindlabs/tailwindcss/pull/19688))
- Ensure changes to external files listed via `@source` trigger a full page reload when using `@tailwindcss/vite` ([#19670](https://github.com/tailwindlabs/tailwindcss/pull/19670))
- Improve performance of Oxide scanner in bigger projects by reducing file system walks ([#19632](https://github.com/tailwindlabs/tailwindcss/pull/19632))
- Ensure import aliases in Astro v5 work without crashing when using `@tailwindcss/vite` ([#19677](https://github.com/tailwindlabs/tailwindcss/issues/19677))
- Allow escape characters in `@utility` names to improve support with formatters such as Biome ([#19626](https://github.com/tailwindlabs/tailwindcss/pull/19626))
- Fix incorrect canonicalization results when canonicalizing multiple times ([#19675](https://github.com/tailwindlabs/tailwindcss/pull/19675))
- Add `.jj` to default ignored content directories ([#19687](https://github.com/tailwindlabs/tailwindcss/pull/19687))
### Deprecated
- Deprecate `start-*` and `end-*` utilities in favor of `inset-s-*` and `inset-e-*` utilities ([#19613](https://github.com/tailwindlabs/tailwindcss/pull/19613))