Skip to content

Command line

This document is the reference of the vibator command line: the command that runs the rules, its options, and the subcommands, as they are provided by the base vibator framework.

Reference


vibator

The default command runs every enabled rule.

FlagDescription
--writeRuns each rule's fix and rechecks.
--only <ids>Runs only the comma-separated rule ids.
--config <path>Loads configuration from a path.
--reporter <pretty|json|sarif>Chooses the output format. Defaults to pretty.
--stagedScopes the run to files staged for commit.
--changedScopes the run to uncommitted changes.
--since <ref>Scopes the run to changes since a ref.
--helpPrints usage.
--versionPrints the version.

Reporters

The output formats the --reporter flag selects.

FormatDescription
prettyA readable, colored report for a terminal. The default.
jsonThe machine-readable format, for a direct integration.
sarifThe SARIF interchange format, for tools such as trunk.io and code scanning.

Subcommands

CommandDescription
listPrints every rule with its severity and title.
explain <rule>Prints the guideline for a rule.
initWrites a starter .vibator.json.
skills --installCopies the bundled skills into the project.

Exit codes

CodeMeaning
0Findings stay at warning severity or below.
1An error-severity finding, or a rule that crashed.

Released under the MIT License.