CorefinityCorefinityDocs
Open the Control PanelControl Panel
Deployments · 2 of 65

corestack_deployments_mode_set

Switch deployment mode.

Scope writeRuns as a taskNo secrets returnedCoreCluster
On this page

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

Prompt
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
manualgit
reconvertboolean

Only with git, while a conversion is pending: convert again.

site_idintegerRequired

At least 1.

Example call

tools/call
{
  "name": "corestack_deployments_mode_set",
  "arguments": {
    "site_id": 4211,
    "mode": "manual"
  }
}

If it is refused

ReasonWhat to do
forbiddenThe 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_runningA deployment, or its rollback, is running on the row; wait for it to finish.
busyAnother change is running on this row; wait for it (corestack_site_operation_get) and call again.
command_runningA command is still running on the row; wait for it to finish.
bedrock_layoutThe 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_unknownSwitching a WordPress site to manual, the Control Panel could not confirm whether it is built with Bedrock; nothing changed. Call again in a minute.
deletedThe site is deleted (in its grace period); restore it with corestack_site_restore_deleted first.
removedThe row has been removed.
managed_elsewhereThis is managed in another place (for example by the agency that manages the site); change it there.
invalid_argumentsThe 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_mismatchThe object does not exist or the token may not see it. Check the id.
scope_requiredThe token lacks a scope this call needs. Open the link in the answer to add it, then call again.
pin_refusedThe 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_limitedToo many calls. Wait for the number of seconds the answer names.
temporarily_unavailableThe Control Panel could not answer just now. Nothing was started; try again shortly.
internal_errorSomething went wrong on our side. Quote the trace id to support.

The same task elsewhere

Was this helpful?
Open in ClaudeOpen in ChatGPT