matczar/wp-cli-freemius-toolkit
Composer 安装命令:
composer require matczar/wp-cli-freemius-toolkit
包简介
Freemius developer toolkit
README 文档
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]
统计信息
- 总下载量: 168
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-06-27