OS Manuals

tox(1)

tox(1) User Commands tox(1)

tox - virtualenv-based automation of test activities

tox [options] [run | run-parallel | depends | man | list | devenv | schema | config | quickstart | exec | legacy] [command-options]

tox aims to automate and standardize testing in Python. It is part of a larger vision of easing the packaging, testing and release process of Python software.

tox creates virtual environments for multiple Python versions, installs project dependencies, and runs tests in each environment. It supports parallel execution, custom test commands, and extensive configuration.

run environments
run environments in parallel
visualize tox environment dependencies
Set up tox man page for current shell
list environments
sets up a development environment at ENVDIR based on the tox configuration specified
Generate schema for tox configuration
show tox configuration
Command line script to quickly create a tox config file for a Python project
execute an arbitrary command within a tox environment
legacy entry-point command

For command-specific help, use: tox command --help

show this help message and exit
should output be enriched with colors, default is yes unless TERM=dumb or NO_COLOR is defined.
color for stderr output, use RESET for terminal defaults.
increase verbosity
decrease verbosity
dump tox threads after n seconds and exit the app - useful to debug when tox hangs, 0 means disabled
configuration file/folder for tox (if not specified will discover one)
tox working directory (if not specified will be the folder of the config file)
project root directory (if not specified will be the folder of the config file)
the tox run engine to use when not explicitly stated in tox env configuration
show program's and plugins version number and exit
do not perform provision, but fail and if a path was provided write provision metadata as JSON to it
if recreate is set do not recreate provision tox environment
recreate the tox environments
configuration override(s), e.g., -x testenv:pypy3.ignore_errors=True

Primary configuration file in TOML format (recommended).
Configuration file in INI format (deprecated).
Alternative configuration location under the [tool.tox] section.
Legacy configuration location (deprecated).

The configuration files are searched in the order listed above. The first file found is used.

Any tox configuration setting can be overridden via environment variables with the TOX_ prefix.
When set to any non-empty value, disables colored output.
When set to any non-empty value, forces colored output even when stdout is not a terminal.
When set, disables the progress spinner during parallel execution.

Full documentation: <https://tox.wiki/>

pip(1), pytest(1), virtualenv(1)

tox development team

<https://github.com/tox-dev/tox>

py3-tox 4.64.10-r0 · os · ingested 2026-10-09