matczar / wp-cli-freemius-toolkit
Freemius developer toolkit
Installs: 168
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:wp-cli-package
pkg:composer/matczar/wp-cli-freemius-toolkit
Requires
- nelexa/zip: ^3.3
- symfony/yaml: ^5.1
- vlucas/phpdotenv: ^5.0
README
This WP-CLI package allows you to manage the plugin on your Freemius account.
Install
Requirements
- PHP >= 7.3
- WP-CLI >= 2.4.0
Via WP-CLI Package Manager (requires wp-cli >= 2.4.0)
Just run wp package install matczar/wp-cli-freemius-toolkit
Configuration
- Create a
.freemiusfile containing the developer ID along with the API access keys in the folder with the global WP-CLI configuration (usewp cli infocommand to check the path of this folder). All this data can be obtained on your profile page in the Freemius dashboard.
FS__API_DEV_ID=
FS__API_PUBLIC_KEY="pk_example_public_key"
FS__API_SECRET_KEY="sk_example_secret_key"
- In the plugin folder you want to manage, create a
.freemius.ymlfile containing your Freemius plugin ID and a list of files and folders to be sent to the API when creating the new plugin version. The plugin ID can be found on the page with its Settings.
Example of .freemius.yml file:
plugin_id: 123456789 include: - assets - includes - my-plugin.php - readme.txt
Using
This package implements the following commands:
wp freemius-toolkit version
Lists, deploys and delete plugin versions.
wp freemius-toolkit version list
List plugin versions.
wp freemius-toolkit version list [--count=<count>] [--fields=<fields>] [--format=<format>]
wp freemius-toolkit version deploy
List plugin versions.
wp freemius-toolkit version deploy [--local] [--add-freemius-contributor] [--force]
wp freemius-toolkit version download
Download plugin version.
wp freemius-toolkit version download <id>... [--premium] [--file=<file>]
wp freemius-toolkit version delete
Delete an existing version.
wp freemius-toolkit version delete <id>... [--yes]