lvl app component cron create
Create a new cron on an app component
lvl app component cron create <app> <component> -n <name> -s <scedule> -c <command> [flags]
Examples
Run a script at 01:17 every day:
lvl app component cron create my-app php -n prune_database -s "17 01 * * *" -c ./prune_database.sh
Options
  -c, --command string    The shell command that will be executed when the cron fires.
  -h, --help              help for create
  -n, --name string       The name of the new cron
  -s, --schedule string   The schedule that controls when the cron should fire. Takes the form of a standard POSIX crontab pattern.
      --wait              Wait for the operation to finish on the API.
Options inherited from parent commands
      --apikey string   API key
      --config string   config file (default is $HOME/.lvl.yaml)
  -o, --output string   Specifies output mode for commands. Accepted values are 'text', 'json', 'yaml' or 'id'. (default "text")
      --trace           Do detailed network request logging. This is intended for debugging and should not be parsed.
SEE ALSO
- lvl app component cron - Commands for managing crons