mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-08 11:27:47 +00:00
Add docs for chained commands
This commit is contained in:
@@ -2,9 +2,25 @@
|
|||||||
title: "infisical run"
|
title: "infisical run"
|
||||||
---
|
---
|
||||||
|
|
||||||
```bash
|
<Tabs>
|
||||||
infisical run [options] -- [your application start command]
|
<Tab title="Single command">
|
||||||
```
|
```bash
|
||||||
|
infisical run [options] -- [your application start command]
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run [options] -- npm run dev
|
||||||
|
```
|
||||||
|
</Tab>
|
||||||
|
|
||||||
|
<Tab title="Chained commands">
|
||||||
|
```bash
|
||||||
|
infisical run [options] --command [string command]
|
||||||
|
|
||||||
|
# Example
|
||||||
|
infisical run [options] --command "npm run bootstrap && npm run dev start; other-bash-command"
|
||||||
|
```
|
||||||
|
</Tab>
|
||||||
|
</Tabs>
|
||||||
|
|
||||||
## Description
|
## Description
|
||||||
|
|
||||||
@@ -15,5 +31,6 @@ Inject environment variables from the platform into an application process.
|
|||||||
| Option | Description | Default value |
|
| Option | Description | Default value |
|
||||||
| -------------- | ----------------------------------------------------------------------------------------------------------- | ------------- |
|
| -------------- | ----------------------------------------------------------------------------------------------------------- | ------------- |
|
||||||
| `--env` | Used to set the environment that secrets are pulled from. Accepted values: `dev`, `staging`, `test`, `prod` | `dev` |
|
| `--env` | Used to set the environment that secrets are pulled from. Accepted values: `dev`, `staging`, `test`, `prod` | `dev` |
|
||||||
| `--projectId` | Used to link a local project to the platform (required only if injecting via the service token method) | `None` |
|
| `--projectId` | Used to link a local project to the platform (required only if injecting via the service token method) | None |
|
||||||
| `--expand` | Parse shell parameter expansions in your secrets (e.g., `${DOMAIN}`) | `true` |
|
| `--expand` | Parse shell parameter expansions in your secrets (e.g., `${DOMAIN}`) | `true` |
|
||||||
|
| `--command` | Pass secrets into chained commands (e.g., `"first-command && second-command; more-commands..."`) | None |
|
||||||
|
|||||||
Reference in New Issue
Block a user