Command-line tool
stylua
brew/stylua
Checked 25 Oct 2026, 21:09 UTC · Listing refreshed from Homebrew, winget, npm, Scoop and cargo; npm packages checked against OSV.dev
Opinionated Lua code formatter hacktoberfest printer formatter lua luau luaformatter pretty-printer stylua
At a glance
- Type
- Command-line tool
- Install on
- Windows, macOS, Linux
- Last checked
- 25 Oct 2026, 21:09 UTC
Install it
Windows
winget install --id JohnnyMorganz.StyLua -e scoop install stylua cargo install stylua
macOS
brew install stylua cargo install stylua
Linux
brew install stylua cargo install stylua
Auto-format a file or an entire directory
stylua path/to/file_or_directory
Check if a specific file has been formatted
stylua --check path/to/file
Run with a specific configuration file
stylua --config-path path/to/config_file path/to/file
Related command-line tools
- air
Fast and opinionated formatter for R code r language-server lsp formatter rstats - sane-fmt
Opinionated code formatter for TypeScript and JavaScript - jqfmt
Opinionated formatter for jq - prettier
Code formatter for JavaScript, CSS, JSON, GraphQL, Markdown, YAML - luau
Fast, safe, gradually typed embeddable scripting language derived from Lua - black
Python code formatter python hacktoberfest code formatter codeformatter pre-commit-hook autopep8 gofmt yapf - luau-lsp
Language Server Implementation for Luau - pepper
A simple and opinionated modal code editor for your terminal
Listing text is written by the maker; AptLynx lists tools and does not vouch for them. Find another tool · Browse by topic · For agents