Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add doc on multiple `--path` for `infisical run`

Matheus Nogueira0d171ad691fe
diff --git a/docs/cli/commands/run.mdx b/docs/cli/commands/run.mdx
index c7872efb0d..0afc68a3c4 100644
--- a/docs/cli/commands/run.mdx
+++ b/docs/cli/commands/run.mdx
@@ -168,13 +168,18 @@ $ infisical run -- npm run dev
</Accordion>
<Accordion title="--path">
- The `--path` flag indicates which project folder secrets will be injected from.
+ The `--path` flag indicates which project folder secrets will be injected from. You can specify multiple `--path` flags to inject secrets from multiple folders at once.
```bash
- # Example
+ # Example - single path
infisical run --path="/nextjs" -- npm run dev
+
+ # Example - multiple paths
+ infisical run --path="/common" --path="/nextjs" -- npm run dev
```
+ When using multiple `--path` flags, secrets from all specified folders will be injected into your application process. If the same secret exists in multiple paths, the first path takes precedence.
+
</Accordion>
</Accordion>