Skip to content
All insights
Tips31 March 20201 min read

Catalina: Let me run my CLI command!

A welcome macOS Catalina security change can block trusted command-line tools you've downloaded. Here are two safe ways around it.

Melroy Quailey

Melroy Quailey

Senior engineer, TechSpike

macOS Catalina security alert dialog

One of the security enhancements introduced in macOS Catalina makes the signing and notarization of 64-bit executables mandatory. Previously this was a recommendation, but now applications that don’t satisfy it won’t execute unless explicitly added as an exception via Security & Privacy in System Preferences.

Although this is a welcome security enhancement — making things safer for end users and preventing the spread of malicious programs — sometimes it prevents you from running an application that you’ve downloaded and trust, without some extra steps.

Two options to get around this are as follows.

1. From the terminal

xattr -d com.apple.quarantine k9s

This removes the quarantine attribute that’s added to the executable when it’s downloaded via a browser. You should be able to run the executable without further warnings.

2. Via System Preferences

Go to System Preferences → Security & Privacy → General. You should see a screen similar to the following:

macOS Security & Privacy preferences, showing the Allow Anyway option

Click the Allow Anyway button next to the application you’re trying to run. You should then be able to execute it without further warnings.

Please note: you should take all care and the necessary precautions when downloading and executing anything from the internet, including the following:

  • Ensure you have appropriate anti-virus software installed and up to date.
  • Only download software from a trusted and well-known source (over HTTPS!).
  • Verify the executable against its published checksum.
#macOS#CLI#Security

Keep reading

DevOps1 April 20208 min read

Taking the K9s out for a walk

A hands-on walkthrough of K9s, the terminal UI for managing Kubernetes clusters — installation, navigating resources, viewing logs, pulses, xrays and benchmarking.

Got a website problem? Let's take a look.

Send your URL and what's wrong. I'll give you an honest assessment — free, no obligation.

No obligation. A real person — me — replies personally.