Run bin/magento
magentoRun bin/magento as the site's owner in its root, like args ["cache:flush"] or ["indexer:reindex", "catalogsearch_fulltext"]. Status commands run straight away; uninstalls, rollbacks, admin user changes and URL/head-script config need approval. Set background true for slow commands (setup:upgrade, setup:di:compile, setup:static-content:deploy, reindex) and follow with job_output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| why | No | One plain sentence for the user, shown on the approval page if this call needs their approval: what it does and why it is needed. | |
| args | Yes | ||
| site | No | Site root folder, like /var/www/shop, or one of the site's domains. Optional when the server has one site (see list_sites). | |
| server | No | Server name or id. Optional when the account has one server. | |
| background | No | ||
| approval_id | No | Only when repeating a call the user approved. |