Creating aliases
You can use aliases to map a command to a custom command that is easier to remember or shorter to type.
Command |
Description |
---|---|
|
Creates an alias. |
|
Lists all of the aliases you have set up. |
|
Removes an alias you had previously configured. |
Using aliases is currently fairly restricted. For example, you cannot create an alias that includes parameters. However, if you just want to change the command name, following is an example. In this example we will create an alias to use lo
instead of logout
:
$af aliases No Aliases $ af alias lo=logout Successfully aliased 'lo' to 'logout' $ af aliases +-------+---------+ | Alias | Command | +-------+---------+ | lo | logout | +-------+---------+ $ af lo Successfully logged out of [https://api.appfog.com] $ af unalias lo Successfully unaliased 'lo'