CLI
StructArmed provides commands for initialization, analysis, reports, baselines, and version output.
Contents
Init Commands
vendor/bin/structarmed init
vendor/bin/structarmed init --preset=psr4
vendor/bin/structarmed init --preset=psr1
vendor/bin/structarmed init --preset=psr12
vendor/bin/structarmed init --preset=psr15
vendor/bin/structarmed init --preset=mvc
vendor/bin/structarmed init --preset=ddd
vendor/bin/structarmed init --preset=all
Analyse Commands
# Analyse with default config discovery.
vendor/bin/structarmed analyse
vendor/bin/structarmed analyze
# Analyse only specific paths.
vendor/bin/structarmed analyse src
vendor/bin/structarmed analyze src tests
# Custom config path.
vendor/bin/structarmed analyse --config=path/to/structarmed.php
vendor/bin/structarmed analyze --config=path/to/structarmed.php
Reports
# Console output is the default.
vendor/bin/structarmed analyse
# JSON output for CI tools.
vendor/bin/structarmed analyse --report=json
vendor/bin/structarmed analyze --report=json
Parallel Processing
StructArmed runs in parallel by default. Disable parallel processing when debugging worker issues.
vendor/bin/structarmed analyse --disable-parallel
Version Commands
vendor/bin/structarmed --version
vendor/bin/structarmed -V