macOS
brew install addlicenselocal Homebrew formula metadata
brew
Scan directories recursively to ensure source files have license headers. Version 1.2.0 via Homebrew; verified 2026-05-26.
install
brew install addlicenselocal Homebrew formula metadata
nix profile install nixpkgs#addlicensenixpkgs package indexes · pkgs/by-name/ad/addlicense/package.nix · source: api.github.com
overview
Scan directories recursively to ensure source files have license headers
history
addlicense is a Google-maintained Go command that recursively scans source trees and adds or checks copyright license headers. It is deliberately simple: run it over patterns, choose a supported license template or file, and optionally fail CI with -check.
The official GitHub repository was created in June 2016. Its README describes a Go program that modifies source files in place, avoids duplicating headers that already exist, and supports Apache, BSD, MIT, and MPL-style headers plus custom license files.
The project is hosted under the google organization but explicitly says it is not an official Google product. The official tag list shows stable v1.x tags, and the README now documents Go installation, a GitHub Container Registry image, and pre-commit integration.
addlicense fits the common open-source maintenance workflow where license headers are enforced in presubmit, CI, or pre-commit rather than by hand. The supplied package-manager metadata shows Homebrew and Nix packaging, while the README documents go install, Docker, and an official pre-commit hook.
Typical use is addlicense . or addlicense with multiple file and directory patterns. Important package-maintainer flags include -check for verification-only runs, -ignore for vendored or generated files, -l for the license family, -f for custom text, -s for SPDX identifiers, and -c/-y for copyright holder and year.
For package and release engineers, addlicense is a boring tool in the best sense: it makes source-header policy reproducible and automatable. It is useful in repos where license conformance needs to be enforced before vendoring, releasing, or importing code into downstream packaging.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
addlicense | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://github.com/google/addlicense
install metadata
| Package key | brew:addlicense |
|---|---|
| Version | 1.2.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/addlicense |
| Homepage | https://github.com/google/addlicense |
| Repository | https://github.com/google/addlicense |
| Upstream docs | https://github.com/google/addlicense#readme |
| License | Apache-2.0 |
| Source archive | https://github.com/google/addlicense/archive/refs/tags/v1.2.0.tar.gz |
| Last updated | 2026-05-26T23:37:49-04:00 |
| Pulse | updated |
| Build dependencies | go |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | addlicense |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
addlicense
nix profile install nixpkgs#addlicensesource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.