acsf:crons:create
Create a new cron job.
For more help, see https://cloudapi-docs.acquia.com/ or https://dev.acquia.com/api-documentation/acquia-cloud-site-factory-api for acsf commands.
Usage
acli acsf:crons:create <name> <cron_command> <interval> <sites_affected> <enabled> <thread_percentage> <stacks>...
Arguments
name
Required
The cron job name.
cron_command
Required
The command that should be executed.
interval
Required
A unix cron expression.
sites_affected
Required
Possible values: dev-sites - sites without custom domains, prod-sites - sites with custom domains, all
enabled
Required
If the cron should be enabled.
thread_percentage
Required
The percentage of cron threads that should be used for this cron. Value has to be an integer between 0 and 100.
stacks
Required
An array of stack ids for which the cron should be enabled.
Defaults to
[]
Options
--help | -h
Optional
Display help for the given command. When no command is given display help for the `list` command
Defaults to
false
--quiet | -q
Optional
Do not output any message
Defaults to
false
--verbose | -v|-vv|-vvv
Optional
Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
Defaults to
false
--version | -V
Optional
Display this application version
Defaults to
false
--ansi
Optional
Force (or disable --no-ansi) ANSI output
--no-ansi
Optional
Negate the "--ansi" option
Defaults to
false
--no-interaction | -n
Optional
Do not ask any interactive question
Defaults to
false