J4.x

Task Scheduler

From Joomla! Documentation

Limit Task to Command-line Interface Only[edit]

To implement a task, which is executed via the command-line interface (CLI) only, add this code to the task XML:

<fieldset name="aside">
	<field name="cli_exclusive" type="hidden" default="1" />
</fieldset>

The fieldset must be a direct child of the form

<form>
	<fieldset name="aside">
		<field name="cli_exclusive" type="hidden" default="1" />
	</fieldset>
...