Skip to content

activity set

This command creates a new schedule for an automation through a CRON string.

./BotCLI activity set [arguments]

What are the arguments?

Argument Required Description
-activityLabel Yes The automation label that will be used in the schedule.
-cron Yes The Quartz CRON string in the format 0 0 0 * *.

Warning

For help on how to construct a CRON expression, see: Cron Expression Generator & Explainer - Quartz.

Examples

Setting the CRON scheduling rule for the automation with label DemoJava to run every day at 00:00:00:

./BotCLI activity set -activityLabel "DemoJava" -cron "0 0 0 ? * *"

Setting the CRON scheduling rule for the automation with label DemoPython to run every 30 minutes:

./BotCLI activity set -activityLabel "DemoPython" -cron "0 0/30 * * * ?"