A companion WordPress plugin for the plugship CLI. It adds REST API endpoints to receive and install plugin ZIP files on your WordPress site.
- WordPress 5.8+
- PHP 7.4+
- An Administrator account with an Application Password
- Download
plugship-receiver.php - Upload it to your site's
wp-content/plugins/directory - Activate PlugShip Receiver from the WordPress admin Plugins page
All endpoints require authentication via Application Passwords and the install_plugins capability.
Health check endpoint. Returns receiver version and environment info.
Response:
{
"status": "ok",
"version": "1.0.0",
"wp": "6.7.1",
"php": "8.2.0"
}Accepts a plugin ZIP file upload and installs it. If the plugin already exists, it is replaced.
Request:
- Content-Type:
multipart/form-data - Field:
plugin— the ZIP file - Optional param:
activate— set tofalseto skip activation
Response:
{
"success": true,
"plugin": "my-plugin/my-plugin.php",
"name": "My Plugin",
"version": "1.0.0",
"activated": true
}- Receives the uploaded ZIP file via the REST API
- Validates the file type (must be a ZIP archive)
- Uses WordPress's built-in
Plugin_Upgraderwithoverwrite_package => trueto install or update the plugin - Optionally activates the plugin after installation
- Returns the installed plugin info
- Only users with the
install_pluginscapability (Administrators) can access these endpoints - Authentication is handled via WordPress Application Passwords
- Uploaded files are validated for correct MIME type before processing
MIT