Configure Deployment Token Expiration Date (CLI)

You can use the tokens CLI command to create and manage deployment tokens, including setting the token expiration date.

Info
You only need deployment tokens when endpoint security is enabled for a deployment.

To get help, run the following command:

aioli tokens -h

Token Expiration Date Formats in CLI Commands

When using CLI commands to define token expiration dates, there are multiple formats.

1. Timestamp Format

The timestamp format specifies the exact date and time when the token will expire, including the timezone. This format uses the RFC 3339 standard.

Example:

aioli token create iris-deployment-tokens-test --description "test token description" --expiration "2026-07-31T15:29:38Z"

2. Simple Date-Time Format

You can use a simple date-time format for defining token expiration dates.

Example:

aioli token create iris-deployment-tokens-test --description "test token description" --expiration "2026-07-19 15:29:38"

3. Simple Date Format

The simple date format specifies the expiration date without the time component.

Example:

aioli token create iris-deployment-tokens-test --description "test token description" --expiration "2026-07-19"