nox - Flexible test automation
usage: nox [-h] [--version] [-l] [--json] [-s [SESSIONS ...]]
- [-p [PYTHONS ...]] [-k KEYWORDS] [-t [TAGS ...]] [-v] [-ts] [-db
{conda,mamba,micromamba,virtualenv,venv,uv,none}] [-fb
{conda,mamba,micromamba,virtualenv,venv,uv,none}] [--no-venv]
[--reuse-venv {yes,no,always,never}] [-r] [-N] [-R] [-f NOXFILE] [--envdir
ENVDIR] [--extra-pythons [EXTRA_PYTHONS ...]] [-P [FORCE_PYTHONS ...]]
[-x] [--no-stop-on-first-error] [--error-on-missing-interpreters]
[--no-error-on-missing-interpreters] [--error-on-external-run]
[--no-error-on-external-run] [--install-only] [--no-install] [--report
REPORT] [--non-interactive] [--nocolor] [--forcecolor] ...
Nox is a Python automation toolkit.
- These are general arguments used when invoking Nox.
- -h, --help
- Show this help message and exit.
- --version
- Show the Nox version and exit.
- posargs
- Arguments following ``--`` that are passed through to the session(s).
- -f NOXFILE, --noxfile
NOXFILE
- Location of the Python file containing Nox sessions.
- These arguments are used to control Nox's creation and usage of virtual
environments.
- -db
{conda,mamba,micromamba,virtualenv,venv,uv,none},
--default-venv-backend
{conda,mamba,micromamba,virtualenv,venv,uv,none}
- Virtual environment backend to use by default for Nox sessions, this is
``'virtualenv'`` by default but any of ``['conda', 'mamba', 'micromamba',
'virtualenv', 'venv', 'uv', 'none']`` are accepted.
- -fb
{conda,mamba,micromamba,virtualenv,venv,uv,none},
--force-venv-backend
{conda,mamba,micromamba,virtualenv,venv,uv,none}
- Virtual environment backend to force-use for all Nox sessions in this run,
overriding any other venv backend declared in the Noxfile and ignoring the
default backend. Any of ``['conda', 'mamba', 'micromamba', 'virtualenv',
'venv', 'uv', 'none']`` are accepted.
- --no-venv
- Runs the selected sessions directly on the current interpreter, without
creating a venv. This is an alias for '--force-venv-backend none'.
- --reuse-venv
{yes,no,always,never}
- Controls existing virtualenvs recreation. This is ``'no'`` by default, but
any of ``('yes', 'no', 'always', 'never')`` are accepted.
- -r,
--reuse-existing-virtualenvs
- This is an alias for '--reuse-venv=yes|no'.
- -N,
--no-reuse-existing-virtualenvs
- Disables --reuse-existing-virtualenvs if it is enabled in the
Noxfile.
- -R
- Reuse existing virtualenvs and skip package reinstallation. This is an
alias for '--reuse-existingvirtualenvs --no-install'.
- --envdir
ENVDIR
- Directory where Nox will store virtualenvs, this is ``.nox`` by
default.
The full documentation for nox is maintained as a Texinfo
manual. If the info and nox programs are properly installed at
your site, the command
- info nox
should give you access to the complete manual.