The following examples assume that you are using Lume as a Deno's task.
The commands for the globally installed Lume are similar but removing the
deno task part. For example
deno task lume --serve becomes to
To build your website, simply run:
deno task lume
This command compiles your documents to HTML and save them into the dest
deno task build task as an alias.
Typically you will want to open the site in your browser so can start a local
server adding the
deno task lume --serve
deno task serve task as an alias.
This command init a local web server and starts watching the changes of
your site. So after changing anything, Lume will rebuild the site and reload
automatically your browser with the new changes. The local server use the port
3000 by default but you can change it with the
--port argument. For example:
deno task lume --serve --port=8000
To watch changes without starting a local server, use the
deno task lume --watch
There are other useful commands like:
deno task lume -V: to show the current version.
deno task lume run <SCRIPT>: to run a custom script.
deno task lume vendor: to download the Lume vendors in the
_vendordirectory. See Deno docs.