Jamf Apple Security and Device Management

Managing Command-Line Tools on Developer Mac Computers: Four Questions from Homebrew to AI Agents

Open a developer's Mac, and the Jamf app inventory may list only a browser, Slack, and Xcode. But what developers actually use all day is in Terminal: brew, git, node, python, and, more and more over the past year, AI agents such as Claude Code.

Most of these command-line tools aren't apps, and they aren't in the Applications folder. A developer installs one with a single command in Terminal. IT isn't involved, and every Mac ends up with different versions.

To manage command-line tools, IT can start with four questions. Can we see them? Can we stop them? Who installs and updates them? What can be installed? After that, we look at a special kind of command-line tool: the AI agent, which runs commands on its own.

Common Command-Line Tools on Developer Mac Computers

Tool Used for Common install method Common location
Homebrew The most common package manager on Mac, used to install other command-line tools Official install command /opt/homebrew (Apple silicon)
Git Version control Xcode Command Line Tools or Homebrew System or Homebrew folders
Node.js and npm JavaScript runtime and package manager Homebrew, the official installer, or a version manager such as nvm or mise Homebrew folders or the user's home folder
Python, pip, and uv Python runtime and package managers Homebrew, the official installer, or uv Depends on the method; uv uses the home folder
Cloud and container CLIs AWS CLI, gcloud, kubectl, Terraform, and others Usually Homebrew Homebrew folders
AI agents Read and write code and run commands in Terminal, for example Claude Code Official install command or Homebrew Claude Code's official installer uses ~/.local/bin

The table shows two things. Most of these tools aren't in the Applications folder, and many of them live in the user's own home folder.

1. Can We See Them? Take Inventory with Extension Attributes

When Jamf Pro collects its app inventory, it searches the Applications folder by default. Command-line tools usually aren't apps and often live in /opt/homebrew or the user's home folder, so they don't appear in that list. Developers who use version managers may also have several versions of Node.js installed side by side.

The fix is a Jamf Pro extension attribute. An extension attribute can be a script that runs each time a Mac submits inventory and saves the result as a field. For example:

  • The Homebrew version, and which packages were installed with Homebrew
  • The Node.js and Python versions
  • Whether an AI agent such as Claude Code is installed

With these fields, you can search and report in Jamf Pro, or create a smart group such as "computers with an outdated Node.js" and deploy updates to that group.

Keep two things in mind. An extension attribute shows a snapshot from the last inventory. And for tools in home folders, the script needs to check every user account on the computer. For a more complete package inventory that also lists npm packages and code editor extensions, you need a dedicated tool such as Workbrew (see section 4).

2. Can We Stop Them? Standard Accounts Can't, and macOS 27 Can Stop Some

Many companies start by removing administrator rights and moving everyone to standard accounts. That works for regular apps, but it does little for command-line tools:

  • Homebrew: Homebrew's documentation says that after the initial installation, installing packages doesn't need sudo (administrator rights).
  • Tools in the home folder: Claude Code's official installer puts the program in ~/.local/bin, and version managers such as nvm and mise install Node.js in the home folder. Users can already write to their home folder, so no administrator rights are involved.

Standard accounts are still worth using. They block changes to system settings and system-level components. They just aren't the answer for command-line tools.

Starting with macOS 27, You Can Choose Which Binaries Run

Starting with macOS 27, MDM can manage which apps or binaries are allowed to run, command-line tools included (see OS 27 Is Here: Five Things That Change in Mac Management). Rules work in two ways: an allowlist lets only listed programs run, and a blocklist stops specific programs. Rules match on the program's code signature, such as the developer's Team ID, the signing identifier, or the file's hash (CDHash).

In Jamf Pro, this is the App Settings component in blueprints. It sets allowed and denied binaries on macOS, and applies to supervised Mac computers with macOS 27 or later. App Catalog, which deploys command-line tools, also lives in blueprints, so deploying and blocking are managed in one place.

The catch is that command-line tools are signed in very different ways. We checked a few common ones:

Tool Signature How a rule can match it
Claude Code (official installer) Anthropic Developer ID signature Team ID, which keeps working across versions
Node.js (official build) Node.js Foundation Developer ID signature Team ID
Terraform (official HashiCorp build) HashiCorp Developer ID signature Team ID
Python (Homebrew build) and uv Ad hoc signature only, no Team ID Hash only, which changes with every version
Homebrew itself, npm, and pip Scripts run by bash, Node.js, or Python Rules see the program that runs the script, so these can't be matched on their own

