> For the complete documentation index, see [llms.txt](https://docs.pylenium.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pylenium.io/cli/pylenium-cli.md).

# Pylenium CLI

## pylenium init

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

* **`conftest.py`**
* **`pylenium.json`**
* **`pytest.ini`**

{% code title="Terminal $" %}

```bash
pylenium init
```

{% endcode %}

{% hint style="success" %}
Make sure to run this command at the <mark style="color:yellow;">**Project Root**</mark> (aka Workspace)
{% endhint %}

{% hint style="info" %}
By default, this will not overwrite Pylenium files if they already exist.
{% endhint %}

## Overwrite conftest.py file

You can overwrite an existing <mark style="color:yellow;">**conftest.py**</mark> file with the latest version by using the **`-c`** flag.

{% code title="Terminal $" %}

```bash
pylenium init -c
```

{% endcode %}

## Overwrite pylenium.json file

You can overwrite an existing <mark style="color:yellow;">**pylenium.json**</mark> file with the latest defaults by using the **`-p`** flag.

{% code title="Terminal $" %}

```bash
pylenium init -p
```

{% endcode %}

## Overwrite pytest.ini file

You can overwrite an existing <mark style="color:yellow;">**pytest.ini**</mark> file with the latest defaults by using the **`-i`** flag.

{% code title="Terminal $" %}

```bash
pylenium init -i
```

{% endcode %}

## Overwrite multiple files at once

You can overwrite two or more files by combining flags.

{% code title="Terminal" %}

```bash
pylenium init -cpi
```

{% endcode %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pylenium.io/cli/pylenium-cli.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
