Homebrew has disabled this package: fails_gatekeeper_check

Salesforce CLI

CLI tools for Salesforce

CaskDeveloper ToolsApple silicon · IntelDisabled
From homebrew/cask
30-day installs
0
1-year installs
4.2K
Last 365 days
Latest version
2.149.9
Aug 26 · Aug 26
Download size
—
arm64 / x86_64 · pkg
Release cadence
Irregular
0 releases in 30 days

Salesforce CLI is Developer Tools software for Mac.

Quick facts

Chips
Apple silicon · Intel
Install
brew install --cask salesforce-cli
Homebrew
Disabled by Homebrew
Also known as
sf, salesforce-cli

These facts were checked on or after . See each source

About

CLI tools for Salesforce

System requirements

macOSVersionChipsDownloadSource
Build for macOS 27, 26, 15, 14, 13, 12, 112.149.9,3ee5999Intelgithub.com/salesforcecli/cli/releases/download/2.149.9/sf-v2.149.9-3ee5999-x64.pkgSHA-256 00a84b4dc4fd8e279498bd8479af09b4eb3d4f9c46da21b213064f61099c9d44HomebrewChecked
Build for macOS 27, 26, 15, 14, 13, 12, 112.149.9,3ee5999Apple silicongithub.com/salesforcecli/cli/releases/download/2.149.9/sf-v2.149.9-3ee5999-arm64.pkgSHA-256 ef2104f73a18c3fc1bc1e8bd1131673287907728dde978683fb6bbf9255357b0HomebrewChecked

How to install Salesforce CLI on Mac

  1. In Terminal, run: brew install --cask salesforce-cli
  2. Homebrew runs the sf-v2.149.9-3ee5999-arm64.pkg installer, which asks for an administrator password.

Install without Homebrew

Download the file Homebrew uses for your chip: Apple siliconIntel

SHA-256 only checks that the download is complete; it is not a security certification. See the SHA-256 and download address

Uninstall Salesforce CLI and optional data cleanup

Uninstall command
brew uninstall --cask salesforce-cli

A regular uninstall removes the app and keeps its settings and caches.

Uninstalling also removes

Installer receipts (pkgutil)
com.salesforce.cli
Files and folders
/usr/local/bin/sf
/usr/local/bin/sfdx

Deep clean (optional)

Uninstall command
brew uninstall --zap --cask salesforce-cli

--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.

Files Salesforce CLI can leave on your Mac (4)
Files and folders
~/.cache/sf
~/.config/sf
~/.local/share/sf
~/.sf

These entries come from the Homebrew definition, checked . They say what it declares, not what is on your Mac.

What’s new in 2.149.9

New From Homebrew commits

This release has no separate notes.

Salesforce CLI security facts

Only facts that can be checked, each with its source and date. This is not a safety certification. To check the files you downloaded, scan them on your Mac with OpenNavo.

Distribution
Homebrew
Open source
Yes · github.com/salesforcecli/cli · Apache-2.0Checked
Scan with OpenNavoOpens a scan preview in the OpenNavo app; you decide whether to start it. Learn about Security

Install Details

Tap
homebrew/cask
Former tokens
sf
Installer packages
sf-v2.149.9-3ee5999-arm64.pkg
Download URL
https://github.com/salesforcecli/cli/releases/download/2.149.9/sf-v2.149.9-3ee5999-arm64.pkg
SHA-256
ef2104f73a18c3fc1bc1e8bd1131673287907728dde978683fb6bbf9255357b0
Homebrew definition
github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/salesforce-cli.rb
formulae.brew.sh
formulae.brew.sh/cask/salesforce-cli

Installation and removal contents

  • Uninstall uninstall

    View full declaration
    {
      "uninstall": [
        {
          "delete": [
            "/usr/local/bin/sf",
            "/usr/local/bin/sfdx"
          ],
          "pkgutil": "com.salesforce.cli"
        }
      ]
    }
  • Install pkg

    Source file: sf-v2.149.9-3ee5999-arm64.pkg

    View full declaration
    {
      "pkg": [
        "sf-v2.149.9-3ee5999-arm64.pkg"
      ]
    }
  • Remove user data zap

    View full declaration
    {
      "zap": [
        {
          "trash": [
            "~/.cache/sf",
            "~/.config/sf",
            "~/.local/share/sf",
            "~/.sf"
          ]
        }
      ]
    }

Questions about Salesforce CLI

Is Salesforce CLI safe?

Homebrew has disabled Salesforce CLI (it fails macOS Gatekeeper checks), so it can no longer be installed with Homebrew. It was disabled on Sep 1.

Is Salesforce CLI open source?

Salesforce CLI’s source code is public on GitHub (salesforcecli/cli) under the Apache-2.0 license.

How do I completely uninstall Salesforce CLI on a Mac?

Run brew uninstall --cask salesforce-cli. It forgets 1 installer receipt. To delete its settings and caches as well, run brew uninstall --zap --cask salesforce-cli. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes 4 files and folders, including ~/.cache/sf.

Does Salesforce CLI run on Apple silicon (M1 and later) Macs?

Yes. Homebrew downloads separate builds for Apple silicon and Intel Macs.

Where does Salesforce CLI store its settings and data?

Its data is in ~/.cache/sf, ~/.config/sf, and ~/.sf. These locations come from Homebrew’s clean-up list.

What is the latest version of Salesforce CLI?

The latest version is 2.149.9, added to Homebrew on Aug 26. Run brew upgrade --cask salesforce-cli to update it.

What else does installing Salesforce CLI add?

It installs through a .pkg installer, which asks for an administrator password.

Sources

Every fact on this page names its source and check date. Facts past their validity read “as of” their date and are no longer stated as current.