Allow GravityFormsCLI to be Installed by Packagist#49
Merged
Conversation
SherifMesallam
approved these changes
Mar 17, 2026
Contributor
SherifMesallam
left a comment
There was a problem hiding this comment.
All good here, I just allowed myself to make some minor modifications, left comments to explain.
|
|
||
| if ( ! class_exists( 'GFAddOn' ) ) { | ||
| return; | ||
| } |
Contributor
There was a problem hiding this comment.
a cleaner exit instead of wrapping the whole class into the check.
| "gf entry", | ||
| "gf entry notification", | ||
| "gf license", | ||
| "gf tool" |
Contributor
There was a problem hiding this comment.
Add all the commands that are actually registered in cli.php
| 1. Wordpress 4.2+ | ||
| 2. Gravity Forms > 1.9.17.8 | ||
| 3. WP-CLI v1.0+ | ||
| 3. WP-CLI v2.5+ |
Contributor
There was a problem hiding this comment.
We need this as a minimum now
Contributor
Author
|
@SherifMesallam -- thanks for jumping in here!! All the changes above look great, will get this merged in now. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR works to resolve issue #4938, through the support of PRs #47 & #48. With this work, we are allowing the Gravity Forms CLI package to be accessible and installable as a standalone WP-CLI package via WPackagist.
Next Steps needed: Once merged, we need to submit the package to Packagist so users will be able to install it with
wp package install gravityforms/gravityformscli.Related Issue
Closes: #4938
Testing
Testing Requirements
Testing Instructions
Additional testing -
Once added to Packagist (post-merge), test by running the individual commands:
QA Tracking Spreadsheet
Checklist
npm installand committed package-lock.json (if necessary).