Skip to main content

CLI tool

The @liqvid/cli package provides several command-line utilities for mastering projects.

Installation

npm install -D @liqvid/cli

Usage

The available commands are:

Configuration

All commands accept a --config option specifying a path to a configuration file. The configuration file defaults to ./liqvid.config.ts. It should export an object with keys for each of the available commands, containing the configuration for that command.

// liqvid.config.ts
const os = require("os");

module.exports = {
build: {
/* build configuration */
},
render: {
/* render configuration */
},
serve: {
/* server configuration */
},
thumbs: {
/* thumbnail configuration */
concurrency: os.cpus().length
}
};