gocfl / ocfl / extensions
In this part of the workshop, we will familiarize ourselves with the basic operation and configuration options of the gocfl tool. We assume that the installation has been successfully completed.
gocfl follows a typical command-line pattern with subcommands. The general syntax is:
gocfl [global flags] <command> [command flags] <arguments>
Important global flags include:
-v, --verbose: Increases the detail of the output.-l, --log: Enables writing logs to a file.The tool offers a comprehensive built-in help. This is the best way to explore the available options:
Shows all available main commands (e.g., init, add, update, extract, validate):
gocfl --help
Each subcommand has its own help page explaining specific flags and arguments:
gocfl init --help
gocfl add --help
gocfl offers flexible configuration options to support both simple ad-hoc calls and complex workflows.
For recurring settings, a configuration file (in TOML format) can be used. A specific file can be specified with the global --config flag:
gocfl --config myconfig.toml [command]
The configuration file is used not only for storing simple default values (like S3 connections or log levels) but is especially essential for complex submodule settings. Many of these deep configurations are intentionally not available as command-line parameters to keep the command line clear.
Examples of such submodules are:
For a detailed overview of the individual sections and possibilities of the configuration file, see the page Detailed Configuration (gocfl.toml).
If no path is specified, gocfl uses internal default values (embedded config).
If settings are defined in multiple places, the following priority applies:
GOCFL_S3_ENDPOINT).To ensure you are working with the expected version, use:
gocfl --version
| Back to Installation | Back to Table of Contents | Next Topic: Initializing a Storage Root |