Tailwind CLI

Command-line interface for generating Tailwind CSS configurations and templates across all frameworks.

Core Features

1

Framework Integration

Generate starter projects for React, Vue, Svelte, Next.js, Nuxt, and more with a single command.

2

Config Management

Create, update, or merge Tailwind configuration files with intelligent defaults and suggestions.

3

Build Optimization

Generate optimized builds with automatic purge, minification, and framework-specific enhancements.

Installation


npm install -g tailwindcss

Or use Corepack for secure installations:

corepack add @tailwindcss/cli@latest -g

Create a Configuration
npx init tailwind npm install tailwindcss npx tailwindcss init

The CLI will prompt you for framework preferences, JIT compiler options, purge settings, and more.

Common Commands

Build Command


npx tailwindcss build --watch --preflight

  • Watch file changes for real-time rebuilds
  • Generate preflight CSS for component-based frameworks

Version Info

Current Version:
v3.4.2 (2025-04-05)
View detailed changelog and history of all CLI versions.

Recent Updates

March 22, 2025 - Version 3.4.1 patch release

Improved Windows path resolution for framework detection

New tailwind export command

Optimized default purge patterns for React

View Full History →