Skip to main content
Tasks are the core annotation units in CVAT. The CLI provides comprehensive commands to create, manage, and work with tasks.

Available Commands

  • task create - Create a new task
  • task ls - List all tasks
  • task delete - Delete tasks
  • task frames - Download specific frames
  • task export-dataset - Export task as a dataset
  • task import-dataset - Import annotations from a dataset
  • task backup - Create a task backup
  • task create-from-backup - Restore task from backup
  • task auto-annotate - Auto-annotate using a local function

task create

Create a new CVAT task with images or videos.

Syntax

Arguments

Key Options

Examples

Create Task with Local Images

Create Task Using Wildcards

Create Task in Existing Project

When creating a task within a project, you don’t need to specify labels - they’re inherited from the project.

Create Task from Video

Create Task from Remote URLs

Create Task from Shared Storage

Create Task with Pre-annotations

task ls

List all accessible tasks.

Syntax

Examples

task delete

Delete one or more tasks.

Syntax

Examples

Deleting a task removes all associated data, annotations, and jobs. This cannot be undone.

task frames

Download specific frames from a task.

Syntax

Arguments

Options

Examples

Frames are saved as: task_{task_id}_frame_{frame_id}.jpg

task export-dataset

Export a task as a dataset in various formats.

Syntax

Arguments

Options

Supported Formats

  • CVAT for images 1.1
  • CVAT for video 1.1
  • YOLO 1.1
  • COCO 1.0
  • Pascal VOC 1.1
  • MOTS PNG 1.0
  • Segmentation mask 1.1
  • LabelMe 3.0
  • And many more…

Examples

Export to Current Directory

Export in YOLO Format

Export with Images

Export to Specific Directory

task import-dataset

Import annotations into a task from a dataset file.

Syntax

Arguments

Options

Examples

task backup

Create a complete backup of a task including data and annotations.

Syntax

Arguments

Options

Examples

The backup file contains:
  • Task metadata and configuration
  • All image/video data
  • All annotations
  • Task and job settings

task create-from-backup

Restore a task from a backup file.

Syntax

Arguments

Options

Examples

The command outputs the ID of the newly created task.

task auto-annotate

Automatically annotate a task using a local machine learning function.

Syntax

Arguments

Options

*Either --function-module or --function-file is required.

Examples

Using a Module

Using a Python File

With Function Parameters

The function must follow the CVAT auto-annotation function specification. See the auto-annotation documentation for details on creating compatible functions.

Common Workflows

Create and Export Task

Backup and Restore

Import, Annotate, Export

Tips

  1. Resource Types:
    • Use local for files on your machine
    • Use share for shared network storage
    • Use remote for URLs
  2. Large Datasets: For large video or image sets, use --chunk_size and --segment_size to control memory usage
  3. Video Processing: Use --frame_step to sample frames from videos (e.g., --frame_step 10 uses every 10th frame)
  4. Quality Settings: Adjust --image_quality (0-100) to balance file size and image quality
  5. Backup Regularly: Create backups of important tasks before major changes

Next Steps