Reference

wf config

Read and change `webfluent.app.json`: every setting, what the project sets, and an edit that keeps the file's shape

wf config <schema|get|set|unset>

Reads and changes webfluent.app.json, and lists every setting it can hold.

bash

$ wf config schema $ wf config schema --json $ wf config get build.base_path $ wf config set build.ssg true $ wf config set meta.lang ar $ wf config unset build.ssg

set checks the value against the setting's type before it writes anything. set and unset keep the rest of the file as it was written. Under a map, the rest of the path is one key: build.budget.app.js sets the app.js entry of build.budget.

See also: Configuration.

wf config schema

Every setting: its type, its default and what it does

wf config schema [options]
Options of wf config schema
OptionTypeMeaning

--json

flag

As JSON, for a tool

wf config get

What the project sets at PATH, or the default

wf config get PATH [options]
Options of wf config get
OptionTypeMeaning

PATH

text

A dotted path: build.base_path, build.budget.app.js

--dir

-d DIR

path

The project's folder (default .)

wf config set

Set PATH to VALUE — JSON, or a word as a string — keeping the file's shape

wf config set PATH VALUE [options]
Options of wf config set
OptionTypeMeaning

PATH

text

A dotted path: build.base_path, meta.site_url

VALUE

text

The value: JSON (true, 3, ["en", "ar"]), or a word, which is taken as a string

--dir

-d DIR

path

The project's folder (default .)

wf config unset

Remove PATH, so its default applies

wf config unset PATH [options]
Options of wf config unset
OptionTypeMeaning

PATH

text

A dotted path: build.base_path, meta.site_url

--dir

-d DIR

path

The project's folder (default .)

Every command