Skip to main content
The CVAT CLI requires configuration to connect to your CVAT server and authenticate requests. This page covers all configuration options.

Common Options

These options are available for all CLI commands and should be specified before the resource name.

Basic Syntax

Authentication

The CLI supports multiple authentication methods.

Username and Password

Provide credentials directly via the --auth option:
For security, you can omit the password and enter it when prompted:

Environment Variables

Set credentials using environment variables to avoid typing them repeatedly. Generate a Personal Access Token (PAT) from your CVAT account settings and set:
Personal Access Tokens are more secure than passwords and can be easily revoked.

Password Environment Variable

Set the password in an environment variable:

Default Authentication

If no authentication is provided, the CLI:
  1. Checks for CVAT_ACCESS_TOKEN environment variable
  2. Falls back to the current system user and prompts for password

Server Configuration

Server Host

Specify the CVAT server URL:
For remote servers:
Default: http://localhost

Server Port

Specify a custom port:
Defaults:
  • Port 80 for HTTP connections
  • Port 443 for HTTPS connections

Complete Server Example

Organization Context

If your CVAT instance uses organizations, specify the organization slug:
Or use the short form:
To explicitly use your personal workspace:
Default behavior:
  • When listing: shows all accessible objects across all organizations
  • When creating: creates in your personal workspace

SSL Configuration

Disable SSL Verification

For self-signed certificates or testing environments:
Only use --insecure with trusted servers. This option disables SSL certificate validation.

Debug Mode

Enable detailed logging for troubleshooting:
Debug mode shows:
  • HTTP request/response details
  • Detailed error messages
  • Timing information

Configuration Examples

Local Development

Remote Production Server

Custom Port with Organization

Debug Connection Issues

Configuration File

The CVAT CLI does not currently support a configuration file. All options must be provided via command-line arguments or environment variables.

Using Shell Aliases

Create shell aliases to simplify repeated commands:
Then use:

All Common Options

Environment Variables

Next Steps