`multipass aliases` command

Errors or typos? Topics missing? Hard to read? Let us know or open an issue on GitHub.

See also: Alias, How to use command aliases, alias, unalias

The aliases command shows the aliases defined for all the instances. Its basic usage consists in invoking the command with multipass aliases.

$ multipass aliases
Alias  Instance         Command  Working directory
lsrm   rewarded-merlin  ls       default
topfp  flying-pig       top      map

The column Working directory tells us on which directory of the host the alias will be executed. The value default means that the alias will be executed in the instance default working directory (normally, /home/ubuntu). The value map means that, in case the host directory from which the user calls the alias is mounted on the instance, the alias will be executed on the mounted directory on the instance. The value will be default only if the --no-map-working-directory argument is present at alias creation.

The command can be used in conjunction with --format or -f to specify the desired output format (csv, json, table or yaml).

The full multipass help aliases output explains the available options:

$ multipass help aliases
Usage: multipass aliases [options]
List available aliases

  -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.
  --format <format>  Output list in the requested format. Valid formats are:
                     table (default), json, csv and yaml. The output working
                     directory states whether the alias runs in the instance's
                     default directory or the alias running directory should try
                     to be mapped to a mounted one.