Skip to main content
Browse the commands below, or follow the CLI guide to install, sign in, and complete a workflow.

Help

Use toloka help [command] to print help for the CLI or a top-level command. For any command, append -h or --help, for example toloka dataset fields add --help.

Commands

Global options

boolean
Output the current version.
string
Project root; otherwise search the working directory and parents; init and report use only the working directory.
string
API key override; login stores the key it verifies.Environment fallback: TOLOKA_SCOPED_TOKEN, TOLOKA_API_KEY.
string
Platform base URL override; login saves the selected URL.Environment fallback: TOLOKA_BASE_URL.
string
Target project; overrides toloka.json.Environment fallback: TOLOKA_PROJECT_ID.

Additional help

Environment variables

Client settings read by the CLI are listed below. A variable named with secret set --from-env supplies that secret’s value. Installer variables are described in Install.
string
Project-scoped token. Takes precedence over TOLOKA_API_KEY; --api-key takes precedence over both.
string
API key used when no --api-key or TOLOKA_SCOPED_TOKEN is set; takes precedence over saved credentials.
string
Platform URL. --base-url takes precedence; otherwise this overrides the saved URL. The public default is https://platform.toloka.ai.
string
Project ID. --project-id takes precedence; otherwise this overrides toloka.json and the saved project selection.
string
Credentials JSON file. Defaults to $XDG_CONFIG_HOME/toloka/credentials.json, or ~/.config/toloka/credentials.json.
string
Browser-session directory. Defaults to ~/.toloka/cli/credentials, or browser-sessions beside TOLOKA_CREDENTIALS_FILE when that file is set.
string
Base directory for the default credentials file. Defaults to ~/.config.
string
Home directory used for credential and browser-session paths. Defaults to the operating system’s home directory.
string
Executable used to open the sign-in URL. The URL is passed as its argument. Defaults to the operating system’s browser launcher.
string
Set to 0 to disable usage and exception reports, or 1 to enable them. An explicit value takes precedence over DO_NOT_TRACK and CI.
string
Set to 1 to disable usage and exception reports unless TOLOKA_TELEMETRY explicitly enables them.
string
Set to 1 to disable usage reports and automatic updates by default. TOLOKA_TELEMETRY and TOLOKA_AUTO_UPDATE can explicitly enable them.
string
Set to 1 to skip automatic updates, even when TOLOKA_AUTO_UPDATE enables them.
string
Set to 0 to disable automatic updates, or 1 to enable them. Otherwise the auto-update machine setting applies outside CI. Release eligibility and command exclusions still apply.
string
Any set value disables terminal colors unless FORCE_COLOR overrides it.
string
The value dumb disables terminal colors unless FORCE_COLOR overrides it.
string
Set to 0 to disable colors, or any other value to enable them even when output is piped. Overrides NO_COLOR and TERM.
string
Bun installation directory used by version reporting to identify the install channel. Defaults to ~/.bun.
string
Executable search path, also forwarded to local check processes.
string
Deprecated alias of TOLOKA_API_KEY. The current name takes precedence; using the alias prints a deprecation warning.
string
Deprecated alias of TOLOKA_BASE_URL. The current name takes precedence; using the alias prints a deprecation warning.
string
Deprecated alias of TOLOKA_PROJECT_ID. The current name takes precedence; using the alias prints a deprecation warning.

Exit codes