misc: added project slug flag support to dynamic secret commands

This commit is contained in:
Sheen Capadngan
2025-06-11 23:06:27 +08:00
parent 55aa1e87c0
commit 62308fb0a3
2 changed files with 132 additions and 36 deletions

View File

@@ -49,7 +49,7 @@ export INFISICAL_DISABLE_UPDATE_CHECK=true
### Flags
<Accordion title="--projectId">
The project ID to fetch dynamic secrets from. This is required when using a machine identity to authenticate.
The project ID to fetch dynamic secrets from.
```bash
# Example
@@ -58,6 +58,16 @@ infisical dynamic-secrets --projectId=<project-id>
</Accordion>
<Accordion title="--projectSlug">
The project slug to fetch dynamic secrets from.
```bash
# Example
infisical dynamic-secrets --projectSlug=<project-slug>
```
</Accordion>
<Accordion title="--token">
The authenticated token to fetch dynamic secrets from. This is required when using a machine identity to authenticate.
@@ -119,7 +129,7 @@ infisical dynamic-secrets lease create <dynamic-secret-name> --path="/" --env=de
</Accordion>
<Accordion title="--projectId">
The project ID of the dynamic secrets to lease from. This is required when using a machine identity to authenticate.
The project ID of the dynamic secrets to lease from.
```bash
# Example
@@ -128,6 +138,16 @@ infisical dynamic-secrets lease create <dynamic-secret-name> --projectId=<projec
</Accordion>
<Accordion title="--projectSlug">
The project slug of the dynamic secrets to lease from.
```bash
# Example
infisical dynamic-secrets lease create <dynamic-secret-name> --projectSlug=<project-slug>
```
</Accordion>
<Accordion title="--token">
The authenticated token to create dynamic secret leases. This is required when using a machine identity to authenticate.
@@ -190,7 +210,7 @@ infisical dynamic-secrets lease list <dynamic-secret-name> --path="/" --env=dev
</Accordion>
<Accordion title="--projectId">
The project ID of the dynamic secrets to list leases from. This is required when using a machine identity to authenticate.
The project ID of the dynamic secrets to list leases from.
```bash
# Example
@@ -199,6 +219,16 @@ infisical dynamic-secrets lease list <dynamic-secret-name> --projectId=<project-
</Accordion>
<Accordion title="--projectSlug">
The project slug of the dynamic secrets to list leases from.
```bash
# Example
infisical dynamic-secrets lease list <dynamic-secret-name> --projectSlug=<project-slug>
```
</Accordion>
<Accordion title="--token">
The authenticated token to list dynamic secret leases. This is required when using a machine identity to authenticate.
@@ -235,7 +265,7 @@ infisical dynamic-secrets lease renew <lease-id> --path="/" --env=dev
</Accordion>
<Accordion title="--projectId">
The project ID of the dynamic secret's lease from. This is required when using a machine identity to authenticate.
The project ID of the dynamic secret to lease from.
```bash
# Example
@@ -244,6 +274,16 @@ infisical dynamic-secrets lease renew <lease-id> --projectId=<project-id>
</Accordion>
<Accordion title="--projectSlug">
The project slug of the dynamic secret to lease from.
```bash
# Example
infisical dynamic-secrets lease renew <lease-id> --projectSlug=<project-slug>
```
</Accordion>
<Accordion title="--token">
The authenticated token to create dynamic secret leases. This is required when using a machine identity to authenticate.
@@ -290,7 +330,7 @@ infisical dynamic-secrets lease delete <lease-id> --path="/" --env=dev
</Accordion>
<Accordion title="--projectId">
The project ID of the dynamic secret's lease from. This is required when using a machine identity to authenticate.
The project ID of the dynamic secret to delete lease from.
```bash
# Example
@@ -299,6 +339,16 @@ infisical dynamic-secrets lease delete <lease-id> --projectId=<project-id>
</Accordion>
<Accordion title="--projectSlug">
The project slug of the dynamic secret to delete lease from.
```bash
# Example
infisical dynamic-secrets lease delete <lease-id> --projectSlug=<project-slug>
```
</Accordion>
<Accordion title="--token">
The authenticated token to delete dynamic secret leases. This is required when using a machine identity to authenticate.