licence_audit

A CLI for the locked dependencies in a Gleam project. It reports Hex package licences, previews or enforces a licence policy, creates CycloneDX SBOMs and third-party notices, and checks for known vulnerabilities through OSV.dev.

Licence reports, check, and update read declarations from the locked Hex archive and verify its SHA-256 against manifest.toml. The first scan downloads the archives; later scans reuse checksum-keyed metadata without expiry.

Install

Download a self-contained archive for your platform from the releases, extract it, and put licence_audit on your PATH. These executables include the Erlang runtime; you do not need to install Erlang/OTP. Prefer them for CI.

With mise:

mise use -g github:tylerbutler/licence_audit@latest

To pin a version, replace latest with an exact release tag (vX.Y.Z). Choose a tag from a published release. Omit -g for a project-local install.

The release also provides escript archives and a bare escript. The escript requires Erlang/OTP 28 or newer for all commands. Windows ARM64 archives are not published.

On OTP 27, the VM can fail to load the escript with corrupt atom table and exit 127, before any command runs. This unsupported-runtime failure is outside the CLI exit-code contract.

Source builds require Gleam 1.19.2 or newer. See DEV.md.

Documentation

The website is the canonical user documentation. It contains installation and setup guidance, generated CLI usage and flag tables, and command behavior:

Use licence_audit --help or licence_audit <command> --help for the CLI options in your installed version. -h is an alias for --help. --version is available only at the root.

Reports and checks read allow and deny from [tools.licence_audit] in TOML. Use --config=policies/release.toml to select an alternate policy. See the migration notes if your scripts use removed --allow or --deny flags.

Run licence_audit or licence_audit report to inspect licences or preview policy findings. Both use the same options and non-enforcing report behavior. The named command is optional. Both forms reject the removed policy flags.

Licence reports, check, and vulns default to --scope=all. Use --scope=prod for production dependencies only. notices defaults to --scope=prod; use --scope=all to include development dependencies. These values replace --prod-only and --include-dev, which are no longer accepted. sbom retains the full graph and has no scope flag.

Contributing and security

See DEV.md for development commands and SECURITY.md for supported versions and private vulnerability reporting.

✨ Search Document