Skip to content

CLI Reference

Overview

Top-level Fensu commands, help, version output, and exit-code conventions.

The fensu command initializes policy, checks repositories, reports duplicated code, explains rules, maps call flow, installs generated agent guidance, and manages analyzer targets.

fensu --help
Usage: fensu {init,check,dupes,rule,map,skills,target} ...
Commands:
init Initialize Fensu configuration for a repository.
check Evaluate repository architecture rules.
dupes Report duplicated code (advisory; never fails on findings).
rule Show details for one rule.
map Render a directional project call map.
skills Generate and install agent guidance.
target Add an explicit analyzer target.
CommandPurpose
fensu initDetect a repository and write starting configuration.
fensu checkEvaluate blocking rules and optional warnings.
fensu dupesReport duplicated code as advisory review input.
fensu ruleInspect one configured rule.
fensu mapRender a downstream or upstream project call tree.
fensu skillsGenerate, install, and verify project agent guidance.
fensu targetAdd a validated SvelteKit analyzer target.

Run fensu <command> --help for command-specific options.

Both help forms exit 0:

fensu --help
fensu -h

Print the installed package version with:

fensu --version
fensu 0.4.0

Commands generally use 0 for success and 2 for usage, configuration, or setup errors. fensu check uses 1 for blocking faults, fensu dupes exits 0 whatever it finds, and fensu skills --check uses 1 when generated files need an update. See each command page for its complete contract.