Snaps subcommands
b, build
- Syntax
 - Example
 
mm-snap build [options]
mm-snap b -s lib/index.js -d out -n snap.js
Builds a snap from source.
b is an alias for build.
e, eval
- Syntax
 - Example
 
mm-snap eval [options]
mm-snap e -b out/snap.js
Attempts to evaluate the snap bundle in SES.
e is an alias for eval.
i, init
- Syntax
 - Example
 
mm-snap init [directory]
mm-snap i my-snap
Initializes a snap project in the specified directory. If no directory is specified, the snap project is initialized in the current directory.
i is an alias for init.
m, manifest
- Syntax
 - Example
 
mm-snap manifest [options]
mm-snap m --fix false
Validates the snap manifest file.
m is an alias for manifest.
s, serve
- Syntax
 - Example
 
mm-snap serve [options]
mm-snap s -r out -p 9000
Locally serves snap files for testing.
s is an alias for serve.
w, watch
- Syntax
 - Example
 
mm-snap watch [options]
mm-snap w -s lib/index.js -d out
Rebuilds a snap from source upon changes to the files in the parent and child directories of the source directory.
note
All files in the parent and child directories of the source directory are watched for changes, except:
- Files in the 
node_modulesdirectory. - Files in the 
testortestsdirectories. - Any files named 
test.jsortest.ts. - Files in the 
distdirectory, or the directory specified using--dist. - Dotfiles.
 
w is an alias for watch.