In practice:

  • Blocklists work well for stopping specific tools with a Developer ID signature, such as an AI agent the company hasn't approved. One Team ID rule blocks it, including future versions.
  • Allowlists need a Team ID or hash in every rule. Developer Mac computers carry many tools with only an ad hoc signature, so an allowlist means registering a hash for every version. Allowlists suit computers with a fixed purpose, such as front desk or shared computers.
  • Script-based tools such as Homebrew, npm, and pip can't be matched by binary rules. Use the package source settings in section 4 instead.

Blocking is only one layer. For command-line tools, the next two steps matter just as much: deploy approved versions from the company, and limit where packages come from.

3. Who Installs and Updates Them? The Jamf App Catalog Now Accepts Command-Line Tools

App Installers in Jamf Pro can deploy and update hundreds of popular apps automatically, but command-line tools were always out of scope. As Jamf puts it, the binaries that package managers such as Homebrew and npm install don't live in the Applications folder. IT had to package them by hand, or leave them unmanaged for developers to handle.

App Catalog in Blueprints, which Jamf announced at JNUC 2026, fills that gap with a rebuild of how third-party apps are deployed:

  • Set it and forget it: Jamf compares it to a thermostat. In a blueprint, IT sets which apps and versions a Mac should have, and each Mac keeps itself in that state. New versions install on schedule, and if a user deletes an app, it comes back on its own.
  • Command-line tools in the catalog for the first time: The Jamf blog names Homebrew, Node.js, and Workbrew. This is the first time command-line tools can be deployed straight from the Jamf catalog.
  • One blueprint for a set of tools: Several apps and tools share one scope and one set of rules, with exclusions for specific computers. Updates can run in daily, weekly, or monthly maintenance windows.
  • Built on declarative device management (DDM): Jamf Pro sends each Mac a small description file. Jamf software on that computer then downloads the app, checks the developer signature, and picks the Intel or Apple silicon version.

This also helps the network. Before, update commands went out at once, and the whole company could start downloading together. Now downloads begin when the maintenance window opens in the local time zone or a time zone IT chooses. Apps that support delta updates, such as Microsoft apps, download only what changed, so Monday morning bandwidth isn't eaten by updates.

4. What Can Be Installed? Limit Package Sources with Settings Files

Where packages come from matters. Malicious packages have turned up in npm, PyPI, and Homebrew (see Can a Mac Get Hacked?). The good news is that common package managers have system-wide settings files that Jamf can deploy:

  • Homebrew: The system-wide file is /etc/homebrew/brew.env. HOMEBREW_FORBIDDEN_FORMULAE lists packages that can't be installed, HOMEBREW_FORBIDDEN_TAPS blocks specific third-party sources (taps), and HOMEBREW_FORBIDDEN_LICENSES blocks packages by license. Dependencies are checked too. Add HOMEBREW_SYSTEM_ENV_TAKES_PRIORITY, and users' own settings can't override the company file. HOMEBREW_FORBIDDEN_OWNER and HOMEBREW_FORBIDDEN_OWNER_CONTACT tell a blocked developer who to contact.
  • npm: The registry setting in the global settings file ($PREFIX/etc/npmrc) can point package downloads to the company's package proxy.
  • pip: The system-wide file on macOS is /Library/Application Support/pip/pip.conf, and index-url sets the package source.

To be clear, these settings are guardrails, not a cage. The npm and pip documentation both state that a user's own settings override the global ones, and developers can still download binaries directly. To allow downloads only from sources the company approves, permit only the company package proxy at the network edge, or use a dedicated management tool.

Workbrew is one such tool. It's an enterprise management platform built on Homebrew by a separate company, Workbrew. It's listed on Jamf Marketplace and provides package inventory, usage policies, and vulnerability patching. According to the Jamf blog, it now also covers npm packages, macOS apps, and code editor extensions. Homebrew itself states that both individuals and organizations can use it directly, without a separate platform. A company can start with the settings files above as basic guardrails, and consider a tool like Workbrew when it needs a complete inventory and central policies.

AI Agents: Command-Line Tools That Run Commands on Their Own

AI agents such as Claude Code are command-line tools too, with one difference: they run commands, install packages, and read and write files on their own to finish a task. So besides whether they're installed and which version, IT also needs to manage what they can do.

