Tasks
Create and manage recurring CloudX analyses with the cloudx CLI.
Tasks
The cloudx tasks commands manage recurring CloudX analyses for your account.
A Task runs a prompt on a five-field cron schedule. CloudX evaluates the schedule in the selected IANA timezone.
Available commands:
cloudx tasks listlists Tasks in newest-first order.cloudx tasks getshows one Task.cloudx tasks createcreates a Task.cloudx tasks updatechanges a Task.cloudx tasks enableandcloudx tasks disablecontrol scheduled runs.cloudx tasks runqueues an enabled Task now.cloudx tasks deletedeletes a Task.
Task commands require the Tasks feature. Read commands require configuration:read. Write commands require editor access and configuration:write.
Create a task
--prompt and --schedule are required. CloudX creates an enabled, private Task in UTC unless you set different values.
cloudx tasks create \
--name "Weekly revenue review" \
--prompt "Review weekly revenue and flag material changes" \
--schedule "0 9 * * 1" \
--timezone Europe/Madrid \
--access workspaceOmit --name to let CloudX derive a name from the prompt.
Create flags
| Flag | Required | Default | Description |
|---|---|---|---|
--prompt | Yes | Prompt to run. | |
--schedule | Yes | Five-field cron expression. | |
--name | No | Derived | Task name. Maximum 120 characters. |
--timezone | No | UTC | IANA timezone for the schedule. |
--enabled | No | true | Create the Task enabled. |
--access | No | private | Who can access the Task and receive notifications: private or workspace. |
--json | No | false | Print structured JSON. |
Private Tasks are visible only to their creator. Workspace Tasks are visible to everyone in the workspace.
List and inspect Tasks
cloudx tasks list
cloudx tasks list --json
cloudx tasks get task_123
cloudx tasks get task_123 --jsonThe list view shows each Task ID, name, schedule, timezone, access, status, and next run time. The detail view also shows the prompt, creator, and creation source.
Update a Task
Set one or more fields to update. Omitted fields keep their current values.
cloudx tasks update task_123 --schedule "0 10 * * 1"
cloudx tasks update task_123 --timezone America/New_York
cloudx tasks update task_123 --access workspaceupdate accepts --name, --prompt, --schedule, --timezone, --access, and --json. Only the Task creator can change a workspace Task to private.
Enable, disable, and run a Task
Disable a Task to pause its scheduled runs. Enabling it resumes the schedule.
cloudx tasks disable task_123
cloudx tasks enable task_123
cloudx tasks run task_123cloudx tasks run queues one immediate run. The Task must be enabled and must not have an active run.
Delete a Task
cloudx tasks delete task_123CloudX rejects deletion while the Task has an active run.
Structured output
All Task commands accept --json. Use it for scripts and agent workflows.
cloudx tasks create \
--prompt "Summarize yesterday's performance" \
--schedule "0 8 * * *" \
--jsonTask responses include the cron expression, timezone, human-readable schedule, state, access mode, creator when applicable, next run time, timestamps, and creation source.