gravityforms/gravityformscli
Composer 安装命令:
composer require gravityforms/gravityformscli
包简介
A set of WP-CLI commands to manage Gravity Forms.
README 文档
README
The Gravity Forms CLI Add-On allows WP-CLI users to manage installation, forms and entries on the command line.
Installation
As a WP-CLI package:
wp package install gravityforms/gravityformscli
As a WordPress plugin:
wp plugin install gravityformscli --activate
Installing from GitHub:
wp package install https://github.com/gravityforms/gravityformscli.git
Getting started
wp help gfwp help gf formwp help gf fieldwp help gf entrywp gf licensewp help gf tool
Form Management
wp gf form [command]
Commands:
- create - Creates a new form.
- delete - Deletes a form.
- duplicate - Duplicates a form.
- edit - Launch system editor to edit the Form configuration.
- export - Exports forms to a Gravity Forms Form export file.
- list - Lists the forms with entry count and view counts.
- get - Returns the form JSON.
- import - Imports forms from a Gravity Forms Form export file.
- update - Updates a form.
Field Management
wp gf form field [command]wp gf field [command](alias)
Commands:
- create - Creates a field and adds it to a form.
- delete - Deletes a field.
- duplicate - Duplicates a field.
- edit - Launch system editor to edit the Field configuration.
- get - Returns the JSON representation of a field.
- list - Displays a list of fields for a form.
- update - Updates a field.
Notification Management
wp gf form notification [command]wp gf notification [command](alias)
Commands:
- create - Creates a new notification.
- delete - Deletes a notification.
- duplicate - Duplicates a notification.
- edit - Launch system editor to edit the notification configuration.
- list - Lists the notification.
- get - Returns the notification JSON.
- update - Updates a notification.
Entry Management
wp gf entry [command]
Commands:
- create - Creates a new entry from either a JSON string with the raw entry or from field-value pairs.
- delete - Deletes an entry.
- duplicate - Duplicates an entry
- edit - Launch system editor to edit the JSON representation of the Entry.
- export - Exports entries.
- get - Returns a JSON representation of an entry.
- import - Imports entries.
- list - Displays a list of entries.
- update - Updates an entry.
Entry Notifications
wp gf entry notification [command]
Commands:
- get - Returns the notifications for the given entry.
- send - Sends the notifications for the given entry.
License Management
wp gf license [command]
Commands:
- update - Updates the license key for the installation.
- delete - Deletes the license key for the installation.
Misc Tools
wp gf tool [command]
Commands:
- clear_transients
- empty-trash Delete the trashed entries.
- verify-checksums Verify Gravity Forms files against the checksums.
- system-report Outputs the system report from the Forms > System Status page. Supports "status" as an alias.
Installing and Updating Gravity Forms and Add-Ons
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 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=xxxxx
Once 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 --force
Gravity Forms and add-ons can be updated using the update command.
Examples:
wp gf updatewp gf update gravityformspolls
Check the current version using the version command.
Examples:
wp gf versionwp gf version gravityformspolls
Requirements
- Wordpress 4.2+
- Gravity Forms > 1.9.17.8
- WP-CLI v2.5+
Support
If 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/
gravityforms/gravityformscli 适用场景与选型建议
gravityforms/gravityformscli 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 14, 最近一次更新时间为 2026 年 04 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cli」 「wordpress」 「wp-cli」 「gravityforms」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 gravityforms/gravityformscli 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 gravityforms/gravityformscli 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 gravityforms/gravityformscli 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Use WP-CLI to clear the OPcache for a site via HTTP.
Slim starter / Slim skeleton package to boost your development with Slim framework
Check for common mistakes and enforce best practices before take off.
Generates a trait to help ease the access of custom repo methods
Extra preflight-command checkers for professional developers.
Extra preflight-command checkers for Yoast SEO.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 14
- 点击次数: 21
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-or-later
- 更新时间: 2026-04-02