.\" DO NOT MODIFY THIS FILE! It was generated by help2man 1.49.2. .TH POSTCSS "1" "December 2022" "postcss 16.2.0" "User Commands" .SH NAME postcss \- Command-line client for node??-postcss .SH DESCRIPTION .SS "Usage:" .IP postcss [input.css] [OPTIONS] [\-o|\-\-output output.css] [\-\-watch|\-w] postcss ... [OPTIONS] \fB\-\-dir\fR [\-\-watch|\-w] postcss [OPTIONS] \fB\-\-dir\fR [\-\-watch|\-w] postcss [OPTIONS] \fB\-\-dir\fR [\-\-watch|\-w] postcss ... [OPTIONS] \fB\-\-replace\fR .SS "Basic options:" .TP \fB\-o\fR, \fB\-\-output\fR Output file [string] .TP \fB\-d\fR, \fB\-\-dir\fR Output directory [string] .TP \fB\-r\fR, \fB\-\-replace\fR Replace (overwrite) the input file [boolean] .TP \fB\-m\fR, \fB\-\-map\fR Create an external sourcemap .TP \fB\-\-no\-map\fR Disable the default inline sourcemaps .TP \fB\-w\fR, \fB\-\-watch\fR Watch files for changes and recompile as needed [boolean] .TP \fB\-\-verbose\fR Be verbose [boolean] .TP \fB\-\-env\fR A shortcut for setting NODE_ENV [string] .SS "Options for use without a config file:" .TP \fB\-u\fR, \fB\-\-use\fR List of postcss plugins to use [array] .TP \fB\-\-parser\fR Custom postcss parser [string] .TP \fB\-\-stringifier\fR Custom postcss stringifier [string] .TP \fB\-\-syntax\fR Custom postcss syntax [string] .SS "Options for use with --dir:" .TP \fB\-\-ext\fR Override the output file extension; for use with \fB\-\-dir\fR [string] .TP \fB\-\-base\fR Mirror the directory structure relative to this path in the output .TP directory, for use with \fB\-\-dir\fR [string] .SS "Advanced options:" .TP \fB\-\-include\-dotfiles\fR Enable glob to match files/dirs that begin with "." [boolean] .TP \fB\-\-poll\fR Use polling for file watching. Can optionally pass pol ling interval; default 100 ms .TP \fB\-\-config\fR Set a custom directory to look for a config file [string] .SH OPTIONS .TP \fB\-\-version\fR Show version number [boolean] .TP \fB\-h\fR, \fB\-\-help\fR Show help [boolean] .SH EXAMPLES .TP postcss input.css \-o output.css Basic usage .TP postcss src/**/*.css \-\-base src \-\-dir bu Glob Pattern & output .IP ild cat input.css | postcss \-u autoprefixer Piping input & output > output.css .PP If no input files are passed, it reads from stdin. If neither \-o, \-\-dir, or \-\-re place is passed, it writes to stdout. .PP If there are multiple input files, the \-\-dir or \-\-replace option must be passed. .PP Input files may contain globs (e.g. src/**/*.css). If you pass an input director y, it will process all files in the directory and any subdirectories, respecting .IP the glob pattern. .PP For more details, please see https://github.com/postcss/postcss\-cli