💻Pylenium CLI

The CLI comes with commands to initialize and create Pylenium files, and more.

pylenium init

Initializes Pylenium into the current directory. This creates Pylenium's required files:

  • conftest.py

  • pylenium.json

  • pytest.ini

Terminal $
pylenium init

Make sure to run this command at the Project Root (aka Workspace)

By default, this will not overwrite Pylenium files if they already exist.

Overwrite conftest.py file

You can overwrite an existing conftest.py file with the latest version by using the -c flag.

Terminal $
pylenium init -c

Overwrite pylenium.json file

You can overwrite an existing pylenium.json file with the latest defaults by using the -p flag.

Terminal $
pylenium init -p

Overwrite pytest.ini file

You can overwrite an existing pytest.ini file with the latest defaults by using the -i flag.

Terminal $
pylenium init -i

Overwrite multiple files at once

You can overwrite two or more files by combining flags.

Terminal
pylenium init -cpi

Last updated