Skip to main content
Projects in CVAT are containers for organizing related tasks. The CLI provides commands to manage projects from the command line.

Available Commands

  • project create - Create a new project
  • project ls - List all projects
  • project delete - Delete one or more projects

project create

Create a new CVAT project with optional labels and dataset import.

Syntax

Arguments

Options

Labels Format

Labels can be specified as:
  • JSON string: '[{"name": "car"}, {"name": "person"}]'
  • File path: @labels.json (file containing JSON array)

Simple Labels Example

Labels with Attributes

Examples

Create a Simple Project

Output:
The command returns the ID of the created project.

Create Project with Labels

Create Project from Labels File

Create a labels.json file:
Then create the project:

Create Project with Bug Tracker

Create Project and Import Dataset

project ls

List all accessible projects.

Syntax

Options

Examples

List All Projects

Output:

List Projects in JSON Format

List Projects in Organization

project delete

Delete one or more projects by ID.

Syntax

Arguments

Examples

Delete a Single Project

Delete Multiple Projects

Deleting a project will also delete all tasks within that project. This action cannot be undone.

Common Workflows

Create Project and Verify

Create a project and immediately list it:

Create Project with Complex Labels

For complex label configurations, use a JSON file: labels.json:

Batch Create Projects

Create multiple projects from a script:

Understanding Project IDs

When you create a project, the CLI outputs only the project ID:
Output:
You can use this ID to:
  • Create tasks within the project: cvat-cli task create "Task 1" local img.jpg --project_id 42
  • Delete the project: cvat-cli project delete 42
  • Reference it in scripts and automation

Tips

  1. Save Project IDs: Capture project IDs in variables for later use:
  2. Use Label Files: For projects with many labels or complex attributes, maintain labels in JSON files:
  3. Organization Context: Always specify --org if working within an organization:
  4. Verify Creation: List projects after creation to confirm:

Next Steps