Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Download and install ACF Pro via a bash script – to be used with WP CLI. Set an environemnt variable ACF_KEY first!
# Adapted from
# get plugin path
acf_zip_file="$(wp plugin path)/"
# get acf zip file
wget -O ${acf_zip_file} "$ACF_KEY"
# install & activate acf
wp plugin install ${acf_zip_file} --activate
# remove zip file
rm ${acf_zip_file}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.