Skip to content

Install sfe

Step 2 of 7

This page is step 2 of the path. sfe is one self-contained program. We download it with a single line, which fetches the right binary for our Mac, installs the sfe command, and puts it where the Terminal can find it. It needs no Node, no Homebrew and no code checkout. It takes about two minutes.

Video, about one and a half minutes, with narration and captions.

Before you start

  • A Terminal window is open (Before you begin shows how).
  • The Mac is online. The download fetches the program from GitHub.

Steps

1. Download and install sfe

We type this one line and press Enter. It is safe to read first: it is a short script that downloads the sfe program and puts it in a folder in our home directory.

curl -fsSL https://raw.githubusercontent.com/itsajanpoudel/sfe-bundle/main/install.sh | sh

The copy button at the right end of the box copies the whole line. curl fetches the install script, and | sh runs it.

It prints the file it is downloading, a progress bar while the program comes down (it is about 90 MB), and then a line that says where it installed sfe, which is ~/.local/bin. It also installs three more names next to it, sfe-apply, sfe-guard and sfe-mcp, which are the same program under other names.

The download line, the progress bar at 100%, and the line that sfe is installed in ~/.local/bin

What does the script do?
  1. It checks that this is a Mac, and which processor it has.
  2. It downloads the matching sfe program from the latest release.
  3. It puts the program in ~/.local/bin as sfe, and makes sfe-apply, sfe-guard and sfe-mcp beside it.
  4. If that folder is not on our PATH, it prints the line to add.

It changes nothing outside ~/.local/bin. To read it before running it, open the address in the line in a browser.

If the line ends by telling us to add a folder to our PATH, we copy the command it prints and run it, then open a new Terminal window. PATH is the list of folders the Terminal looks in for a command.

2. Check that the Mac finds sfe

sfe version

sfe prints its version: the newest release, 0.1.4 or later (the screen below was taken with 0.1.0). A line above it, that sfe is not set up yet, is expected until the next step turns on the pack.

sfe prints that it is not set up yet, then its version

If the Mac answers zsh: command not found: sfe instead, the folder it was installed in is not on our PATH yet, or the Terminal window was open before the install. We tell the Terminal where to look, once, and open a new window:

export PATH="$HOME/.local/bin:$PATH"

What we should see

  • A progress bar, then a line saying sfe was installed in ~/.local/bin.
  • The version from sfe version, 0.1.4 or later, with a note that sfe is not set up yet.

Troubleshooting

What we see Likely cause What to do
curl: command not found curl is missing, which is rare on a Mac Install Apple's command line tools: run xcode-select --install, then try the line again
The download fails or stalls A slow connection or a VPN Run the same line again; it starts over. On a company network a VPN can block GitHub downloads
"sfe" cannot be opened because the developer cannot be verified The program is not signed by Apple, and it was opened from Finder We run it from Terminal instead. The install line clears this mark; if a copy still trips, run xattr -d com.apple.quarantine ~/.local/bin/sfe
zsh: command not found: sfe after the install The install folder is not on PATH, or the window was open before Run the export PATH line above and open a new Terminal window
sfe runs on macOS; this is Linux We are not on a Mac sfe keeps sign-ins in the macOS Keychain and asks on the macOS dialog, so it runs on a Mac only

Next


Last reviewed: 2026-12-02