Laravel Forge JavaScript SDK
WordPress
WordPress
Install WordPress
Method
forge.wordpress.install(server_id, site_id, payload)
Usage
1const forge = new Forge('API_TOKEN');23await forge.wordpress.install(server_id, site_id, payload);
Payload
1{2 database: 'forge',3 user: 14}
Uninstall WordPress
This method will uninstall WordPress and revert the site back to a default state.
Method
forge.wordpress.uninstall(server_id, site_id)
Usage
1const forge = new Forge('API_TOKEN');23await forge.wordpress.uninstall(server_id, site_id);
Edit this page on GitHub