Stillwind CLI
Stillwind compiles Tailwind CSS v4 utilities into component props and static CSS.
It uses theme rules and compiler checks to keep styling code in order, even when AI agents write much of it.
@stillwind/cli is Stillwind's command-line interface for sorting, linting, automatic fixes, CSS inspection, design-system lookups, and CI checks.
It uses the same project configuration as the build integration and editor.
Install
npm install -D @stillwind/cli
Create a Stillwind project configuration
before running commands. The CLI searches upward from the working directory for
stillwind.config.*. Use --config path to select another file.
Commands
stillwind check
stillwind check --fix
stillwind fmt
stillwind lint
stillwind lint --fix
stillwind info
stillwind inspect src/Button.tsx:12
stillwind theme 'color-*'
stillwind utilities p-4 'bg-*'
stillwind variants 'group-*'
check runs lint and utility sorting checks in one pass; check --fix applies
enabled automatic fixes, sorts utilities, and reports the remaining findings.
fmt sorts utility inputs and preserves source layout and token spellings. Run a
general formatter afterward, or use
prettier-plugin-stillwind.
lint reports findings; lint --fix applies enabled automatic fixes. Only changed
files are saved. inspect shows the CSS that a file, line, or position generates.
theme, utilities, and variants read the project's design system.
Optional file patterns narrow the configured project scopes:
stillwind lint 'src/**/*.tsx'
CI and machine-readable output
stillwind fmt --check
stillwind lint --max-warnings 0
stillwind lint --format json
fmt --check and lint do not save sources. JSON and GitHub annotations use stdout;
configuration logs use stderr. GitHub annotations are the default in GitHub Actions.
| Exit code |
Meaning |
0 |
Formatting succeeded, formatting check found no changes, or lint found no errors and stayed within any warning limit |
1 |
Formatting changes are required, lint found errors, the warning limit was exceeded, or a lookup found no CSS or name |
2 |
Invalid options, failed configuration/analysis/planning/I/O, or no matching targets |
Warnings alone return 0 when no limit is set. stillwind --help lists commands;
stillwind <command> --help lists options. stillwind lsp --stdio starts the
language server for clients using the Language Server Protocol.
See the CLI reference
for configuration discovery, saving guarantees, output formats, and the JSON schema.