corestack_ deployments_ mode_ set
Switch deployment mode.
When to use it
Switch a row between manual uploads and Git deployments. Switching to manual first copies the live files out of the current release: do not write the site's files until the task ends (later writes into the release are not carried over). A Laravel site answers an error page while the application rebuilds at the end — the task's steps show when that has finished.
Ask for it
Using the Corefinity MCP server, call corestack_deployments_mode_set with site_id 4211, mode manual. (Switch deployment mode.) Tell me what it returned.Inputs
modestringRequired
manualgitreconvertboolean
Only with git, while a conversion is pending: convert again.
site_idintegerRequired
At least 1.
Example call
{
"name": "corestack_deployments_mode_set",
"arguments": {
"site_id": 4211,
"mode": "manual"
}
}If it is refused
| Reason | What to do |
|---|---|
forbidden | The person's role lacks the Manage Deployment Source permission. The message names it and says an owner of the company can grant it in Roles; details.permission is manageDeploymentSource. Nothing is changed. Also forbidden when switching to git would make a push deploy on its own again (automatic deployment was left on) and the role lacks the Create Deployments permission (createDeployments); nothing is started. |
deployment_running | A deployment, or its rollback, is running on the row; wait for it to finish. |
busy | Another change is running on this row; wait for it (corestack_site_operation_get) and call again. |
command_running | A command is still running on the row; wait for it to finish. |
bedrock_layout | The site is WordPress built with Bedrock, which cannot switch to manual yet (the switch would keep only its web folder and leave the rest of the project behind); nothing changed. Leave it on Git and deploy its code through its repository. A task that ends failed with the same words was refused the same way, before anything was copied. |
layout_unknown | Switching a WordPress site to manual, the Control Panel could not confirm whether it is built with Bedrock; nothing changed. Call again in a minute. |
deleted | The site is deleted (in its grace period); restore it with corestack_site_restore_deleted first. |
removed | The row has been removed. |
managed_elsewhere | This is managed in another place (for example by the agency that manages the site); change it there. |
invalid_arguments | The arguments do not match the tool's input schema, or the Control Panel refused a field. Fix the fields named in the answer and call again. |
tenant_mismatch | The object does not exist or the token may not see it. Check the id. |
scope_required | The token lacks a scope this call needs. Open the link in the answer to add it, then call again. |
pin_refused | The grant is limited to chosen clusters, sites or environments, and this call is outside them. Open the link in the answer to widen it. |
rate_limited | Too many calls. Wait for the number of seconds the answer names. |
temporarily_unavailable | The Control Panel could not answer just now. Nothing was started; try again shortly. |
internal_error | Something went wrong on our side. Quote the trace id to support. |
The same task elsewhere
Was this helpful?