Skip to content

Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.

add expire time to service token create

Maidul Islama364b174e005
diff --git a/docs/cli/commands/service-token.mdx b/docs/cli/commands/service-token.mdx
index e7e8965238..01fc557e4e 100644
--- a/docs/cli/commands/service-token.mdx
+++ b/docs/cli/commands/service-token.mdx
@@ -53,6 +53,15 @@ With this command can create, view and delete service tokens.
Default: `Service token generated via CLI`
</Accordion>
+ <Accordion title="--expiry-seconds">
+ ```bash
+ infisical service-token create --scope=dev:/global --access-level=read --expiry-seconds 120
+ ```
+
+ Set the service token's expiration time in seconds from now. To never expire set to zero.
+
+ Default: `1 day`
+ </Accordion>
<Accordion title="--access-level">
```bash
infisical service-token create --scope=dev:/global --access-level=read --access-level=write