mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-02 23:25:51 +00:00
update cli usage docs
This commit is contained in:
+7
-6
@@ -34,10 +34,12 @@ infisical init
|
|||||||
|
|
||||||
## Inject environment variables
|
## Inject environment variables
|
||||||
|
|
||||||
```bash
|
<Accordion title="Injecting environment variables directly" defaultOpen="true">
|
||||||
# inject environment variables into app
|
```bash
|
||||||
infisical run -- [your application start command]
|
# inject environment variables into app
|
||||||
```
|
infisical run -- [your application start command]
|
||||||
|
```
|
||||||
|
</Accordion>
|
||||||
|
|
||||||
<Accordion title="Injecting environment variables in custom aliases">
|
<Accordion title="Injecting environment variables in custom aliases">
|
||||||
Custom aliases can utilize secrets from Infisical. Suppose there is a custom alias `yd` in `custom.sh` that runs `yarn dev` and needs the secrets provided by Infisical.
|
Custom aliases can utilize secrets from Infisical. Suppose there is a custom alias `yd` in `custom.sh` that runs `yarn dev` and needs the secrets provided by Infisical.
|
||||||
@@ -54,10 +56,9 @@ infisical run -- [your application start command]
|
|||||||
```bash
|
```bash
|
||||||
infisical run --command="source custom.sh && yd"
|
infisical run --command="source custom.sh && yd"
|
||||||
```
|
```
|
||||||
|
|
||||||
View all available options for `run` command [here](./commands/run)
|
|
||||||
</Accordion>
|
</Accordion>
|
||||||
|
|
||||||
|
View all available options for `run` command [here](./commands/run)
|
||||||
|
|
||||||
## Examples:
|
## Examples:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user