# Install stylua

Opinionated Lua code formatter. Version 2.5.2 via Homebrew; verified 2026-05-16.

## Install

```sh
sudo av install brew:stylua
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install stylua
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install stylua
```

  Evidence: MacPorts ports tree: lua/stylua/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add stylua
```

  Evidence: Alpine Linux edge package indexes: stylua from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Nix (92%):

```sh
nix profile install nixpkgs#stylua
```

  Evidence: nixpkgs package indexes: pkgs/by-name/st/stylua/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S stylua
```

  Evidence: Arch Linux sync databases: stylua from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install StyLua
```

  Evidence: openSUSE Tumbleweed package metadata: StyLua from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/stylua
```

  Evidence: Scoop official bucket manifest trees: bucket/stylua.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package Facts

- **Package key:** brew:stylua
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/stylua>
- **Version:** 2.5.2
- **Source summary:** Opinionated Lua code formatter
- **Homepage:** <https://github.com/JohnnyMorganz/StyLua>
- **Repository:** <https://github.com/JohnnyMorganz/StyLua>
- **Upstream docs:** <https://github.com/JohnnyMorganz/StyLua#readme>
- **License:** MPL-2.0
- **Source archive:** <https://github.com/JohnnyMorganz/StyLua/archive/refs/tags/v2.5.2.tar.gz>
- **Last updated:** 2026-05-16T18:32:04Z
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- stylua (cli)
- stylua (alias)

## Build Dependencies

- rust

## Install Behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-06-10
- Package-manager version: 2.5.2
- Package-manager updated: 2026-05-16
- Local data status: ok
- Upstream repository: https://github.com/JohnnyMorganz/StyLua
- Upstream latest detected: v2.5.2 (current)

## Sicherheitshinweise

no executable entrypoint in the package index.

- **Geiger risk:** green / low
- no executable entrypoint in the package index

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** stylua
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Nix - stylua: normalized package name match | nixpkgs package indexes: pkgs/by-name/st/stylua/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - stylua - 2.5.2-r0: normalized package name match | Alpine Linux edge package indexes: stylua from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Opinionated Lua code formatter | https://github.com/JohnnyMorganz/StyLua
- pacman - stylua - 2.5.2-1: normalized package name match | Arch Linux sync databases: stylua from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Deterministic code formatter for Lua | https://github.com/JohnnyMorganz/StyLua
- zypper - StyLua - 2.0.2-1.5: normalized package name match | openSUSE Tumbleweed package metadata: StyLua from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst | Opinionated Lua code formatter | https://github.com/JohnnyMorganz/StyLua
- MacPorts - stylua: normalized package name match | MacPorts ports tree: lua/stylua/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/stylua: normalized package name match | Scoop official bucket manifest trees: bucket/stylua.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related Links

- [Source-control packages](https://www.automicvault.com/de/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/de/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/de/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/de/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [rust](https://www.automicvault.com/de/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [gnu-indent](https://www.automicvault.com/de/pkg/brew/gnu-indent/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [yapf](https://www.automicvault.com/de/pkg/brew/yapf/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [snakefmt](https://www.automicvault.com/de/pkg/brew/snakefmt/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [stylish-haskell](https://www.automicvault.com/de/pkg/brew/stylish-haskell/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [gci](https://www.automicvault.com/de/pkg/brew/gci/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [cljfmt](https://www.automicvault.com/de/pkg/brew/cljfmt/) - Shares av.db curated category or tags: cli, code-style, developer-tools, formatter, formatters.
- [shfmt](https://www.automicvault.com/de/pkg/brew/shfmt/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.
- [buildifier](https://www.automicvault.com/de/pkg/brew/buildifier/) - Shares av.db curated category or tags: cli, developer-tools, formatter, formatters.

## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
