Private Packages: Licenses Helper
A WP-CLI command to discover licenses for installed premium plugins. Easily import them into your Private Packages repository.
by Tom Broucke · github.com/private-packages-com/licenses-helper
★ 1stars
5release downloads
0forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/private-packages-com/licenses-helper/releases/download/1.1.0/private-packages-licenses-helper.zipAlso on Packagist as private-packages-com/licenses-helper:
composer require private-packages-com/licenses-helperFrom the readme
Private Packages Licenses Helper
Discover license credentials for installed premium plugins and export them for import into Private Packages.
Requirements
- PHP 8.1 or higher
- WordPress with WP-CLI
Note that plugins don't have to be activated to be discovered by this plugin.
Installation & Usage
Option 1 — WP-CLI package
Install as a WP-CLI package (no WordPress plugin activation required):
Then use the CLI command to discover licenses:
Option 2 — WordPress plugin
Install via zip:
1. Download the plugin zip from the latest release.
2. Go to Plugins Add New Upload Plugin and upload the zip.
3. Activate the plugin.
Once activated, you can discover licenses in two ways:
WP Admin: Go to Tools Licenses Helper, check the plugins you want to export (all are selected by default), and click Generate Export. A JSON block will appear at the top of the page.
WP-CLI: Use the same CLI command as above.
CLI Reference
Options
| Option | Description |
| ------------------- | --------------------------------------------------- |
| --format= | Output format: json (default) or table |
| --plugin= | Only return data fo
Read the full README on GitHub →