---
title: "Infisical"
description: "Secrets for dev through the infisical cli."
url: https://plate.findmalek.engineer/docs/infisical
markdown: https://plate.findmalek.engineer/docs/infisical.md
group: "Modules"
---

# Infisical

The `infisical` module adds `.infisical.json` and a `pnpm dev:secrets` script (`infisical run --env=dev -- turbo dev`) that runs the dev servers with secrets from your [Infisical](https://infisical.com) instance instead of a local `.env`. It is off by default.

```bash
findplate create my-app --modules infisical
```

## What it adds

Files and folders:

- `.infisical.json`

## Env keys

None.

Install the cli, run `infisical login`, then `infisical init` to fill the workspace id in `.infisical.json`. `pnpm dev` still reads the root `.env`. A compose file is in [self-hosted tools](https://plate.findmalek.engineer/docs/self-hosted.md#infisical).

## Remove

Run `findplate remove infisical` in the project, see [add and doctor](https://plate.findmalek.engineer/docs/add-doctor.md#findplate-remove). It deletes the files the module owns, strips its code from shared files and drops its packages, only where you haven't edited them.

If you'd rather do it by hand: for a new project leave `infisical` out of `--modules`. In a project that already exists, delete the paths above, drop its packages from the `package.json` files, remove its env block and fix what `pnpm check-types` reports.

## Swap

To use another secrets manager, change the `dev:secrets` script in `package.json` to its runner, for example `doppler run -- turbo dev`.
