`multipass unalias` command

See also: How to use instance command aliases, alias command help, aliases command help

The multipass unalias command removes an alias previously added with alias. Removing an alias is done with:

$ multipass unalias name

This will remove the given alias name, erroring out if the alias was not defined. Note that if an instance is removed and purged, it is not necessary to run unalias for the aliases defined on that instance, because they are automatically removed.

You can also remove multiple aliases with one command:

$ multipass unalias name1 name2 name3

and the argument --all, to remove all the defined aliases:

$ multipass unalias --all

multipass help unalias explains the available options:

$ multipass help unalias
Usage: multipass unalias [options] <name> [<name> ...]
Remove aliases

Options:
  -h, --help     Displays help on commandline options
  -v, --verbose  Increase logging verbosity. Repeat the 'v' in the short option
                 for more detail. Maximum verbosity is obtained with 4 (or more)
                 v's, i.e. -vvvv.
  --all          Remove all aliases from current context

Arguments:
  name           Names of aliases to remove

There are rendering issues in the last code block:

Thank you, @itecompro! I applied the fix. You have been very helpful :slight_smile:

1 Like