CLI Reference
fensu target
Safely add a SvelteKit analyzer target to an existing explicit-target configuration.
fensu target add appends a SvelteKit target to an existing fensu.toml:
fensu target add NAME --preset sveltekit --path PATHfensu target add web --preset sveltekit --path frontendThe generated target uses the native Svelte analyzer, activates
rule_packs = ["sveltekit"], uses roots = ["src"] with a mirrored test
layout, and selects FPSK.
Requirements
Section titled “Requirements”fensu.tomlmust already contain explicit[targets.<name>]blocks. The command does not convert a legacy flat configuration or edit[tool.fensu].NAMEmust be new and contain only ASCII letters, digits,-, or_.PATHmust be an existing repository-relative directory without symlinks or parent traversal, and it must contain a non-symlinksrc/directory.--preset sveltekitand--path PATHare both required.
Fensu validates the original and resulting documents and performs a guarded write. An invalid target, concurrent edit, or unsafe path leaves the file unchanged.