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.

overlay

Create part layers over the base filesystem.

pack

Create the final artefact.

prime

Prime artefacts defined for a part.

pull

Download or retrieve artefacts defined for a part.

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

Initialise a rockcraft project.

version

Show the application version and exit.