mainwp-cli

Automate MainWP Dashboard administration across child sites via REST API v2.

5|Updated Jun 4, 2026
One-click install
npx skills add https://github.com/oscarhugopaz/mainwp-cli --skill mainwp-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mainwp-cli
Source: https://github.com/oscarhugopaz/mainwp-cli/tree/main/skills/mainwp-cli
Command: npx skills add https://github.com/oscarhugopaz/mainwp-cli --skill mainwp-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill enables you to manage a MainWP Dashboard from the terminal, letting you orchestrate cross-site tasks without switching between UI and shell, saving time and reducing context switching.

Core Features & Use Cases

  • Interact with child sites, clients, tags, updates, costs, users, settings, monitoring, posts, and pages through the MainWP REST API v2.
  • Run batch operations and automate common administrative workflows across multiple WordPress installations.
  • Retrieve structured data in JSON or tabular formats for scripting, reporting, and CI pipelines.

Quick Start

List all sites on the connected MainWP dashboard.

Frequently Asked Questions about mainwp-cli

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage multiple WordPress sites from the command line?

You can manage multiple WordPress sites from the command line by using a CLI tool to interact with a MainWP Dashboard via the REST API v2. This allows cross-site administration and batch operations directly from the terminal.

Can I automate MainWP dashboard updates using a terminal?

Yes, you can automate MainWP dashboard updates using the terminal. The CLI supports batch operations and common administrative workflows across child sites, clients, and tags without switching to the web UI.

What do I need to control MainWP from a CLI?

To control MainWP from a CLI, you need the mainwp-cli binary and profile or environment-based credentials. These provide the necessary authentication to interact with the MainWP REST API v2.

Does MainWP command line interface support JSON output for scripting?

Yes, the MainWP command line interface supports JSON output for scripting and automation. It retrieves structured data across child sites, posts, and settings, making it suitable for CI pipelines and reporting.

What is the best way to run batch operations across child sites in MainWP?

The best way to run batch operations across child sites in MainWP is by executing terminal commands through the CLI. It interfaces with the REST API v2 to orchestrate cross-dashboard tasks like updates and monitoring efficiently.