Set maximum token lifetime without blocking CLI sign-in
The organization's token policy caps credential lifetimes. New CLI sign-in approvals require a fourteen-day key, so a shorter maximum prevents those approvals.
Choose the maximum#
As an organization owner, open Settings → API tokens → Policy. Check Maximum lifetime and enter a value consistent with your organization's CLI sign-in needs. Select Save policy.
Use the saved setting when choosing an expiry for a new credential. If a CLI sign-in is refused, check the maximum before generating another approval request.