forked from forumone/cloudflare-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from sterner-stuff/composer-json
Remove plugin scaffolding. CLI command only.
- Loading branch information
Showing
4 changed files
with
38 additions
and
81 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,25 +23,18 @@ Clears all cached files to force Cloudflare to fetch a fresh version of those fi | |
|
||
## Installing | ||
|
||
This package depends on the `\CF\WordPress\Hooks` class from the [Cloudflare for WordPress](https://wordpress.org/plugins/cloudflare/) plugin. Make sure this one is installed and active first. | ||
This package depends on the `\CF\WordPress\Hooks` class from the [Cloudflare for WordPress](https://wordpress.org/plugins/cloudflare/) plugin. Make sure it is installed and active. | ||
|
||
1. Download or clone the contents of this repo. | ||
2. Place the “cloudflare-cli” folder to your “/wp-content/plugins/” directory. | ||
3. Activate Cloudflare CLI Add-On from your Plugins page. | ||
|
||
##### Using Composer | ||
|
||
1. Add this GitHub repo to the _"repositories"_ key in your project's `composer.json` file. | ||
### Via WP-CLI | ||
|
||
``` | ||
composer config repositories.forumone '{ "type": "package", "package": { "name": "forumone/cloudflare-cli", "version": "dev-master", "type": "wordpress-plugin", "dist": { "type": "zip", "url": "https://github.com/forumone/cloudflare-cli/archive/master.zip" }, "require": { "composer/installers": "^1.0" } } }' | ||
```bash | ||
wp package install https://github.com/sterner-stuff/cloudflare-cli | ||
``` | ||
|
||
2. Require the plugin package to your project. | ||
~~~ | ||
composer require forumone/cloudflare-cli:dev-master | ||
~~~ | ||
|
||
3. Activate Cloudflare CLI Add-On from your Plugins page. | ||
### Using Composer | ||
|
||
```bash | ||
composer config repositories.cloudflare-cli '{ "type": "vcs", "url": "[email protected]:sterner-stuff/cloudflare-cli.git" }' | ||
composer require sterner-stuff/cloudflare-cli | ||
``` | ||
|
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
"name": "sterner-stuff/cloudflare-cli", | ||
"type": "wp-cli-package", | ||
"description": "Provides a command line interface to the WordPress Cloudflare plugin, for performing cache purge actions.", | ||
"license": "GPLv2 or later", | ||
"require": { | ||
"php": ">=7.2" | ||
}, | ||
"authors": [ | ||
{ | ||
"name": "Elvis Morales", | ||
"homepage": "https://elvismdev.io" | ||
}, | ||
{ | ||
"name": "Ethan Clevenger", | ||
"email": "[email protected]", | ||
"homepage": "https://sternerstuff.dev" | ||
} | ||
], | ||
"support": { | ||
"issues": "https://github.com/sterner-stuff/cloudflare-cli/issues", | ||
"source": "https://github.com/sterner-stuff/cloudflare-cli" | ||
}, | ||
"autoload": { | ||
"files": [ "cli.php" ] | ||
} | ||
} |