[WordPress] 外掛分享: Gravity Forms CLI Add-On

首頁外掛目錄 › Gravity Forms CLI Add-On
WordPress 外掛 Gravity Forms CLI Add-On 的封面圖片
10,000+
安裝啟用
★★★★
4.4/5 分(7 則評價)
471 天前
最後更新
問題解決
WordPress 4.2+ v1.7 上架:2016-05-23

內容簡介

Gravity Forms CLI 外掛可讓 WP-CLI 使用者在命令列上管理表單、條目等功能。

文件

表單管理

條目管理

開始使用

wp help gf
wp help gf form
wp help gf form field
wp help gf form notification
wp help gf entry
wp help gf entry notification
wp help gf install
wp help gf setup
wp help gf license
wp help gf tool

表單管理
wp gf form [command]

指令:

create – 建立新的表單。
delete – 刪除表單。
duplicate – 複製表單。
edit – 啟動系統編輯器以編輯表單設定。
export – 匯出表單至 Gravity Forms Form 匯出檔案。
form_list – 顯示附帶條目數和檢視數的表單清單。
get – 檢索表單 JSON 設定。
import – 從 Gravity Forms Form 匯出檔案匯入表單。
update – 更新表單。

欄位管理

wp gf form field [command]
wp gf field [command] (alias)

指令:

create – 建立欄位並新增至表單。
delete – 刪除欄位。
duplicate – 複製欄位。
edit – 啟動系統編輯器以編輯欄位設定。
get – 檢索欄位 JSON 設定。
list – 顯示表單的欄位清單。
update – 更新欄位。

通知管理

wp gf form notification [command]
wp gf notification [command] (alias)

指令:

create – 建立新的通知。
delete – 刪除通知。
duplicate – 複製通知。
edit – 啟動系統編輯器以編輯通知設定。
list – 顯示通知。
get – 檢索通知 JSON 設定。
update – 更新通知。

條目管理
wp gf entry [command]

指令:

create – 從原始條目或欄位值對建立新的條目。
delete – 刪除條目。
duplicate – 複製條目。
edit – 啟動系統編輯器以編輯條目 JSON 設定。
export – 匯出條目。
get – 檢索條目的 JSON 設定。
import – 匯入條目。
list – 顯示條目清單。
update – 更新條目。

條目通知
wp gf entry notification [command]

指令:

get – 檢索給定條目的通知。
send – 送出給定條目的通知。

授權管理
wp gf license [command]

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Gravity Forms CLI Add-On」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The Gravity Forms CLI Add-On allows WP-CLI users to manage forms and entries and more on the command line.
Documentation
Getting started

wp help gf
wp help gf form
wp help gf form field
wp help gf form notification
wp help gf entry
wp help gf entry notification
wp help gf install
wp help gf setup
wp help gf license
wp 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.
form_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 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 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=xxxxx
wp gf install --key=xxxxx --activate
wp gf install gravityformspolls --key=xxxxx
wp 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 setup
wp gf setup --force

Gravity Forms and official add-ons can be updated using the update command.
Examples:

wp gf update
wp gf update gravityformspolls

Check the current version using the version command.
Examples:

wp gf version
wp gf version gravityformspolls

Requirements

WordPress 4.2+
Gravity Forms 1.9.17.8
WP-CLI version 1.0+

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/

延伸相關外掛

文章
Filter
Mastodon