Skip to content

Bug: extension list doesn't show extension ID #1832

@mbachorik

Description

@mbachorik

Problem

specify extension list does not display the extension ID in its output.

When extension names are ambiguous, users are instructed to use the extension ID instead:

Please rerun using the extension ID:
  specify extension <command> <extension-id>

However, users have no way to discover the ID without manually inspecting .specify/extensions/registry.json.

Current Output

  ✓ Extension Name (v1.0.0)
     Description here
     Commands: 2 | Hooks: 0 | Status: Enabled

Expected Output

  ✓ Extension Name (v1.0.0)
     publisher/extension-id
     Description here
     Commands: 2 | Hooks: 0 | Status: Enabled

Fix

Add the ID to the output in extension_list() (init.py:1953-1959):

console.print(f"  [{status_color}]{status_icon}[/{status_color}] [bold]{ext['name']}[/bold] (v{ext['version']})")
console.print(f"     [dim]{ext['id']}[/dim]")  # ADD THIS
console.print(f"     {ext['description']}")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions