How to force Snapcraft v7 from command line?

I have read many pages of the doc and the forum, but I still don’t understand how to force Snapcraft version from command line.

I wish to use Snapcraft v7 on Ubuntu 16.04

Note: I had the same issue on Ubuntu 18.04 but I found it was possible to change the version from the GUI of the App Center.

I answer to myself:

$ snap info snapcraft
$ snap remove snapcraft
$ sudo snap install snapcraft --classic --channel 7.x/stable

Snapcraft v7 is the maximal version for Ubuntu 18.04. Snapcraft v4 is the maximal version for Ubuntu 16.04

2 Likes