update crud CLI docs and remove projectID from run command

This commit is contained in:
Maidul Islam
2023-01-06 01:18:12 -05:00
parent 85be609290
commit 0d8e1042ba
2 changed files with 22 additions and 5 deletions
-1
View File
@@ -31,7 +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 |
| `--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 | | `--command` | Pass secrets into chained commands (e.g., `"first-command && second-command; more-commands..."`) | None |
| `--secret-overriding`| Prioritizes personal secrets with the same name over shared secrets | `true` | | `--secret-overriding`| Prioritizes personal secrets with the same name over shared secrets | `true` |
+22 -4
View File
@@ -10,7 +10,7 @@ infisical secrets
This command enables you to perform CRUD (create, read, update, delete) operations on secrets within your Infisical project. With it, you can view, create, update, and delete secrets in your environment. This command enables you to perform CRUD (create, read, update, delete) operations on secrets within your Infisical project. With it, you can view, create, update, and delete secrets in your environment.
### Sub-commands ### Sub-commands
<Accordion title="infisical secrets"> <Accordion title="infisical secrets" defaultOpen="true">
Use this command to print out all of the secrets in your project Use this command to print out all of the secrets in your project
``` ```
@@ -33,6 +33,12 @@ This command enables you to perform CRUD (create, read, update, delete) operatio
Default value: `true` Default value: `true`
</Accordion> </Accordion>
<Accordion title="--env">
Used to select the environment name on which actions should be taken on
Default value: `dev`
</Accordion>
</Accordion> </Accordion>
<Accordion title="infisical secrets get"> <Accordion title="infisical secrets get">
@@ -52,7 +58,11 @@ This command enables you to perform CRUD (create, read, update, delete) operatio
``` ```
### Flags ### Flags
None <Accordion title="--env">
Used to select the environment name on which actions should be taken on
Default value: `dev`
</Accordion>
</Accordion> </Accordion>
<Accordion title="infisical secrets set"> <Accordion title="infisical secrets set">
@@ -74,7 +84,11 @@ $ infisical secrets set STRIPE_API_KEY=sjdgwkeudyjwe DOMAIN=example.com HASH=jeb
``` ```
### Flags ### Flags
None <Accordion title="--env">
Used to select the environment name on which actions should be taken on
Default value: `dev`
</Accordion>
</Accordion> </Accordion>
<Accordion title="infisical secrets delete"> <Accordion title="infisical secrets delete">
@@ -89,5 +103,9 @@ $ infisical secrets set STRIPE_API_KEY=sjdgwkeudyjwe DOMAIN=example.com HASH=jeb
``` ```
### Flags ### Flags
None <Accordion title="--env">
Used to select the environment name on which actions should be taken on
Default value: `dev`
</Accordion>
</Accordion> </Accordion>