
Manage Gravity Forms on the command line.
The Gravity Forms CLI Add-On allows WP-CLI users to manage forms and entries and more on the command line.
wp help gfwp help gf formwp help gf form fieldwp help gf form notificationwp help gf entrywp help gf entry notificationwp help gf installwp help gf setupwp help gf licensewp help gf toolwp gf form [command] Commands:
wp gf form field [command]wp gf field [command] (alias)Commands:
wp gf form notification [command]wp gf notification [command] (alias)Commands:
wp gf entry [command] Commands:
wp gf entry notification [command] Commands:
wp gf license [command] Commands:
wp gf tool [command] Commands:
The above commands all require Gravity Forms to be installed. However, if Gravity Forms is not installed then you can use this add-on to install it along with all the other official Gravity Forms add-ons.
The install command will download and install the latest version Gravity Forms available for auto-update and then run the database setup. The license key will be saved in the plugin settings.
A valid license key is required either in the GF_LICENSE_KEY constant or the --key option.
Examples:
wp gf install --key=xxxxxwp gf install --key=xxxxx --activatewp gf install gravityformspolls --key=xxxxxwp gf install gravityformsquiz --key=xxxxxOnce installed, the database can be set up or upgraded separately using the setup command. The command will not re-run the setup unless the --force flag is set.
Examples:
wp gf setupwp gf setup --forceGravity Forms and official add-ons can be updated using the update command.
Examples:
wp gf updatewp gf update gravityformspollsCheck the current version using the version command.
Examples:
wp gf versionwp gf version gravityformspollsIf you find anything that needs fixing please open a support ticket at https://www.gravityforms.com/open-support-ticket/
If you have any ideas for improvements please submit your idea at https://www.gravityforms.com/gravity-forms-roadmap/
wp plugin install gravityformscli –activate
or
wp package install https://github.com/gravityforms/gravityformscli.git or
wp gf update with an add-on slug uses the Gravity Forms version number.--version=beta with the wp gf install and wp gf update commands. Add-On beta releases are not currently supported.wp gf version command with an add-on slug when Gravity Forms is not active or not installed.wp gf form notification create command.wp gf entry list command to support the page-size and offset args. Credit: Ulrich Pogson.wp gf form export 1 --filename=testing.json. Credit: Timothy Decker.wp gf install command could not network activate plugins.wp gf form notification update command without the notification-id arg.wp gf entry export command.wp gf entry export 11 --start_date="2018-11-01" --end_date="2018-11-11"wp gf tool system-report command and the wp gf tool status alias for outputting the system report from the Gravity Forms 2.2+ System Status page.wp gf install command ending with an error message when no error occurred.wp gf form field update command.wp gf form update command using the wrong argument to get the existing form which could result in a form not found error.wp gf form create command where missing field IDs are added automatically.wp gf license command.--file arg to the wp gf form update command to allow forms to be updated from an export file.wp gf form notification command.wp gf entry notification command.wp gf version command.wp gf update command.install and update commands to download the latest hotfix version by default.wp gf form export <form-id> where the form ID is ignored.install command to pass the --force value to the setup command.wp gf setup commandinstall command where the database was not setup until visiting the WP dashboard.