Skip to content

ortfodb build

Build the database

Synopsis

Scan in the projects directory for folders with description.md files (and potential media files) and compile the whole database into a JSON file at to-filepath.

If to-filepath is "-", the output will be written to stdout.

If include-works is provided, only works that match the pattern will be included in the database.

ortfodb build <to-filepath> [include-works] [flags]

Options

ShorthandFlagArgumentDescriptionDefault value
-e‐‐exportersstringArrayExporters to enable. If not provided, all the exporters configured in the configuration file will be enabled.
-h‐‐helphelp for build
-m‐‐minifiedOutput a minifed JSON file
‐‐no-cacheDisable usage of previous database build as cache for this build (used for media analysis among other things).
-q‐‐silentDo not write to stdout
‐‐workersintChoose the number of workers to build the database. Defaults to the number of CPU cores.12
‐‐write-progressstringWrite progress information to a file. See https://pkg.go.dev/github.com/ortfo/db#ProgressInfoEvent for more information.

Options inherited from parent commands

ShorthandFlagArgumentDescriptionDefault value
-c‐‐configstringconfig file pathortfodb.yaml
‐‐scatteredOperate in scattered mode. In scattered mode, the description.md files are searched inside `.ortfo' folders in every folder of the database directory, instead of directly in the database directory's folders. See https://github.com/ortfo/

See also

  • ortfodb - Manage your portfolio's database