Skip to content
GravityKit
Buy
Sign in
0 items
  • Plugins

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, PDF, or Google Sheets, then share them with secure links or deliver them to cloud storage on a schedule.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data between sites, including forms, entries, settings, Views, feeds, and file uploads, and import forms from other form plugins.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • Be There Local
    • Killer Shorts
    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    View All Case Studies
  • Resources

    • Blog
    • Case studies
    • Newsletter
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy

    Ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Support
  • Pricing
  • Plugins

    • GravityView

      GravityView

      Bestseller

      Display Gravity Forms entries on the front-end of your site and build powerful web applications.

    • GravityImport

      GravityImport

      Trending

      Import entries from CSV files into Gravity Forms to transfer data, create new forms, or update existing entries.

    • GravityEdit

      GravityEdit

      Quickly edit Gravity Forms entries inline to save time, reduce clicks, and streamline your workflow.

    • GravityCharts

      GravityCharts

      Trending

      Turn Gravity Forms entries into interactive charts and graphs.

    • GravityActions

      GravityActions

      Update multiple Gravity Forms entries at once, send bulk emails, and streamline your workflow.

    • GravityCalendar

      GravityCalendar

      Turn Gravity Forms entries into dynamic calendars to showcase events, schedules, appointments, and more.

    • GravityExport

      GravityExport

      Export Gravity Forms entries to Excel, CSV, PDF, or Google Sheets, then share them with secure links or deliver them to cloud storage on a schedule.

    • GravityMath

      GravityMath

      Perform advanced calculations on Gravity Forms entries to display totals, averages, or build custom calculators.

    • GravityRevisions

      GravityRevisions

      Track, compare, and restore changes made to Gravity Forms forms and entries with a full version history.

    • GravityMigrate

      GravityMigrate

      Migrate all Gravity Forms data between sites, including forms, entries, settings, Views, feeds, and file uploads, and import forms from other form plugins.

    • GravityBoard

      GravityBoard

      Manage projects with collaborative project management. Coordinate with your team and streamline your workflows.

    • GravitySearch

      GravitySearch

      Search Gravity Forms entries across every form from one screen.

    View All Products

    GravityKit All Access

    Our complete Kit of essential tools for extending and enhancing Gravity Forms—everything you need to build powerful web apps and workflows.

    Learn more
  • Ideal For

    • Nonprofits
    • Web Agencies
    • Education
    • Developers
    • Small Businesses
    • Startups
    Explore All Use Cases

    Case studies

    • Be There Local
    • Killer Shorts
    • West Fork Schools
    • Princeton University
    • BrightLeaf Giving
    • Jacksonville Port Authority
    • National Severe Storms Lab
    • Leadpal
    View All Case Studies

    How to build...

    • Client Portal
    • AI-Built Directory
    • Conference Website
    • WordPress CRM
    • Admin Dashboard
    • Inventory Management
    • Vendor Portal
    • Document Library
    View All Guides
  • Resources

    • Blog
    • Case studies
    • Newsletter
    • GravityKit vs competitors
    • Live Demos
    • Documentation
    • Developer docs
    • GravityKit Academy

    ultimate guides

    • How to use Gravity Forms
    • Editing Gravity Forms entries
    • Importing Gravity Forms entries
    • Exporting Gravity Forms entries
    • Displaying Gravity Forms entries
    • Gravity Forms conditional logic
    • Gravity Forms calculations
    View More Articles
  • Support
  • Pricing
0 items

Search

Results appear automatically as you type.
Loading results…

