From a364b174e00557f8bcdc4cf30c831cef5fc7af5b Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Thu, 28 Sep 2023 19:31:33 -0700 Subject: [PATCH] add expire time to service token create --- docs/cli/commands/service-token.mdx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/cli/commands/service-token.mdx b/docs/cli/commands/service-token.mdx index e7e896523..01fc557e4 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` + + ```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` + ```bash infisical service-token create --scope=dev:/global --access-level=read --access-level=write