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:
Environment Variables
Set credentials using environment variables to avoid typing them repeatedly.Personal Access Token (Recommended)
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:- Checks for
CVAT_ACCESS_TOKENenvironment variable - Falls back to the current system user and prompts for password
Server Configuration
Server Host
Specify the CVAT server URL:http://localhost
Server Port
Specify a custom port:- 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:- 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:Debug Mode
Enable detailed logging for troubleshooting:- 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:All Common Options
| Option | Description | Default |
|---|---|---|
--version | Show CLI version | - |
--help | Show help message | - |
--auth USER[:PASS] | Authentication credentials | Current user with prompt |
--server-host HOST | CVAT server URL | http://localhost |
--server-port PORT | Server port | 80 (HTTP) or 443 (HTTPS) |
--organization SLUG | Organization context | Personal workspace |
--org SLUG | Short form of --organization | Personal workspace |
--insecure | Disable SSL verification | false |
--debug | Enable debug logging | false |
Environment Variables
| Variable | Purpose | Example |
|---|---|---|
CVAT_ACCESS_TOKEN | Personal Access Token for auth | export CVAT_ACCESS_TOKEN="token123" |
PASS | Password for username auth | export PASS="mypassword" |