Skip to content

Commit

Permalink
update crud CLI docs and remove projectID from run command
Browse files Browse the repository at this point in the history
  • Loading branch information
maidul98 committed Jan 6, 2023
1 parent 85be609 commit 0d8e104
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
1 change: 0 additions & 1 deletion docs/cli/commands/run.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ Inject environment variables from the platform into an application process.
| Option | Description | Default value |
| -------------- | ----------------------------------------------------------------------------------------------------------- | ------------- |
| `--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` |
| `--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` |
26 changes: 22 additions & 4 deletions docs/cli/commands/secrets.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.

### 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

```
Expand All @@ -33,6 +33,12 @@ This command enables you to perform CRUD (create, read, update, delete) operatio
Default value: `true`
</Accordion>

<Accordion title="--env">
Used to select the environment name on which actions should be taken on

Default value: `dev`
</Accordion>

</Accordion>

<Accordion title="infisical secrets get">
Expand All @@ -52,7 +58,11 @@ This command enables you to perform CRUD (create, read, update, delete) operatio
```

### Flags
None
<Accordion title="--env">
Used to select the environment name on which actions should be taken on

Default value: `dev`
</Accordion>
</Accordion>

<Accordion title="infisical secrets set">
Expand All @@ -74,7 +84,11 @@ $ infisical secrets set STRIPE_API_KEY=sjdgwkeudyjwe DOMAIN=example.com HASH=jeb
```

### Flags
None
<Accordion title="--env">
Used to select the environment name on which actions should be taken on

Default value: `dev`
</Accordion>
</Accordion>

<Accordion title="infisical secrets delete">
Expand All @@ -89,5 +103,9 @@ $ infisical secrets set STRIPE_API_KEY=sjdgwkeudyjwe DOMAIN=example.com HASH=jeb
```

### Flags
None
<Accordion title="--env">
Used to select the environment name on which actions should be taken on

Default value: `dev`
</Accordion>
</Accordion>

0 comments on commit 0d8e104

Please sign in to comment.