aliases¶
See also: How to use command aliases
The aliases command shows the aliases defined for all the instances.
multipass aliases
The output will be similar to the following:
Alias Instance Command Working directory
lsrm rewarded-merlin ls default
topfp flying-pig top map
The Working directory column tells us the directory of the host where the alias will be run. The value default means that the alias will be run in the instance’s default working directory (normally, /home/ubuntu). The value map means that, if the host directory from which the user calls the alias is mounted on the instance, the alias will be run on the mounted directory on the instance.
Note
The value will be default only if the alias was created with the --no-map-working-directory option.
The command can be used in conjunction with the --format or -f options to specify the desired output format: csv, json, table or yaml.
Note
The json, csv and yaml formats cover regular output only. Errors and log messages are printed to the standard error stream as plain text, with failures signaled by a non-zero exit status.
The full multipass help aliases output explains the available options:
Usage: multipass aliases [options]
List available 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.
--format <format> Output list in the requested format. Valid formats are:
table (default), json, csv and yaml. The json, csv and yaml
formats cover regular output only. Errors and log messages
are printed to the standard error stream as plain text,
with failures signaled by a non-zero exit status. 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.