How to install Charmcraft

The way to install Charmcraft currently is on Linux via snap.

Contents:

Linux

The recommended way to install charmcraft is from the stable channel with

sudo snap install charmcraft --classic

There are multiple channels other than stable. See the full list with snap info charmcraft.

We recommend either latest/stable or latest/candidate for everyday charming. With the snap you will always be up to date as Charmhub services and APIs evolve. Charmcraft supports Kubernetes operator development.

On Linux, Charmcraft currently depends on LXD to build the charms in a container matching the target base(s). Charmcraft will offer to install LXD if required, but here are steps to set it up manually:

$ sudo snap install lxd
$ sudo adduser $USER lxd
$ newgrp lxd
$ lxd init --auto

MacOS

Charmcraft does not yet support Mac OS.

Windows

Charmcraft does not yet support Windows.