# apps/backend/.env.example
HELLO=""
```

</details>
<details><summary>`ext gitignore`</summary><br>

Gitignore your `.env` files.

```sh
$ dotenvx ext gitignore
✔ ignored .env* (.gitignore)
```

</details>
<details><summary>`ext gitignore --pattern`</summary><br>

Gitignore specific pattern(s) of `.env` files.

```sh
$ dotenvx ext gitignore --pattern .env.keys
✔ ignored .env.keys (.gitignore)
```

</details>
<details><summary>`ext precommit`</summary><br>

Prevent `.env` files from being committed to code.

```sh
$ dotenvx ext precommit
[dotenvx][precommit] .env files (1) protected (encrypted or gitignored)
```

</details>
<details><summary>`ext precommit --install`</summary><br>

Install a shell script to `.git/hooks/pre-commit` to prevent accidentally committing any `.env` files to source control.

```sh
$ dotenvx ext precommit --install
[dotenvx][precommit] dotenvx ext precommit installed [.git/hooks/pre-commit]
```

</details>
<details><summary>`ext precommit directory`</summary><br>

Prevent `.env` files from being committed to code inside a specified path to a directory.

```sh
$ echo "HELLO=World" > .env
$ mkdir -p apps/backend
$ echo "HELLO=Backend" > apps/backend/.env

$ dotenvx ext precommit apps/backend
[dotenvx][precommit] apps/backend/.env not protected (encrypted or gitignored)
```

</details>
<details><summary>`ext prebuild`</summary><br>

Prevent `.env` files from being built into your docker containers.

Add it to your `Dockerfile`.

```sh