Applies to Joomla 5.x and 6.x · Joomla CLI · Claude Code or another agent with shell access · developers and agencies Updated 16 Oct 2026

An AI agent with shell access to a Joomla server can do a week's worth of routine checks in a few minutes: versions, pending updates, failing tasks, disk use, error logs, backups. It can also break a site in one command. The difference is the setup: what the agent may run, on which copy, and who approves changes.

This is how we use agents for Joomla maintenance across client sites. Read-only by default, write actions approved one by one, and everything through Joomla's own CLI rather than clever SQL.

The Joomla CLI is the agent's API

Since Joomla 4, cli/joomla.php covers most maintenance tasks with clear, parseable output. That makes it the right interface for an agent: well-defined commands instead of free-form database edits.

QuestionCommandChanges anything?
Is a Joomla update available?core:update:checkno
Which extensions have updates?update:extensions:checkno
What's installed, which version, enabled?extension:listno
Do scheduled tasks run?scheduler:listno
Is the schema in sync after updates?maintenance:databaseyes, can fix: approve
Configuration value?config:get <option>no
Clear cachescache:cleanyes, harmless
Update Joomla / install an extensioncore:update, extension:installyes: staging first, approve

Step 1: an allow-list, not a prompt

"Don't change anything" in a prompt is a wish. A permission list is a control. With Claude Code, put the rules in the project's settings on the machine that runs the agent, so read-only commands run freely, and anything else stops and asks:

// .claude/settings.json – in the maintenance workspace
{
  "permissions": {
    "allow": [
      "Bash(ssh client-a 'php /var/www/site/cli/joomla.php core:update:check')",
      "Bash(ssh client-a 'php /var/www/site/cli/joomla.php update:extensions:check')",
      "Bash(ssh client-a 'php /var/www/site/cli/joomla.php extension:list*')",
      "Bash(ssh client-a 'php /var/www/site/cli/joomla.php scheduler:list')",
      "Bash(ssh client-a 'tail -n 200 /var/log/php8.3-fpm/site-error.log')",
      "Bash(ssh client-a 'df -h /var/www')"
    ],
    "deny": [
      "Bash(ssh client-a 'rm *')",
      "Bash(ssh client-a 'mysql *')"
    ]
  }
}

Other agents have similar mechanisms. The principle is the same: enumerate what may run unattended. On the server side, use an SSH user that can read the site and run PHP, but can't write to the web root. Then even an approved mistake can't change files.

Step 2: the weekly check, as a brief

The agent gets the same brief every week. Fixed structure in, fixed structure out, so reports can be compared:

Weekly maintenance check for client-a (Joomla 6, production). Read-only.
1. Joomla core: run core:update:check. Report current and available version.
2. Extensions: run update:extensions:check and extension:list. Report extensions with updates,
   and flag any update marked as a security release.
3. Scheduler: run scheduler:list. Report tasks that are disabled, overdue, or whose last exit was not OK.
4. Errors: read the last 200 lines of the PHP error log. Group by message, report counts and first/last time.
5. Disk: df -h. Warn above 80 %.
Output a table per section, then max 5 recommended actions ordered by risk.
Do not run any command that changes the site. If something needs a change, recommend it; don't do it.

What comes back is a one-page report per site. An agency with twenty sites reads twenty pages on Monday instead of logging into twenty back ends.

Step 3: changes, on staging, approved

When the report says "Joomla 6.2.1 available, two extension security updates", the update itself is a separate session:

  1. The agent refreshes staging from live (your normal script), then runs core:update and the extension updates on staging. Each write command asks for approval.
  2. It runs maintenance:database, clears the cache, and checks a list of URLs for HTTP 200 and PHP errors in the log.
  3. A person looks at staging and decides. The live update is the same commands, approved again.

The agent saves the typing and the checking. The decisions stay with people.

What not to automate

  • Direct database writes. An agent that "fixes" data with SQL bypasses Joomla's ACL, workflows, content history and action log. If it can't be done through the CLI, the API or the back end, a person does it.
  • Unattended updates on live of sites with overrides, shops or CRMs. Joomla 6 has automated core updates for simple sites. Anything more complex gets staging first.
  • Security incidents. An agent can collect logs and compare files with a clean package. Deciding what's compromised and cleaning it is human work.
  • Anything without a backup you have restored at least once.

Content checks, through the API

Content quality checks (articles without meta descriptions, images without alt text, broken internal links) are better done through the Web Services API with a read-only token than over SSH. They're questions about content, not the server. The agent then uses an MCP server or a script against the API. See a Joomla MCP server for the tools.

What it saved us

The time saving is real but not the main gain. The main gain is consistency: every site gets the same checks every week, including the boring ones (failing scheduled tasks, filling disks, a PHP warning that started after an update), which used to wait until a client noticed.