Skip to main content

Click command aliaser

Project description

Says the original author:

This is experimental, which is why it’s not on PyPI.

Says the new step parent:

Get out there and make me proud!

(This code is experimental, but it works for me. I found it on GitHub, and now I’ve published it on PyPI. Enjoy!)


Add (multiple) aliases to a click group or command.

In your click app:

import click
from click_alias import ClickAliasedGroup
def cli():

@cli.command(aliases=['bar', 'baz', 'qux'])
def foo():
    """Run a command."""

Will result in:

Usage: cli [OPTIONS] COMMAND [ARGS]...

  --help  Show this message and exit.

  foo (bar,baz,qux)  Run a command.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for click-alias, version 0.1.1a3
Filename, size File type Python version Upload date Hashes
Filename, size click_alias-0.1.1a3-py2.py3-none-any.whl (3.0 kB) File type Wheel Python version py2.py3 Upload date Hashes View hashes
Filename, size click-alias-0.1.1a3.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page