Beta

Manage scheduled automations

Usage: mf automations [command]

Options

OptionsPurpose
-h, --helpdisplay help for command

Subcommands

CommandPurpose
mf automations listList automations (optionally filter by agent)
mf automations getShow a single automation (with recent runs)
mf automations createCreate a new automation
mf automations updateUpdate an existing automation
mf automations runTrigger an automation run now
mf automations resultPrint a run’s reply, or why it failed: the latest run’s, or —run’s (a run still going is followed to its end)
mf automations deleteDelete an automation

mf automations list

List automations (optionally filter by agent)

Usage: mf automations list [options]

Aliases: ls

Options

OptionsPurpose
--agent-id <id>filter to this agent
--jsonemit raw JSON
-h, --helpdisplay help for command

mf automations get

Show a single automation (with recent runs)

Usage: mf automations get [options] <id>

Arguments

ArgumentPurpose
<id>

Options

OptionsPurpose
--jsonemit raw JSON (default)
-h, --helpdisplay help for command

mf automations create

Create a new automation

Usage: mf automations create [options]

Options

OptionsPurpose
--agent-id <id>agent id to run as (defaults to $MF_AGENT_ID)
--title <title>short title Required.
--prompt <prompt>prompt body Required.
--schedule-preset <preset>hourly | daily | weekdays | weekly (timed with —at, and —day for weekly); custom goes with —rrule
--at <time>time of day for a preset, HH:MM (default 09:00)
--day <weekday>weekday for the weekly preset, mon … sun (default mon)
--rrule <rrule>iCalendar RRULE for a custom schedule (the preset is then custom)
--timezone <tz>IANA timezone the schedule keeps (default: this machine’s)
--dtstart <iso>first run start (ISO8601)
--model <model>model override
--jsonemit raw JSON
-h, --helpdisplay help for command

mf automations update

Update an existing automation

Usage: mf automations update [options] <id>

Arguments

ArgumentPurpose
<id>

Options

OptionsPurpose
--title <title>new title
--prompt <prompt>new prompt
--status <status>active | paused
--schedule-preset <preset>hourly | daily | weekdays | weekly (timed with —at, and —day for weekly); custom goes with —rrule
--at <time>new time of day, HH:MM; alone it re-times the current preset
--day <weekday>new weekday for the weekly preset
--rrule <rrule>new RRULE (the preset is then custom)
--timezone <tz>new IANA timezone
--dtstart <iso>new dtstart
--model <model>new model override
--clear-modelclear model override
--jsonemit raw JSON
-h, --helpdisplay help for command

mf automations run

Trigger an automation run now

Usage: mf automations run [options] <id>

Arguments

ArgumentPurpose
<id>

Options

OptionsPurpose
--waitfollow the run’s reply as it streams, then say how the run ended (Ctrl-C stops following; the run goes on)
--show-thinkingwith —wait, print the agent’s thinking, dim on stderr (with —json: a thinking field)
--jsonemit raw JSON
-h, --helpdisplay help for command

mf automations result

Print a run’s reply, or why it failed: the latest run’s, or —run’s (a run still going is followed to its end)

Usage: mf automations result [options] <id>

Arguments

ArgumentPurpose
<id>

Options

OptionsPurpose
--run <runId>this run instead of the latest; one of the 20 latest, which mf automations get lists
--show-thinkingprint the agent’s thinking, dim on stderr (with —json: a thinking field)
--jsonemit raw JSON
-h, --helpdisplay help for command

mf automations delete

Delete an automation

Usage: mf automations delete [options] <id>

Aliases: rm

Arguments

ArgumentPurpose
<id>

Options

OptionsPurpose
-y, --yesconfirm deletion
--jsonoutput the result as JSON
-h, --helpdisplay help for command
Was this page helpful?