Gravity Forms CLI

The Gravity Forms CLI Add-On brings Gravity Forms management to the command line, making it faster to install, configure, and maintain forms and entries.

Overview

The Gravity Forms CLI Add-On brings Gravity Forms management to the command line, making it faster to install, configure, and maintain forms and entries across your WordPress sites using WP-CLI.

Built for developers, agencies, and power users, it streamlines everyday Gravity Forms tasks—like creating or exporting forms, managing entries, sending notifications, and running maintenance tools—without needing to click through the WordPress admin.

Key Features

  • ⌨️ Full Gravity Forms control via WP-CLI: Manage core Gravity Forms tasks (forms, fields, entries, notifications) directly from your terminal.
  • 📦 Installation and updates made easy: Install Gravity Forms and supported add-ons, run setup/upgrade routines, and check versions with simple commands.
  • 🧩 Form & field management workflows: Create, edit, duplicate, import/export, and update forms and fields—ideal for repeatable builds and CI-friendly workflows.
  • 📨 Notification and entry operations: Work with entry data from the CLI (list/get/create/update/export/import) and manage notification actions including sending entry notifications.
  • 🛠️ Built-in utility commands: Run maintenance tools such as clearing transients, verifying checksums, deleting trashed entries, and generating system reports.

How It Works

  1. Install the add-on: Install it as a WP-CLI package or as a WordPress plugin.
  2. Use the gf WP-CLI command group: Run wp help gf to discover available command groups like formfieldentrynotificationtool, and license.
  3. Perform Gravity Forms actions from the terminal: Create and manage forms, import/export configurations, work with entries, and trigger useful tools—without leaving your CLI.
  4. Automate repeatable workflows: Use the CLI commands in scripts, deployment pipelines, or maintenance routines to standardize Gravity Forms operations across environments.

Provide feedback here

Requirements

  • WordPress 4.2+
  • Gravity Forms > 1.9.17.8
  • WP-CLI v2.5+

Changelog

Documentation

CLI Documentation

The Gravity Forms CLI Add-On lets WP-CLI users manage Gravity Forms installation, forms, fields, notifications, entries, and utilities directly from the command line.