Registry / devops / autoprefixer-cli

autoprefixer-cli

JSON →
library1.0.0jsnpmunverified

Legacy CLI wrapper for Autoprefixer, version 1.0.0. This tool allows adding vendor prefixes to CSS from the command line but is no longer actively maintained. It was the original CLI for Autoprefixer before postcss-cli became the official successor. Release cadence is zero; the package has not been updated since its initial release. Key differentiator: it provides a simple autoprefixer-cli command for users who cannot migrate to PostCSS. However, users should prefer postcss-cli or directly integrate Autoprefixer via PostCSS for modern projects.

npm install autoprefixer-cli
INSTALL
IMPORT
SIG · AUTOPREFIXER-CLI
A
autoprefixer-cli
devopsjavascriptv1.0.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

autoprefixer-cli
npx autoprefixer-cli -o output.css input.css
autoprefixer-cli input.css output.css
CLI expects -o flag before output file; positional arguments are not supported. Use npx for temporary execution.
package.json (bin)
installed globally, run via `autoprefixer-cli`
local install with `node_modules/.bin/autoprefixer-cli` or `npx autoprefixer-cli`
Package is intended for global install; local install may cause PATH issues. npx works for ad-hoc use.
help command
autoprefixer-cli -h
autoprefixer-cli --help
Uses `-h` for help, not `--help`. The `--help` flag may not work or produce output.

Installs the legacy CLI globally, creates a simple input CSS, runs autoprefixer, and displays the prefixed output.

# Install globally npm install -g autoprefixer-cli # Create a sample CSS file echo "body { display: flex; }" > input.css # Add vendor prefixes to output.css autoprefixer-cli -o output.css input.css # Check the result cat output.css
Debug
Known issues
deprecatedautoprefixer-cli is deprecated in favor of postcss-cli. Use postcss-cli with the autoprefixer plugin for long-term support.
fix
Migrate to postcss-cli: npm uninstall -g autoprefixer-cli; npm install -g postcss-cli autoprefixer
affects: *
gotchaThe -o flag is required before the output file. Using non-flag positional arguments will cause unexpected behavior.
fix
Use correct syntax: autoprefixer-cli -o output.css input.css
affects: *
gotchaGlobal install is recommended. Local install via npm install autoprefixer-cli may not place the binary in PATH.
fix
Install globally: npm install -g autoprefixer-cli, or use npx autoprefixer-cli
affects: *
gotchaHelp flag is -h, not --help. Using --help may print nothing or error.
fix
Use autoprefixer-cli -h
affects: *
Errors
Common errors & fixes
bash: autoprefixer-cli: command not found
Package not installed globally or local bin not in PATH.
fix
Install globally: npm install -g autoprefixer-cli
Error: Input file not found
Missing input file argument or wrong path.
fix
Ensure the input CSS file exists and is specified as last argument: autoprefixer-cli -o output.css input.css
autoprefixer-cli -o output.css input.css [Error: Use --browsers option]
Browserslist config missing or invalid.
fix
Add browserslist to package.json or .browserslistrc, or pass --browsers '> 1%'
Upgrade
Version history
1.0.0latest on npm
Audit
Dependencies
autoprefixerrequiredCore dependency that does the actual prefixing; autoprefixer-cli is just a thin wrapper.
Agent activity
10 hits · last 30 days
node
8
OpenAI (training)
1
Resources
autoprefixer-cli — npm install autoprefixer-cli · libregistry