# \#wp-cli

**URL:** https://community.gravityforms.com/tag/wp-cli/55.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [Sort downloads available by release date](https://community.gravityforms.com/t/sort-downloads-available-by-release-date/20459)

<div class="topic-metadata">

**Author:** [@serpcom](https://community.gravityforms.com/u/serpcom)\
**Replies:** 0\
**Last updated:** [October 13, 2026, 1:23pm UTC](https://community.gravityforms.com/t/sort-downloads-available-by-release-date/20459 "2026-10-13T13:23:55Z")

</div>

Would really be helpful if you could sort/display all downloads by release date. Esp. if you manage hundreds of websites and you use almost every add-on, etc. As opposed to comparing version numbers of the available do…

---

## [Remove all Gravity Forms entries at once](https://community.gravityforms.com/t/remove-all-gravity-forms-entries-at-once/20288)

<div class="topic-metadata">

**Author:** [@TM56](https://community.gravityforms.com/u/TM56)\
**Replies:** 7\
**Last updated:** [June 10, 2026, 9:31am UTC](https://community.gravityforms.com/t/remove-all-gravity-forms-entries-at-once/20288 "2026-06-10T09:31:27Z")

</div>

Hi! I just installed Grafivty Forms CLI, convinced it would allow me to remove all existing GF entries at once with the wp gf entry delete command. That’a good way to cleanup a staging or test environment. But I could…

---

## [Import entries json](https://community.gravityforms.com/t/import-entries-json/19262)

<div class="topic-metadata">

**Author:** [@mareider](https://community.gravityforms.com/u/mareider)\
**Replies:** 1\
**Last updated:** [April 23, 2025, 7:18am UTC](https://community.gravityforms.com/t/import-entries-json/19262 "2025-04-23T07:18:55Z")

</div>

I am trying to import entries via json using CLI and it shows entries are added successfully, but none of the data comes through. \[ { "Name (Prefix)": "", "Name (First)": "Test", "Name (Middle)": "", "…

---

## [1.5 million form entries](https://community.gravityforms.com/t/1-5-million-form-entries/18081)

<div class="topic-metadata">

**Author:** [@opie2k1](https://community.gravityforms.com/u/opie2k1)\
**Replies:** 7\
**Last updated:** [September 4, 2024, 8:54pm UTC](https://community.gravityforms.com/t/1-5-million-form-entries/18081 "2024-09-04T20:54:28Z")

</div>

My site got hacked and I have 1.5 million form entries. How do I delete them all. If I select them all and send them to the trash, my site crashes. Do I need to do it in phpmyadmin?

---

## [Change allowed file extensions](https://community.gravityforms.com/t/change-allowed-file-extensions/17388)

<div class="topic-metadata">

**Author:** [@CraigTommola](https://community.gravityforms.com/u/CraigTommola)\
**Replies:** 0\
**Last updated:** [May 1, 2024, 6:27pm UTC](https://community.gravityforms.com/t/change-allowed-file-extensions/17388 "2024-05-01T18:27:07Z")

</div>

I’ve been tasked with changing the allowed file uploads on 80+ forms, with multiple fields each, from pdf, doc, xls, csv, zip to solely pdf … Luckily they were all duplicated from the same base templates, so the field nu…

---

## [Bulk Update Multiple Forms at one time](https://community.gravityforms.com/t/bulk-update-multiple-forms-at-one-time/15054)

<div class="topic-metadata">

**Author:** [@user5c1c2f44266b82.7](https://community.gravityforms.com/u/user5c1c2f44266b82.7)\
**Replies:** 1\
**Last updated:** [May 3, 2023, 11:02am UTC](https://community.gravityforms.com/t/bulk-update-multiple-forms-at-one-time/15054 "2023-05-03T11:02:53Z")

</div>

I have about 65 forms that I need to update with the exact same update and wanted to see if there was code or a plugin that could automate this process. I need to add an additional drop down choice for hair color and eye…

---

## [Empty trash full of entries](https://community.gravityforms.com/t/empty-trash-full-of-entries/14722)

<div class="topic-metadata">

**Author:** [@deefuz](https://community.gravityforms.com/u/deefuz)\
**Replies:** 2\
**Last updated:** [March 16, 2023, 10:32pm UTC](https://community.gravityforms.com/t/empty-trash-full-of-entries/14722 "2023-03-16T22:32:03Z")

</div>

Hello team. Is there a hook to automatically empty the trash after X days? The documentation says that the trahs isn’t emptied automatically, but maybe programatically?

---

## [How to bulk delete entries older than x days using MySQL?](https://community.gravityforms.com/t/how-to-bulk-delete-entries-older-than-x-days-using-mysql/14008)

<div class="topic-metadata">

**Author:** [@michaeledi](https://community.gravityforms.com/u/michaeledi)\
**Replies:** 0\
**Last updated:** [December 5, 2022, 7:20am UTC](https://community.gravityforms.com/t/how-to-bulk-delete-entries-older-than-x-days-using-mysql/14008 "2022-12-05T07:20:10Z")

</div>

I’ve got over 30k entries with massive and long field values that I want to cleanup. Previously I tried the WP-CLI to filter and delete old entries, but stuck at the export step since is still took me decades… It’s been…

---

## [GFCommon::is\_preview and wp-cli](https://community.gravityforms.com/t/gfcommon-is-preview-and-wp-cli/13103)

<div class="topic-metadata">

**Author:** [@a.karpov](https://community.gravityforms.com/u/a.karpov)\
**Replies:** 3\
**Last updated:** [July 26, 2022, 9:48am UTC](https://community.gravityforms.com/t/gfcommon-is-preview-and-wp-cli/13103 "2022-07-26T09:48:54Z")

</div>

Hi, can someone fix behaviour of GFCommon::is\_preview() for wp-cli please? :slight\_smile: We have a lot of warnings in logs because of this :slight\_smile: When it’s called in console mode, RGFormsModel::get\_current\_pag…

---

## [Pulling Data From Old Gravity Forms Entries To ACF User Meta Data](https://community.gravityforms.com/t/pulling-data-from-old-gravity-forms-entries-to-acf-user-meta-data/12394)

<div class="topic-metadata">

**Author:** [@philthebass](https://community.gravityforms.com/u/philthebass)\
**Replies:** 1\
**Last updated:** [April 8, 2022, 1:19pm UTC](https://community.gravityforms.com/t/pulling-data-from-old-gravity-forms-entries-to-acf-user-meta-data/12394 "2022-04-08T13:19:24Z")

</div>

Hi, Does anyone know of a method or plugin that will help us do the following: We have a Gravity Form registration form which uses the User Registration add-on to create user accounts. As part of that process, we ask …

---

## [CLI command typos in documentation](https://community.gravityforms.com/t/cli-command-typos-in-documentation/11198)

<div class="topic-metadata">

**Author:** [@v1ktor](https://community.gravityforms.com/u/v1ktor)\
**Replies:** 3\
**Last updated:** [November 23, 2021, 3:58am UTC](https://community.gravityforms.com/t/cli-command-typos-in-documentation/11198 "2021-11-23T03:58:55Z")

</div>

I noticed some WP-CLI commands in documentation use a hyphen when they should be using underscores. Here’s one example I noticed: For example: --page-size= should be --page\_size= Just FYI.

---

## [How to bulk delete old entries using WP-CLI?](https://community.gravityforms.com/t/how-to-bulk-delete-old-entries-using-wp-cli/11209)

<div class="topic-metadata">

**Author:** [@michaeledi](https://community.gravityforms.com/u/michaeledi)\
**Replies:** 3\
**Last updated:** [November 19, 2021, 2:08am UTC](https://community.gravityforms.com/t/how-to-bulk-delete-old-entries-using-wp-cli/11209 "2021-11-19T02:08:47Z")

</div>

I checked the docs and the wp gf entry delete only supports id lists, even though it supports inline listing like wp gf entry list 1 --status=trash --format=ids , there’s no parameter like start\_date or end\_date, which m…

---

## [Over 1G database, exporting entries doesn't work \[RESOLVED\]](https://community.gravityforms.com/t/over-1g-database-exporting-entries-doesnt-work-resolved/10560)

<div class="topic-metadata">

**Author:** [@michaeledi](https://community.gravityforms.com/u/michaeledi)\
**Replies:** 2\
**Last updated:** [August 13, 2021, 1:50pm UTC](https://community.gravityforms.com/t/over-1g-database-exporting-entries-doesnt-work-resolved/10560 "2021-08-13T13:50:12Z")

</div>

Got over 10,000 entries, and total database size over 1G, just tried to export only 3 entries, I chose the date range (within 1 day), the export process is taking over 15 mins and still 0% now. The PHP timeout and all r…

---

## [Manage multiple sites in one place](https://community.gravityforms.com/t/manage-multiple-sites-in-one-place/10232)

<div class="topic-metadata">

**Author:** [@user60eab54c8b7c8266](https://community.gravityforms.com/u/user60eab54c8b7c8266)\
**Replies:** 1\
**Last updated:** [July 12, 2021, 7:38pm UTC](https://community.gravityforms.com/t/manage-multiple-sites-in-one-place/10232 "2021-07-12T19:38:55Z")

</div>

Hello Everyone, We currently manage about 30+ websites. Is there a way we can manage and update the gravity forms in those websites in one go? Specifically, if I want to change Cc: field in all the websites in one go i…

---

## [Handling DEV, QA, and PROD Environments (Ignoring Entries) \[RESOLVED\]](https://community.gravityforms.com/t/handling-dev-qa-and-prod-environments-ignoring-entries-resolved/9013)

<div class="topic-metadata">

**Author:** [@user605a5343cd3c7188](https://community.gravityforms.com/u/user605a5343cd3c7188)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 10:15pm UTC](https://community.gravityforms.com/t/handling-dev-qa-and-prod-environments-ignoring-entries-resolved/9013 "2021-05-07T22:15:56Z")

</div>

Hi Everyone, We have three environments for our website: DEV, QA, and PROD. We do all of our development (including all Gravity Forms design) in DEV, our testing in QA, and the live site is in PROD. What I want to do i…

---

## [How to cleanly delete Gravity Forms entries with SQL?](https://community.gravityforms.com/t/how-to-cleanly-delete-gravity-forms-entries-with-sql/8460)

<div class="topic-metadata">

**Author:** [@michaeledi](https://community.gravityforms.com/u/michaeledi)\
**Replies:** 5\
**Last updated:** [April 8, 2021, 1:03am UTC](https://community.gravityforms.com/t/how-to-cleanly-delete-gravity-forms-entries-with-sql/8460 "2021-04-08T01:03:29Z")

</div>

I got over 20k entries, and it’s such a pain to click ‘empty trash’ since it always ends with 502 timeout. I want to delete Form entries using SQL queries, but I’m not sure how to remove all meta/relationships gracefull…

---

## [Gravity Forms CLI Entries Import not working](https://community.gravityforms.com/t/gravity-forms-cli-entries-import-not-working/2013)

<div class="topic-metadata">

**Author:** [@user5caf527ad11f2954](https://community.gravityforms.com/u/user5caf527ad11f2954)\
**Replies:** 1\
**Last updated:** [January 20, 2021, 1:48pm UTC](https://community.gravityforms.com/t/gravity-forms-cli-entries-import-not-working/2013 "2021-01-20T13:48:43Z")

</div>

I’m trying to import entries from one server to another. I exported using the built in entries export. When trying to import to an identical form I get the error “Invalid collection of entries”. Both servers have sam…

---

## [Printing entries with wp-cli (gravityformscli)](https://community.gravityforms.com/t/printing-entries-with-wp-cli-gravityformscli/2145)

<div class="topic-metadata">

**Author:** [@dalom](https://community.gravityforms.com/u/dalom)\
**Replies:** 0\
**Last updated:** [June 24, 2019, 1:08pm UTC](https://community.gravityforms.com/t/printing-entries-with-wp-cli-gravityformscli/2145 "2019-06-24T13:08:24Z")

</div>

I want to export and import entries from a migrated site, but only get errors when I try. The site has 29 forms, and so far non of the forms I have tried to get entries from has given me other than an error refering to d…

---

## [Database too big, how to delete entries?](https://community.gravityforms.com/t/database-too-big-how-to-delete-entries/2133)

<div class="topic-metadata">

**Author:** [@Algofae](https://community.gravityforms.com/u/Algofae)\
**Replies:** 1\
**Last updated:** [June 23, 2019, 6:17pm UTC](https://community.gravityforms.com/t/database-too-big-how-to-delete-entries/2133 "2019-06-23T18:17:41Z")

</div>

Hello, My database became too big because I kept more than 120,000 entries of forms. The tables gf\_entry\_meta (800 Mio) and rg\_lead-detail (290 Mio) in particular are very heavy. I would like to lighten them by deleting…

---

## [Wp cli license update not working](https://community.gravityforms.com/t/wp-cli-license-update-not-working/752)

<div class="topic-metadata">

**Author:** [@user5baccb402abe38.2](https://community.gravityforms.com/u/user5baccb402abe38.2)\
**Replies:** 1\
**Last updated:** [January 10, 2019, 5:31am UTC](https://community.gravityforms.com/t/wp-cli-license-update-not-working/752 "2019-01-10T05:31:15Z")

</div>

Hi All, I am following the below guide trying to update the license for gravity forms, but when I go back to the wordpress dashboard and go to the forms menu I am still getting a prompt to enter a license. The command …

---

## [How to recreate gf\_entry\_table?](https://community.gravityforms.com/t/how-to-recreate-gf-entry-table/266)

<div class="topic-metadata">

**Author:** [@reginald](https://community.gravityforms.com/u/reginald)\
**Replies:** 2\
**Last updated:** [November 1, 2018, 3:50pm UTC](https://community.gravityforms.com/t/how-to-recreate-gf-entry-table/266 "2018-11-01T15:50:45Z")

</div>

Hi, I’m unable to recreate new entries because I deleted the gf\_entry table in a backup since the entries can information and I wish to not store that information in my backups. Perhaps I’m mistaken, but I thought I wa…
