lwr build

The lwr build command generates static site files as well as any configuration files for specified command {options}.

Option Type Required/Optional Description
-t, --target <target> String Optional Set the site deployment target. If a target isn't specified, the default value is default. Accepted values are: <ul><li>default - Generates the static site wouthout any configuration options.</li><li>mrt - Generates the static site with a Managed Runtime configuration.</li><li>netlify - Generates the static site with a Netlify configuration.</li></ul>
-m, --mode <mode> String Optional Set the server mode. Accepted values are prod and prod-compat.
-o, --output <directory> String Optional Set the output directory for all of your static site files. If a directory isn't specified, the default value is app.
--clean Boolean Optional Delete an existing output directory. If the specified output directory already exists, the console logs a warning. By default, an existing output directory isn't deleted.
-r, --routes <routes...> Routes Optional Specify the routes to include during the build using regex. If routes aren't specified, the default value is [].
-m, --modules <modules...> Modules Optional Specify additional modules to be generated during the build. If modules aren't specified, the default value is [].
-l, --locales <locales...> Locales Optional Specify the list of locales to build your site for. The default value is ['en'].
--minify Boolean Optional Minify the build output. By default, build output isn't minified.
-h, --help Optional View help text for lwr build options in the CLI.