Command-line interface

See also: Instance, Service

The multipass CLI (command line interface) client is used to communicate with the Multipass service to create, manage, and interact with Multipass instances using various sub-commands.

The commands below follow the life of an instance, from launching it to working inside it and removing it, followed by the commands that configure Multipass itself. You can use multipass help <command> to display more information on the purpose and available options of each command.

Instance creation and removal

Every instance you work with starts with a launch or a clone. Deleting an instance removes it permanently, so it cannot be recovered.

Command-line access

You can work inside an instance interactively or run one command at a time from a script. See Multipass exec and shells for how your host shell affects the commands you pass.

Discovery and inspection

These commands report information without changing anything. Use them to choose an image before you launch, or to check an instance’s IP address, disk usage, and memory usage.

Instance state

A stopped instance does not consume resources, while a suspended instance keeps its state and memory so it can resume where it left off. See Instance states for the full list of states.

Snapshots

A snapshot records an instance at a point in time, so you can experiment and roll back if something goes wrong. The instance must be stopped to take or restore a snapshot. See Snapshot for what a snapshot records.

File sharing

A mount shares a host folder with an instance, while a transfer copies files between the host and an instance without mounting anything. See Mount for the different types of mount.

Aliases

An alias lets you run a command inside an instance as if it were a command on your host. Aliases are grouped into contexts, so you can keep separate sets and switch between them. See Alias for more.

Availability zones

Availability zones group your instances the way a public cloud does, so you can simulate the loss of part of your infrastructure without affecting instances in other zones. See Availability zone for how instances are assigned to zones.

Configuration

Settings control how Multipass behaves, from the driver it uses to the resources assigned to each instance. See Settings for the full list of keys.

Service and client

These commands work with the Multipass service and client as a whole, rather than with a specific instance. Use them to give a user access to the service, to wait for the service to be ready in a script, or to get help and version details.