# CLI Reference ## ty An extremely fast Python type checker.
ty checkCheck a project for type errors
ty serverStart the language server
ty versionDisplay ty's version
ty helpPrint this message or the help of the given subcommand(s)
List of files or directories to check [default: the project root]
--color whenControl when colored output is used
Possible values:
auto: Display colors if the output goes to an interactive terminalalways: Always display colorsnever: Never display colors--config, -c config-optionA TOML <KEY> = <VALUE> pair
--error ruleTreat the given rule as having severity 'error'. Can be specified multiple times.
--error-on-warningUse exit code 1 if there are any warning-level diagnostics
--exit-zeroAlways use exit code 0, even when there are error-level diagnostics
--extra-search-path pathAdditional path to use as a module-resolution source (can be passed multiple times)
--help, -hPrint help (see a summary with '-h')
--ignore ruleDisables the rule. Can be specified multiple times.
--output-format output-formatThe format to use for printing diagnostic messages
Possible values:
full: Print diagnostics verbosely, with context and helpful hintsconcise: Print diagnostics concisely, one per line--project projectRun the command within the given project directory.
All pyproject.toml files will be discovered by walking up the directory tree from the given project directory, as will the project's virtual environment (.venv) unless the venv-path option is set.
Other command-line arguments (such as relative paths) will be resolved relative to the current working directory.
--python pathPath to the Python installation from which ty resolves type information and third-party dependencies.
If not specified, ty will look at the VIRTUAL_ENV environment variable.
ty will search in the path's site-packages directories for type information and third-party imports.
This option is commonly used to specify the path to a virtual environment.
--python-platform, --platform platformTarget platform to assume when resolving types.
This is used to specialize the type of sys.platform and will affect the visibility of platform-specific functions and attributes. If the value is set to all, no assumptions are made about the target platform. If unspecified, the current system's platform will be used.
--python-version, --target-version versionPython version to assume when resolving types
Possible values:
3.73.83.93.103.113.123.13--respect-ignore-filesRespect file exclusions via .gitignore and other standard ignore files. Use --no-respect-gitignore to disable
--typeshed, --custom-typeshed-dir pathCustom directory to use for stdlib typeshed stubs
--verbose, -vUse verbose output (or -vv and -vvv for more verbose output)
--warn ruleTreat the given rule as having severity 'warn'. Can be specified multiple times.
--watch, -WWatch files for changes and recheck files related to the changed files
--help, -hPrint help
--help, -hPrint help
--help, -hPrint help