Skip to content

Add support for command and subcommand aliases #1242

Open
@gilles-stragier

Description

@gilles-stragier

Feature Request: Add support for command and subcommand aliases

As discussed in #132 (comment), there's a need for official alias support in Typer.

Examples needed:

  • Command aliases: listls, removerm
  • Subcommand aliases: versionsverv, documentsdocs

Current workaround:

@app.command("list")
@app.command("ls", hidden=True)  # Hidden alias

Requested feature:

Official alias support that doesn't clutter help output and provides a clean API for creating command shortcuts.

This would bring Typer in line with other popular CLI tools that support aliases natively.

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