Snapcraft: snap command utils (Ubuntu)

Snapcraft clean

sudo snapcraft clean --use-lxd --verbose;

Build the snap

sudo snapcraft --use-lxd --debug --verbose;

Snap install from .snap package

sudo snap install MY_APPLICATION_amd64.snap --dangerous --devmode

Extract snap content

sudo unsquashfs MY_APPLICATION_amd64.snap

Login to snapcraft

snapcraft login

Upload a snap

snapcraft upload --release=edge MY_APPLICATION_amd64.snap

Check snap connections

sudo snap connections