Claude Code, for example, supports managed settings. On Mac, you can deploy them with Jamf as a configuration profile, or place them in /Library/Application Support/ClaudeCode/managed-settings.json. Managed settings sit above every other level, so user and project settings can't override them. You can use them to:

  • Block reading files that hold secrets, such as .env
  • Turn off the mode that bypasses permission prompts
  • Limit which MCP servers it can connect to
  • Require sign-in with the company account

The package source guardrails above apply to AI agents too. When an agent runs brew install or npm install, the same settings apply. AI agents the company doesn't allow can be stopped outright with the binary blocklist from section 2. For broader AI tool control, such as finding which AI tools are installed or which folders AI can't read, see Mac AI Governance and AI Agent Control.

Where to Start: Five Steps

  1. Take inventory: Use extension attributes to find which command-line tools and versions are on developer Mac computers.
  2. Make a list: Decide which tools IT deploys centrally (for example Homebrew, Node.js, and Git), which developers can install themselves, and which are blocked.
  3. Deploy and update: Deploy approved tools with Jamf App Catalog in Blueprints, and let a blueprint keep versions current.
  4. Set guardrails: Deploy brew.env and npm and pip settings that point to approved sources. Starting with macOS 27, use the App Settings component in blueprints to add a binary blocklist for tools you don't allow. If needed, limit download sources at the network edge.
  5. Manage AI agents: Deploy managed settings for AI agents that set what they can read and run.

How KlickKlack Can Help

KlickKlack is the world's only Jamf partner holding Elite, MSP, and MSSP certifications. We can help with:

  • Inventory: Write extension attributes that find the command-line tools and versions on developer Mac computers.
  • Deployment and guardrails: Deploy tools such as Homebrew and Node.js, plus package source settings, with Jamf Pro, and plan the move from App Installers to blueprints.
  • Binary control: Use the App Settings component in Jamf Pro blueprints to design macOS 27 binary allowlist and blocklist rules that stop tools you don't allow without breaking developer workflows.
  • AI agent control: Deploy managed settings for AI agents such as Claude Code. See Mac AI Governance and AI Agent Control.

KlickKlack can deploy it for you, or run it as a managed service.

Want to know which command-line tools are on your developers' Mac computers? Contact us, and we can help, starting with an inventory. To learn more, see Jamf Apple Security and Device Management.

FAQ

If we remove administrator rights, can developers still install command-line tools?

Yes. Once Homebrew is installed, installing packages doesn't need administrator rights, and tools such as Claude Code, nvm, and mise install into the user's home folder, which never needed them. Standard accounts block system-level changes, but command-line tools are managed by deploying approved versions and limiting package sources. Starting with macOS 27, a binary blocklist can also stop specific tools.

Can the macOS 27 binary allowlist stop every command-line tool that shouldn't run?

Not all of them. Tools with a Developer ID signature, such as Claude Code and the official Node.js build, can be blocked by Team ID, and the rule keeps working for new versions. But most tools that Homebrew builds itself have only an ad hoc signature, so a rule can match them only by a hash that changes with every version. Scripts such as Homebrew, npm, and pip can't be matched on their own. On developer Mac computers, a blocklist for specific tools works better, paired with package source settings.

Can Jamf deploy Homebrew directly?

Yes. App Catalog in Blueprints includes Homebrew and Node.js in the catalog. Jamf tracks new versions, and IT just adds the tools to a blueprint and sets an update schedule. Before, deploying these tools meant preparing your own package or script and tracking new versions yourself.

Do we have to buy Workbrew as well?

Not necessarily. Homebrew states that individuals and organizations can use Homebrew directly, without a separate platform. Jamf extension attributes and Homebrew's brew.env cover basic inventory and guardrails. Consider a tool such as Workbrew when you need a complete package inventory, policies that also cover npm and code editor extensions, or vulnerability reports.

Can Homebrew's block lists stop every tool that shouldn't be installed?

No. They apply only to packages installed through Homebrew. Developers can still download binaries directly or use another package manager. Block lists work well for known problem packages. To strictly limit download sources, pair them with controls at the network edge.

Will developers feel restricted?

Not if it's done well. IT deploys the tools developers already use and keeps them updated, and guardrails block only a small number of risky packages and sources. Developers keep working with brew and Terminal, and when something is blocked, the message can tell them who to contact.

Want Similar Results?

Let us design the best solution for you

Get Consultation