{% extends "dashboard/base.html" %} {% set active_page = 'tokens' %} {% block title %}API Tokens - CmdForge Dashboard{% endblock %} {% block dashboard_header %}
Manage tokens for CLI and API access
API tokens are used to authenticate with the CmdForge registry from the CLI.
Use cmdforge auth login to authenticate,
or set the CMDFORGE_TOKEN environment variable.
| Name | Created | Last Used | Status | Actions |
|---|---|---|---|---|
|
{{ token.name }} st_...{{ token.token_suffix }} |
{{ token.created_at|date_format }} | {{ token.last_used_at|timeago if token.last_used_at else 'Never' }} | {% if token.revoked_at %} Revoked {% else %} Active {% endif %} | {% if not token.revoked_at %} {% else %} Revoked {{ token.revoked_at|timeago }} {% endif %} |
Create an API token to authenticate with the registry from the command line.
Copy your token now. You won't be able to see it again!
To use this token, run:
export CMDFORGE_TOKEN=""