Kaspersky Standard | Plus | Premium

How to create a task on the command line

You can create tasks of the following types: ODS, Update, and Rollback.

You can create tasks with default settings or with settings specified in a configuration file.

To create a task with default settings, execute the following command:

kfl-control --create-task <task name> --type <task type>

where:

  • <task name> is the name that you specify for the new task.
  • <task type> is the identifier for the type of the created task.

To create a task with the settings specified in the configuration file, execute the following command:

kfl-control --create-task <task name> --type <task type> --file <configuration file path> [--json]

where:

  • <task name> is the name that you specify for the new task.
  • <task type> is the identifier for the type of the created task.
  • <path to file> is the full path to the configuration file with the settings that will be used for creating the task.
  • --json is specified to import the settings from the configuration file in JSON format. If the --json option is not specified, the application attempts to import from an INI file. If the import fails, an error is displayed.