liuxg@liuxg:~$ snapcraft --help
usage: snapcraft [-h] [-v]
{init,shell,run,list-plugins,clean,pull,build,stage,snap,assemble,all,version,help}
...
positional arguments:
{init,shell,run,list-plugins,clean,pull,build,stage,snap,assemble,all,version,help}
init start a project
shell enter staging environment
run run snap in kvm
list-plugins list the available plugins that handle different types
of a part
clean clean up the environment (to start from scratch)
pull get sources
build build parts
stage put parts into staging area
snap put parts into snap area
assemble (all) make snap package
version show the program's version number and exit
help obtain help for plugins and specific topics
optional arguments:
-h, --help show this help message and exit
-v, --version show the program's version number and exit