has
« Back to VersTracker
Description:
Checks presence of various command-line tools and their versions on the path
Type: Formula  |  Tracked Since: Dec 28, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: cli developer-tools version-check devops shell
Install: brew install has
About:
Has is a command-line utility that checks for the presence of specified tools in your system's PATH. It goes beyond simple existence checks by also verifying version requirements, ensuring that the correct versions of dependencies are installed. This helps developers quickly diagnose environment setup issues and confirm that their toolchains are correctly configured.
Key Features:
  • Checks for the presence of command-line tools
  • Verifies specific version requirements (e.g., >= 1.0)
  • Supports multiple package managers (brew, apt, yum, etc.)
  • Provides clear, actionable output for missing tools
  • Cross-platform compatibility
Use Cases:
  • Verifying development environment setup in CI/CD pipelines
  • Ensuring team members have the correct tool versions installed
  • Creating portable scripts that depend on specific command-line utilities
Alternatives:
  • command -v – Built-in shell command that only checks for existence, not versions or installation methods.
  • which – Similar to command -v, only checks for binary location without version information.
Version History
Detected Version Rev Change Commit