stylua
Verified for current stable LTS
Stylua Command: Auto Format File Or Directory
Use for auto format file or directory with Stylua. Exact CLI syntax to auto format file or directory using Stylua.
When to use this: Use for auto format file or directory with Stylua.
Command Syntax
stylua <path/to/file_or_directory> stylua <path/to/file_or_directory> Command Breakdown
stylua is the base executable for this command.
FAQ
Purpose: Exact syntax to auto format file or directory using Stylua.
Test path: Replace placeholders and run destructive commands in a disposable workspace first.
Flag behavior: Tool version, platform, and shell can change behavior.
Improve This Command
Suggest a correction, safer default, or version-specific note for this entry.
Related Operations
Stylua Command: Check File Formatter Status
stylua --check <path/to/file> Stylua Command: Format Code From Stdin Output To Stdout stylua - < <path/to/file.lua> Stylua Command: Format With Spaces And Single Quotes stylua --indent-type <Spaces> --quote-style <AutoPreferSingle> <path/to/file_or_directory> Stylua Command: Run With Specific Configuration stylua --config-path <path/to/config_file> <path/to/file>