{% extends "dashboard/base.html" %} {% set active_page = 'tokens' %} {% block title %}API Tokens - CmdForge Dashboard{% endblock %} {% block dashboard_header %}

API Tokens

Manage tokens for CLI and API access

{% endblock %} {% block dashboard_content %}

About API Tokens

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.

{% if tokens %}
{% for token in tokens %} {% endfor %}
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 %}
{% else %}

No API tokens

Create an API token to authenticate with the registry from the command line.

{% endif %} {% endblock %}