Skip to main content

triggerWPCLICommandOnAppEnvironment

Execute a WP-CLI command on an environment.

triggerWPCLICommandOnAppEnvironment(
input: AppEnvironmentTriggerWPCLICommandInput
): AppEnvironmentTriggerWPCLICommandPayload!

Example

mutation ($input: AppEnvironmentTriggerWPCLICommandInput) {
triggerWPCLICommandOnAppEnvironment(input: $input) {
command {
command
createdAt
endedAt
environmentId
guid
id
startedAt
status
userId
}
inputToken
sshAuthentication {
host
passphrase
port
privateKey
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