CLI
The CLI takes the following commands:
new <name>
orn <name>
: Scaffolds a new Fluorite project by the given name. Options:--yaml
or-y
: Uses YAML configuration files instead of JSON.
build
orb
: Builds the docs using theflconfig.json
inside the current directory or the specified config file. Options:--config
or-c
: Specifies the path to the config file.
serve
ors
: Builds and serves the generated docs on port6001
or the specified port (either through CLI option or theserverOptions
of the config file). Looks forflconfig.json
in the current directory unless specified by the CLI option. Options:--port
or-p
: Specifies the server port.--config
or-c
: Specifies the path to the config file.--watch
or-w
: Starts watching the config file and all the input files and rebuilds the docs if files are changed.--skip-build
: Skips building the documentation before serving.
theme new <themename>
ort new <themename>
: Scaffolds a new Fluorite theme by the given name. Options:--yaml
or-y
: Uses YAML configuration files instead of JSON.
theme add <themename>
ort add <themename>
: Installs a Fluorite theme by the directory name (refer to theme installation for examples.) Options:--as
or-a
: A new name for the theme to be installed as.--symlink
or-s
: Creates a symlink instead of copying the theme (useful for theme development and testing).
theme remove <themename>
ort remove <themename>
: Uninstalls a theme by the given name.
Usage Example
Scaffold a new project, build, serve, and watch the docs:
fl new docs
cd docs
fl build
fl serve --watch