From 174e22a2bcda742c15f6aa26808077bb731de07e Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 13 May 2023 11:17:17 -0400 Subject: [PATCH] put aliases docs in Accordion --- docs/cli/usage.mdx | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/cli/usage.mdx b/docs/cli/usage.mdx index b566e2c0b..922c0f2d8 100644 --- a/docs/cli/usage.mdx +++ b/docs/cli/usage.mdx @@ -39,23 +39,25 @@ infisical init infisical run -- [your application start command] ``` -## 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. -```bash -#!/bin/sh + + 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. + ```bash + #!/bin/sh -yd() { - yarn dev -} -``` + yd() { + yarn dev + } + ``` -To make the secrets available from Infisical to `yd`, you can run the following command: + To make the secrets available from Infisical to `yd`, you can run the following command: -```bash -infisical run --command="source custom.sh && yd" -``` + ```bash + infisical run --command="source custom.sh && yd" + ``` + + View all available options for `run` command [here](./commands/run) + -View all available options for `run` command [here](./commands/run) ## Examples: