triggerWPCLICommandOnAppEnvironment
Execute a WP-CLI command on an environment.
triggerWPCLICommandOnAppEnvironment(
input: AppEnvironmentTriggerWPCLICommandInput
): AppEnvironmentTriggerWPCLICommandPayload!
Example
- Query
- Variables
- Response
mutation ($input: AppEnvironmentTriggerWPCLICommandInput) {
triggerWPCLICommandOnAppEnvironment(input: $input) {
command {
command
createdAt
endedAt
environmentId
guid
id
startedAt
status
userId
}
inputToken
sshAuthentication {
host
passphrase
port
privateKey
username
}
}
}
{
"input": {
"command": "command",
"environmentId": 42,
"id": 42
}
}
{
"data": {
"triggerWPCLICommandOnAppEnvironment": {
"command": {
"command": "command",
"createdAt": "createdAt",
"endedAt": "endedAt",
"environmentId": 42,
"guid": "guid",
"id": 42,
"startedAt": "startedAt",
"status": "status",
"userId": 42
},
"inputToken": "inputToken",
"sshAuthentication": {
"host": "host",
"passphrase": "passphrase",
"port": "port",
"privateKey": "privateKey",
"username": "username"
}
}
}
}
Arguments
triggerWPCLICommandOnAppEnvironment.input ● AppEnvironmentTriggerWPCLICommandInput input common
The environment and command to run.
Type
AppEnvironmentTriggerWPCLICommandPayload object common
Response from the Run WP-CLI Command mutation