Repository navigation
Downloading the CLIF binaries
Released builds of clif carry CFLint inside them (a native build, so no Java is needed). They run
on macOS, Linux and Windows.
Editor extensions for VS Code and Zed download their own copy of the server. You only need to install
clifyourself to use the command line, a git hook, CI, or an editor that does not manage the server for you.
| Platform | Command | Installs |
|---|---|---|
| macOS, Linux (Homebrew) | brew install cfmleditor/tap/clif |
clif, plus cfmleditor-lsp beside it |
| macOS, Linux (Homebrew, built from source) | brew install cfmleditor/tap/clif-source |
clif built with Homebrew's Go. No CFLint inside: it uses a cflint on PATH or downloads one on first use. Can lag clif by a release or more. |
| Windows (Scoop) |
scoop bucket add cfmleditor https://github.com/cfmleditor/scoop-bucket then scoop install cfmleditor/clif
|
clif, plus cfmleditor-lsp
|
| Windows (winget) | winget install cfmleditor.clif |
clif |
| Windows (Chocolatey) | choco install clif |
clif, plus cfmleditor-lsp. An exact version: choco install clif --version <v>
|
Install either clif or clif-source from Homebrew, not both. Chocolatey and winget review each version
before listing it, so they can trail a release by some time. brew info cfmleditor/tap/clif-source shows
which release the source formula holds.
Every GitHub release publishes these assets:
| Asset | Platform | Contains |
|---|---|---|
clif-darwin-arm64.tar.gz |
macOS, Apple silicon |
clif, THIRD_PARTY_NOTICES.md
|
clif-darwin-amd64.tar.gz |
macOS, Intel |
clif, THIRD_PARTY_NOTICES.md
|
clif-linux-amd64.tar.gz |
Linux x86-64 |
clif, THIRD_PARTY_NOTICES.md
|
clif-linux-arm64.tar.gz |
Linux ARM64 |
clif, THIRD_PARTY_NOTICES.md
|
clif-windows-amd64.zip |
Windows x86-64 |
clif.exe, THIRD_PARTY_NOTICES.md
|
clif-windows-amd64.tar.gz |
Windows x86-64 | Same as the zip (requested by editor extensions) |
cfmleditor-lsp-<platform>.* |
All of the above | The same binary under its former name, for older editor extensions |
checksums.txt |
— | SHA-256 of every archive (from 0.5.1) |
<archive>.sha256 |
— | SHA-256 of one archive (from the release after 0.7.5) |
clif-<version>-source.tar.gz |
— | Source archive used by the clif-source formula |
Example: a manual install on Linux.
curl -LO https://github.com/cfmleditor/clif/releases/latest/download/clif-linux-amd64.tar.gz
curl -LO https://github.com/cfmleditor/clif/releases/latest/download/clif-linux-amd64.tar.gz.sha256
sha256sum -c clif-linux-amd64.tar.gz.sha256 # clif-linux-amd64.tar.gz: OK
tar xzf clif-linux-amd64.tar.gz
sudo mv clif /usr/local/bin/
clif --version # clif 0.7.7On macOS use shasum -a 256 -c in place of sha256sum -c.
Put the version in clif.version (or scripts/clif.version) at the root of your repository, and
copy the install scripts from the clif repository's scripts/ directory. Every developer and CI agent
then installs the same build into a user directory, with no administrator rights:
| Script | Platform | Installs into |
|---|---|---|
scripts/install.sh |
macOS, Linux | ~/.local/bin |
powershell -ExecutionPolicy Bypass -File scripts\install.ps1 |
Windows | %LOCALAPPDATA%\clif\bin |
# clif.version
0.7.7
| Behaviour | Detail |
|---|---|
| Checksum | The archive is checked against the release's checksums.txt. For releases from 0.5.1 on, and for latest, a missing checksums.txt stops the install. |
| Provenance | When the GitHub CLI is installed and signed in, the build provenance attestation is checked too (releases after 0.5.3). Without gh that check is skipped. |
CLIF_DOWNLOAD_URL |
Points either script at an internal mirror of the releases. Must be an https:// URL. |
From the release after 0.5.3, every asset and its checksums.txt carry a signed
build provenance attestation
recording that this repository's release workflow built it from the tagged commit:
gh attestation verify clif-linux-amd64.tar.gz --repo cfmleditor/clif \
--signer-workflow cfmleditor/clif/.github/workflows/release.ymlA file that was altered, or built anywhere else, has no matching attestation and the command fails.
clif used to be called cfmleditor-lsp. Everything that used the old name still works:
| Old name | New name | What still works |
|---|---|---|
cfmleditor-lsp binary |
clif |
cfmleditor-lsp-<platform> archives hold the same binary under the old name |
.cfmleditor.json |
.clif.json |
Both are read; when a directory holds both, .clif.json wins |
cfmleditor.* commands |
clif.* |
Both run; only clif.* are advertised |
.cfmleditor-cflint.txt, .cfmleditor-unresolved.txt
|
.clif-cflint.txt, .clif-unresolved.txt
|
An existing old-named report keeps being used |
CFMLEDITOR_LSP_LOG, CFMLEDITOR_CPUPROFILE, CFMLEDITOR_MEMPROFILE
|
CLIF_LOG, CLIF_CPUPROFILE, CLIF_MEMPROFILE
|
The old variable is read when the new one is unset |
The daemon socket directory and the crash-log directory are named clif now, so a daemon started by an
older release is not shared with a newer one.