rotate
sand api-keys rotate
Rotate an API key
sand api-keys rotate [flags]
Examples
$ sand api-keys rotate aut_01jmmdbt1qfssrzy9hxrx07z1y --notAfter="2026-01-02T00:00:00Z"
✅ API key rotated
ID: aut_01jmmdbt1qfssrzy9hxrx07z1y
Name: personal-token
ExpiresAt: 2026-01-02T00:00:00Z
APIKey: ******
Options
-h, --help Help for rotate
--json Return json output
--notAfter string The time the API key will expire (required)
SEE ALSO
- sand api-keys - Manage API keys