rwx lint
Lint RWX configuration files.
Requirements
rwx lint runs the bundled language server with a local Node.js installation,
which must be available on your PATH. Node.js 18 or newer is required, and
Node.js 22 or newer is recommended since earlier releases have reached
end-of-life. To lint without changing your installed Node.js version, run a
one-off with a pinned version:
npx -y -p node@18 -- rwx lint
Usage
rwx lint [flags] [file...]
Arguments
[file...]
One or more RWX configuration files to lint. If not specified, lints all files in the .rwx directory.
Options
--fix
Automatically apply available fixes.
-d, --dir <directory>
The directory your RWX configuration files are located in, typically .rwx. By default, the CLI traverses up until it finds a .rwx directory.
--format <format>
Output format: text, multiline, oneline, json, or none. Defaults to multiline.
--timeout <duration>
Timeout for the lint operation. Defaults to 30s.
--warnings-as-errors
Treat warnings as errors.
Global options
--access-token <token>
The access token for RWX. Defaults to the value of the $RWX_ACCESS_TOKEN environment variable.