Wp gf install (WP-CLI)
Install Gravity Forms or an add-on for Gravity Forms.
$ wp help gf install NAME wp gf install DESCRIPTION Installs Gravity Forms or a Gravity Forms official add-on. SYNOPSIS wp gf install [<slug>] [--key=<key>] [--version=<version>] [--force] [--activate] [--activate-network] A valid key is required either in the GF_LICENSE_KEY constant or the --key option.
Slugs
Slugs for various add-ons, can be found here: https://docs.gravityforms.com/gravity-forms-add-on-slugs/ - But the slug is missing for the ReCAPTCHA add-on.
Key
It seems that you always need to supply a key, probably the key for Gravity Forms itself.
Maybe this is how to retrieve the key:
select * from wp_options where option_name like "gf_site%";
but so far, I didn't get it to work. E.g.:
$ wp gf install gravityformsrecaptcha --key=123-4343-343-4343 Error: There was a problem retrieving the download URL, please check the key. $ wp gf install gravityformsrecaptcha --key="123-4343-343-4343" Error: There was a problem retrieving the download URL, please check the key.
Examples
$ wp gf install gravityformspolls Error: A valid license key must be specified either in the GF_LICENSE_KEY constant or the --key option.
# the error doesn't say much: # $ wp gf install blublublub Error: A valid license key must be specified either in the GF_LICENSE_KEY constant or the --key option.
# This should be the correct slug: # $ wp gf install gravityformsrecaptcha Error: A valid license key must be specified either in the GF_LICENSE_KEY constant or the --key option.