Skip to content

Developer Documentation

Nick Kwiatkowski edited this page Nov 25, 2026 · 1 revision

Developer Documentation (command-line tools)

clif is a single binary that does two jobs:

Started as What it does
clif (no arguments) Runs the CFML Language Server over stdio, for an editor to talk to. See Integrator Documentation.
clif <command> … Runs one of the command-line tools: the same analysis the editor gets, run in batch over files and directories. Made for terminals, scripts, git hooks and CI.

This section covers the command-line side.

Page What it covers
Downloading the CLIF binaries Package managers, release archives, pinned installs, checksum and provenance checks
Building CLIF from source The quickest way to a working binary from a checkout
Running the CLIF command-line tool Every subcommand, global behaviour, exit codes and environment variables
Unresolved calls clif unresolved, clif explain, clif unresolved-diff, clif refs, clif deps
Linting projects and code clif lint (alias clif cflint), baselines, clif suppressions
Performing automated checks clif check, clif scan, clif parse: one gate for CI
Formatting code clif format
Creating Code Maps clif graph and clif routes
Support for Frameworks ColdBox, TestBox, CommandBox, Wheels, FW/1 and the other presets
Using the MCP server clif mcp from the command line
Using the GIT Hooks clif hook and pre-commit integration

A first session

clif --version                                   # clif 0.7.7
clif unresolved ~/projects/myapp > unresolved.txt # calls clif cannot resolve
clif lint --format text ~/projects/myapp         # CFLint findings, no Java needed
clif format -w src/models/User.cfc               # format a file in place
clif graph --format html --out map.html .        # interactive code map

Almost every command reads the nearest .clif.json above the first path it is given. That file is described in LSP Initialization Options: the editor and the command line read exactly the same settings.

← Home

Clone this wiki locally