CLI

Methanol ships a small CLI wrapper with dev, build, and preview commands.

Commands

Quick start with npx:

npx methanol dev      # start dev server
npx methanol build    # build to dist/
npx methanol serve    # serve the production build

For a faster CLI startup, install globally:

npm install methanol -g
methanol dev

You can pass input and output as positional args (order matters):

npx methanol build ./pages ./dist

For dev, only input is used:

npx methanol dev ./pages

Common Flags

Highlighting is off by default. Use the flag to enable it for a run.

Running Without npx

node node_modules/methanol/bin/methanol.js dev