docs: update coder_token_lifetime description to include units and examples (#20516)

This commit is contained in:
david-fraley
2025-10-28 10:15:57 -05:00
committed by GitHub
parent 659f89e079
commit cf93c34172
3 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -10,7 +10,9 @@ OPTIONS:
Repeatable allow-list entry (<type>:<uuid>, e.g. workspace:1234-...).
--lifetime string, $CODER_TOKEN_LIFETIME
Specify a duration for the lifetime of the token.
Duration for the token lifetime. Supports standard Go duration units
(ns, us, ms, s, m, h) plus d (days) and y (years). Examples: 8h, 30d,
1y, 1d12h30m.
-n, --name string, $CODER_TOKEN_NAME
Specify a human-readable name.
+1 -1
View File
@@ -123,7 +123,7 @@ func (r *RootCmd) createToken() *serpent.Command {
{
Flag: "lifetime",
Env: "CODER_TOKEN_LIFETIME",
Description: "Specify a duration for the lifetime of the token.",
Description: "Duration for the token lifetime. Supports standard Go duration units (ns, us, ms, s, m, h) plus d (days) and y (years). Examples: 8h, 30d, 1y, 1d12h30m.",
Value: serpent.StringOf(&tokenLifetime),
},
{
+1 -1
View File
@@ -18,7 +18,7 @@ coder tokens create [flags]
| Type | <code>string</code> |
| Environment | <code>$CODER_TOKEN_LIFETIME</code> |
Specify a duration for the lifetime of the token.
Duration for the token lifetime. Supports standard Go duration units (ns, us, ms, s, m, h) plus d (days) and y (years). Examples: 8h, 30d, 1y, 1d12h30m.
### -n, --name