---
title: "WP-CLI Commands"
method: POST
path: "/sites/{id}/wordpress/wpcli"
tags: ["sites"]
---

# WP-CLI Commands

`POST /sites/{id}/wordpress/wpcli`

## Request

- Base URL: `https://my.pressable.com/v1`
- URL: `https://my.pressable.com/v1/sites/{id}/wordpress/wpcli`
- Auth: none declared
- TypeScript: <https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/docs/sites/:id/wordpress/wpcli/post.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint allows you to run WP-CLI commands via the API. WP-CLI is the command-line interface for WordPress.

## Path parameters

- `id` integer, required

## Request body

- object
  - `commands` string[]

## Response `200`

Successful Response

- object
  - `message` string

---

[API](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1.md) - [All operations](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/pressable/apis/pressable-api-documentation-v1/revisions/267a95219f47?raw)
