Rockcraft commands

Lifecycle commands

Lifecycle commands can take an optional parameter <part-name>. When a part name is provided, the command applies to the specific part. When no part name is provided, the command applies to all parts.

build

Build artefacts defined for a part.

clean

Remove a part’s assets.

pack

Create the final artefact.

prime

Prime artefacts defined for a part.

pull

Download or retrieve artefacts defined for a part.

remote-build

Build a project remotely on Launchpad.

stage

Stage built artefacts into a common staging area.

Extension commands

expand-extensions

Expand extensions in snapcraft.yaml.

extensions

List available extensions for all supported bases.

list-extensions

List available extensions for all supported bases.

Other commands

init

Create an initial project filetree.

version

Show the application version and exit.