results found matching

    Sign in
    Buy

    Docs

    • Docs Home

    Gravity Forms Add-Ons

    • GravityView
    • GravityActions
    • GravityBoard
    • GravityCalendar
    • GravityCharts
    • GravityEdit
    • GravityExport
    • GravityImport
    • GravityMath
    • GravityRevisions
    • GravitySearch
    • GF Widget for Elementor
    • GF Dynamic Lookup
    • GF Entry Tags
    • GF Event Field
    • GravityExport Lite
    • GF Zero Spam
    • GravityMigrate

    GravityView

    • Getting Started
    • View Setup
    • FAQ
    • Pre-Sale
    • Advanced
    • Common Problems
    • Customizing Your Views
    • Edit Entry
    • Entry Approval
    • Filter and Sort Results
    • Gravity Forms
    • Merge Tags
    • Roles and Capabilities
    • Search
    • Shortcodes
    • View Settings
    • WordPress Posts

    General Help

    • Account, Invoices, and Billing
    • License Related
    • Plugins and Settings
    • Agency accounts
    • Contact
    • Docs Home
    • Gravity Forms Add-Ons

      • GravityView
      • GravityActions
      • GravityBoard
      • GravityCalendar
      • GravityCharts
      • GravityEdit
      • GravityExport
      • GravityImport
      • GravityMath
      • GravityRevisions
      • GravitySearch
      • GF Widget for Elementor
      • GF Dynamic Lookup
      • GF Entry Tags
      • GF Event Field
      • GravityExport Lite
      • GF Zero Spam
      • GravityMigrate
    • GravityView

      • Getting Started
      • View Setup
      • FAQ
      • Pre-Sale
      • Advanced
      • Common Problems
      • Customizing Your Views
      • Edit Entry
      • Entry Approval
      • Filter and Sort Results
      • Gravity Forms
      • Merge Tags
      • Roles and Capabilities
      • Search
      • Shortcodes
      • View Settings
      • WordPress Posts
    • General Help

      • Account, Invoices, and Billing
      • License Related
      • Plugins and Settings
      • Agency accounts
    • Contact

    General Help

      • Changing the payment method on your subscription
      • Renewing your license
      • Downloading a copy of your invoice
      • GravityKit W-9 Form (Tax ID)
      • Invoice information is incorrect
      • Nonprofit pricing
      • Refunds
      • Transferring your license
      • Turning off auto-renew subscriptions
      • Understanding Time-Based Proration for License Upgrades
      • Update your invoice with company name, address, or VAT number
      • Upgrading your license
      • Your GravityKit Account page
      • Managing connected sites
      • Renewing your license
      • About the “GravityView + Extensions (Legacy)” license
      • Can’t deactivate license key
      • Development websites and GravityKit licenses
      • Downgrading your license
      • Granting GravityKit Support Access to Your Website
      • GravityKit pricing updates FAQ
      • Hard-coding your license key
      • Is PDF for GravityView included in All Access?
      • Managing GravityKit products and licenses with WP-CLI
      • Managing your licenses
      • Multisite and GravityKit licenses
      • Products show as unlicensed
      • The license key keeps disappearing
      • Transferring your license
      • Upgrading your license
      • GravityKit code signing: technical overview
      • How to download and install an older version of a GravityKit plugin
      • How to temporarily disable GravityKit plugins using a URL parameter
      • Installing a build sent by GravityKit support
      • Using Visual Merge Tags
      • How to Get the Most Out of GravityKit Support
      • How to hide the “Function _load_textdomain_just_in_time was called incorrectly” notice
      • How To Import App Templates to Your Site
      • If you see a “This link has expired” or “Are you sure you want to do this?” message when installing a plugin
      • Installing standalone plugins
      • Installing, Activating, and Updating GravityKit Plugins
      • Locating and Updating Settings for GravityKit Products
      • Managing GravityKit products and licenses with WP-CLI
      • The “Download failed. Unauthorized” message
      • A license your agency manages: what it means for you
      • Adding clients and giving them licenses
      • Getting a client to pay: payment links and card-update links
      • Managing licenses for your clients with an agency account
      • Moving a license between you and a client
    • Home
    • Docs
    • General Help
    • License Related
    • Managing GravityKit products and licenses with WP-CLI

    Managing GravityKit products and licenses with WP-CLI

    Estimated reading: 12 minutes

    Updated on October 16, 2026

    GravityKit adds wp gk commands to WP-CLI, the command-line tool for WordPress. Use them to manage GravityKit products and license keys from a terminal, for example in a deployment script.

    To manage GravityKit products with Composer instead, see Installing GravityKit Products via Composer.

    Prerequisites #

    • WP-CLI installed on your server.
    • GravityView, or another GravityKit plugin that includes GravityKit Foundation, active on the site. Foundation is the part that adds the GravityKit menu to the dashboard and the wp gk commands to WP-CLI.
    • A GravityKit license, to install and update paid products. Free products don’t need one.

    To check that the commands are available, run wp gk version. It prints a line such as GravityKit Foundation 1.37.0 (loaded by GravityView).


    Product text domains #

    Product commands identify each product by its text domain, a unique slug. The Text Domain column of wp gk products list shows the current list.

    ProductText domain
    GravityViewgk-gravityview
    GravityActionsgk-gravityactions
    GravityBoardgk-gravityboard
    GravityCalendargk-gravitycalendar
    GravityChartsgk-gravitycharts
    GravityEditgk-gravityedit
    GravityExportgk-gravityexport
    GravityImportgk-gravityimport
    GravityMathgk-gravitymath
    GravityMigrategk-gravitymigrate
    GravityRevisionsgk-gravityrevisions
    GravitySearchgk-gravitysearch
    DataTablesgv-datatables
    DIY Layoutgravityview-diy
    GravityMaps (listed as Maps Premium View)gk-gravitymaps
    Dashboard Viewsgk-gravityview-dashboard-views
    Multiple Formsgravityview-multiple-forms
    Advanced Filteringgravityview-advanced-filter
    A-Z Filtersgravityview-az-filters
    Magic Linksgk-gravityview-magic-links
    Advanced Elementor Widgetgk-gravityview-elementor
    Featured Entriesgravityview-featured-entries
    Ratings & Reviewsgravityview-ratings-reviews
    Social Sharing & SEOgravityview-sharing-seo
    GravityExport Lite (free)gk-gravityexport-lite
    Gravity Forms Zero Spam (free)gravity-forms-zero-spam
    Gravity Forms Dynamic Lookup (free)gk-gravity-forms-dynamic-lookup
    Gravity Forms Entry Tags (free)gk-entry-tags
    Gravity Forms Event Field (free)gk-event-field
    Gravity Forms Widget for Elementor (free)gk-gravity-forms-elementor-widget
    Block MCP (free)gk-block-mcp

    To act on several products at once, separate their text domains with commas and no spaces:

    wp gk products install gk-gravityview,gk-gravitycharts,gk-gravityexport --activate

    Third-party products sold by GravityKit, such as PDF for GravityView and Image Hopper, aren’t available to these commands.


    Product commands #

    List products

    # All products, licensed or not
    wp gk products list
    
    # Installed products only
    wp gk products list --only-installed
    
    # Licensed and free products only
    wp gk products list --exclude-unlicensed
    
    # JSON output, for scripts
    wp gk products list --format=json
    
    # Fetch the list from GravityKit instead of using the 12-hour cache
    wp gk products list --skip-cache

    The table has these columns: Name, Description, Text Domain, Version, Update Available, Licensed, Installed, Active, and Network Active. Version is the installed version, or the latest version for a product that isn’t installed.

    Search products

    The search matches product names, text domains, and descriptions.

    wp gk products search "import"
    wp gk products search gravity --format=json

    Install products

    Paid products need a license that covers them. Free products, such as Gravity Forms Zero Spam, install without one.

    # Install one product
    wp gk products install gk-gravityexport
    
    # Install and activate
    wp gk products install gk-gravityexport --activate
    
    # Install several products
    wp gk products install gk-gravityimport,gk-gravitycharts --activate
    
    # Install every product your licenses cover, plus all free products
    wp gk products install --all --activate

    Update products

    # Update one product
    wp gk products update gk-gravityview
    
    # Update several products
    wp gk products update gk-gravityview,gk-gravitymaps
    
    # Update every installed product that has an update
    wp gk products update --all
    
    # Skip the dependency check for the new version
    wp gk products update gk-gravityview --skip-dependency-check

    Before updating, the command checks the new version’s PHP, WordPress, and plugin requirements. If one isn’t met, it skips that product and lists what’s missing.

    The command also skips a product whose folder is a Git repository. Add --skip-git-check to update it anyway, which overwrites the folder.

    WordPress turns a plugin off while it replaces the plugin’s files. The command turns each product that was active back on and prints a line such as Success: GravityView reactivated. If it can’t, it prints the wp plugin activate command to run.

    Activate and deactivate products

    # Activate a product
    wp gk products activate gk-gravityview
    
    # Activate every installed product that is inactive
    wp gk products activate --all
    
    # Deactivate a product
    wp gk products deactivate gk-gravitycalendar
    
    # Deactivate a product even if other active products need it
    wp gk products deactivate gk-gravityview --skip-dependency-check

    The activate command checks the product’s requirements first, the same way the update command does. With --all, it also tries the products that aren’t installed and reports each of them as failed.

    Without --skip-dependency-check, the deactivate command stops when other active products need the one you’re deactivating, and it lists them.

    Delete products

    # Delete a product (deactivate it first)
    wp gk products delete gk-gravityimport
    
    # Deactivate and delete in one step
    wp gk products delete gk-gravityimport --deactivate-before-deletion
    
    # Delete all installed products
    wp gk products delete --all --deactivate-before-deletion

    License commands #

    List licenses

    # Licenses saved on this site
    wp gk licenses list
    
    # Fetch fresh license data from GravityKit first
    wp gk licenses list --skip-cache
    
    # JSON output
    wp gk licenses list --format=json

    The table has these columns: Name, Email, Type, Key, Expiry, Limit, Site Count, Activations Left, and Scope. Key shows the full license key, and Expiry is a Unix timestamp or lifetime. On Multisite, Scope shows whether a license covers one site or the whole network.

    Check license keys

    The check command looks up keys on the GravityKit server and shows the same columns as licenses list. It doesn’t activate anything.

    # Check one key
    wp gk licenses check YOUR_LICENSE_KEY
    
    # Check several keys, as JSON
    wp gk licenses check KEY1,KEY2 --format=json

    An unknown key prints Error: License YOUR_LICENSE_KEY is invalid. With --format=json, each key’s result prints on its own line.

    Activate and deactivate licenses

    # Activate a key on this site
    wp gk licenses activate YOUR_LICENSE_KEY --url=https://example.com
    
    # Activate several keys
    wp gk licenses activate KEY1,KEY2 --url=https://example.com
    
    # Deactivate a key on this site
    wp gk licenses deactivate YOUR_LICENSE_KEY --url=https://example.com

    Both commands stop unless you pass --url with the site’s address. Deactivating releases this site’s activation, so you can use it on another site.

    On WordPress Multisite, --url picks the site, and the activate command takes a --scope option:

    # Activate for one site only
    wp gk licenses activate YOUR_LICENSE_KEY --url=https://site1.example.com --scope=site
    
    # Activate for the whole network
    wp gk licenses activate YOUR_LICENSE_KEY --url=https://example.com --scope=network

    Without --scope, a Multisite activation covers the whole network, and the command shows a warning that says so. See Multisite and GravityKit licenses for how the two scopes differ.


    Restoring licenses after a site move #

    On a site connected to your GravityKit account, click Reconnect on the Manage Your Kit page if it appears after the move. It appears when the connection can no longer be used, for example after the move changed the site’s secret keys. Managing connected sites describes the steps. For keys entered by hand, what to do depends on whether the new site can still read the licenses saved in its database.

    The new site can read the saved licenses

    The new site can read them when it uses the same WordPress secret keys (salts) as the old site, or the same GRAVITYKIT_SECRET_KEY. If you replace wp-config.php during the move and the old file defines GRAVITYKIT_SECRET_KEY, copy that line into the new file.

    At the same address, there’s nothing else to do. At a new address, click Refresh on the Manage Your Kit page, then click Activate on each license that reads Not Activated for This Site or Not Activated. The wp gk licenses activate command can’t do this step, because the keys are already saved on the site.

    The new site can’t read the saved licenses

    The new site can’t read them when the move changed the secret keys. wp gk licenses list then reports Error: No licenses found., and The license key keeps disappearing explains why. Copy your keys from the Licenses page of your GravityKit account and activate them again:

    wp gk licenses activate KEY1,KEY2 --url=https://example.com

    Activating a key again at the same address doesn’t use another activation. Keys you hard-coded in wp-config.php come back by themselves.

    Free the old site’s activation

    If the old site stays online at a different address, it still holds an activation for each license. Free it on the Licenses page of your GravityKit account by clicking the × next to its address, or run wp gk licenses deactivate on the old site.


    Automation examples #

    Update all products every night

    Add this line to the server’s crontab. Use the full path to wp, which which wp prints.

    # Update all GravityKit products every night at 3 a.m.
    0 3 * * * cd /path/to/wordpress && /usr/local/bin/wp gk products update --all

    Deployment script

    #!/bin/bash
    
    # Activate the license on this site
    wp gk licenses activate YOUR_LICENSE_KEY --url=https://example.com
    
    # Install and activate the products this site uses
    wp gk products install gk-gravityview,gk-gravityexport --activate

    Check for updates in a script

    # List installed products that have an update.
    # tail -n1 skips the "Found N products:" line.
    wp gk products list --only-installed --format=json | tail -n1 | jq '.[] | select(.update_available != "") | {name, version, update_available}'

    Output formats #

    The list, search, and check commands accept --format=table, the default, or --format=json. The list and search commands print a summary line such as Found 31 products: before the results. When you pipe JSON to a tool like jq, add tail -n1 to skip that line.


    Troubleshooting #

    WP-CLI says gk isn’t a registered command

    Activate GravityView or another GravityKit plugin that includes GravityKit Foundation. Gravity Forms Zero Spam doesn’t include it.

    No licenses found

    No license is saved on this site. Activate one on the Manage Your Kit page or with wp gk licenses activate. If the site had licenses before, see The license key keeps disappearing.

    This license is already activated

    The key is already saved on this site. If its status on the Manage Your Kit page is Not Activated for This Site, for example after a move to a new address, click Activate on its row there.

    Activation limit reached

    The license is active on as many sites as it allows. Deactivate a site you no longer use from your GravityKit account, or contact support. Development sites don’t count toward the limit, as described in Development websites and GravityKit licenses.

    A product shows as not licensed

    Your licenses may not cover it, or the license may have expired. Run wp gk licenses list --skip-cache to fetch fresh license data.

    The dependency check blocks a product

    When you update or activate a product, the command checks that the server has what the product needs, such as a newer PHP or WordPress version or another plugin, and lists what’s missing. Resolve those first. We don’t recommend --skip-dependency-check on a live site.

    A command leaves the product unchanged

    Check the text domain’s spelling. Product commands skip an unknown text domain without an error message.

    Still stuck? How can we help?

    How can we help?

    "*" indicates required fields

    This field is for validation purposes and should be left unchanged.
    Replies will go to this email.
    How can we help?*
    My pre-sale question is related to...*
    My WordPress skills are....*
    My Gravity Forms skills are...*
    You will be shown articles from our documentation.
    Vous pouvez nous écrire dans votre langue maternelle si c’est plus facile pour vous—nous nous occuperons de la traduction!
    Puedes escribirnos en tu idioma nativo si te resulta más fácil; ¡nosotros nos encargamos de la traducción!
    Sie können uns in Ihrer Muttersprache schreiben, wenn das für Sie einfacher ist – wir kümmern uns um die Übersetzung!
    U kunt ons in uw moedertaal schrijven als dat gemakkelijker voor u is — wij zorgen voor de vertaling!
    Du kan skrive til oss på ditt morsmål hvis det er enklere for deg — vi tar oss av oversettelsen!
    Du kan skriva till oss på ditt modersmål om det är lättare för dig — vi tar hand om översättningen!
    Você pode nos escrever em seu idioma nativo se for mais fácil para você — nós cuidaremos da tradução!
    Puoi scriverci nella tua lingua madre se ti è più facile — penseremo noi alla traduzione!
    Please provide as much detail as you're able; this helps us provide you with faster support.
    Drop files here or
    Accepted file types: jpg, jpeg, gif, png, tiff, pdf, bmp, zip, json, csv, xls, xlsx, Max. file size: 256 MB.
      Get better at Gravity Forms every Friday

      Was this page helpful?

      Table Of Contents
      • Prerequisites
      • Product text domains
      • Product commands
      • License commands
      • Restoring licenses after a site move
      • Automation examples
      • Output formats
      • Troubleshooting
      GravityKit
      • How to Build It
      • GravityKit vs competitors
      • Pricing
      • Products
      • Our Team
      • Our Values
      • Work With Us
      • Partner Directory
      • Coupons
      Support
      • Support
      • Contact
      • Documentation
      • Scope of Support
      • Brand Guidelines
      • Brand Kit
      • Privacy Policy
      • Terms of Service (“Terms”)
      I am a...
      • Nonprofit
      • Web agency
      • Small business owner
      • Web developer
      • Educational institution
      • WordPress freelancer
      • Startup founder
      • One-person agency
      Get notified of updates.

      We’re constantly improving GravityKit. Fill out your email below and we’ll notify you anytime major updates drop.

      See past editions
      • Facebook
      • Twitter
      • Mastodon
      GravityKit is a Gravity Forms Certified Developer.

      Copyright © 2026, Katz Web Services, Inc.

      GravityKit and GravityView are registered trademarks of Katz Web Services, Inc.