WP Manifestindependent plugin directory
manifest / integrations / steez-cw-api-connector

Steez CW API Connector

A WordPress plugin that connects to the Cloudways API and enables you to reset file permissions (for example).

by Steez Webdevelopment · github.com/steezwebdevelopment/steez-cw-api-connector · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/steezwebdevelopment/steez-cw-api-connector/archive/refs/heads/main.zip

A WordPress plugin that connects to the Cloudways API and enables you to reset file permissions (for example). Via WP CLI. So you don't have to do it via the panel everytime.

Add your credentials in wp-config

define('WP_CLOUDWAYS_EMAIL', 'xxx@xxx.xxx');
define('WP_CLOUDWAYS_API_KEY', 'xxx');
define('WP_CLOUDWAYS_SERVER_ID', 'xxx');
define('WP_CLOUDWAYS_APP_ID', 'xxx');

Use the WP CLI to reset the file permissions

wp steez:reset_file_permissions

Using Deployer.org?

I've added a task to let Deployer reset the file permissions before deploy:writable.

task('cloudways:reset-file-permissions', function () {
    run("cd {{release_path}}");
    run("/usr/local/bin/wp --path='{{release_path}}' plugin activate steez-cw-api-connector");
    run("/usr/local/bin/wp --path='{{release_path}}' steez:reset_file_permissions");
});

What's next?

You could add more Cloudways API functions. Fork it and PR!