Installing Dependencies
New in Alfred 5
Alfred 5’s dependencies manager helps to install Homebrew, programming languages, and other dependencies. On previous versions, use the method below.
Workflows can be written in a variety of languages. These used to ship with macOS but now are installed separately. The scripts on this page automate the process.
To install a dependency:
- Copy the relevant command.
- Use Alfred to open
Terminal.app
. - Paste the command in the terminal window.
- Press ↩.
You will be asked for your password if you do not yet have Homebrew. You can then leave it to run. Text will scroll by but you can ignore it unless something goes wrong. They will inform you when they are done.
You only have to run a command once and it will work for all workflows with the same dependency.
PHP
/bin/bash -c "$(curl -fsSL https://github.com/alfredapp/dependency-scripts/raw/main/scripts/install-php.sh)"
Python 3
/bin/bash -c "$(curl -fsSL https://github.com/alfredapp/dependency-scripts/raw/main/scripts/install-python3.sh)"
Python 2
/bin/bash -c "$(curl -fsSL https://github.com/alfredapp/dependency-scripts/raw/main/scripts/install-python2.sh)"
Node.js
/bin/bash -c "$(curl -fsSL https://github.com/alfredapp/dependency-scripts/raw/main/scripts/install-node.sh)"