OS Manuals

/usr/bin/gomplate

A go templating utility.

From gomplate-4 4.3.3-r37 (enterprise-packages), captured 2026-11-08 by running gomplate --help (exit 0). permalink

Process text files with Go templates

Usage:
  gomplate [flags]

Flags:
  -d, --datasource datasource        datasource in alias=URL form. Specify multiple times to add multiple sources.
  -H, --datasource-header header     HTTP header field in 'alias=Name: value' form to be provided on HTTP-based data sources. Multiples can be set.
  -c, --context datasource           pre-load a datasource into the context, in alias=URL form. Use the special alias `.` to set the root context.
      --plugin strings               plug in an external command as a function in name=path form. Can be specified multiple times
  -f, --file file                    Template file to process. Omit to use standard input, or use --in or --input-dir (default [-])
  -i, --in string                    Template string to process (alternative to --file and --input-dir)
      --input-dir directory          directory which is examined recursively for templates (alternative to --file and --in)
      --exclude strings              glob of files to not parse
      --exclude-processing strings   glob of files to be copied without parsing
      --include strings              glob of files to parse
  -o, --out file                     output file name. Omit to use standard output. (default [-])
  -t, --template strings             Additional template file(s)
      --output-dir directory         directory to store the processed templates. Only used for --input-dir (default ".")
      --output-map string            Template string to map the input file to an output path
      --chmod string                 set the mode for output file(s). Omit to inherit from input file(s)
      --exec-pipe                    pipe the output to the post-run exec command
      --left-delim delimiter         override the default left-delimiter [$GOMPLATE_LEFT_DELIM] (default "{{")
      --right-delim delimiter        override the default right-delimiter [$GOMPLATE_RIGHT_DELIM] (default "}}")
      --missing-key string           Control the behavior during execution if a map is indexed with a key that is not present in the map. error (default) - return an error, zero - fallback to zero value, default/invalid - print <no value> (default "error")
      --experimental                 enable experimental features [$GOMPLATE_EXPERIMENTAL]
  -V, --verbose                      output extra information about what gomplate is doing
      --config string                config file (overridden by commandline flags) (default ".gomplate.yaml")
  -h, --help                         help for gomplate
  -v, --version                      version for gomplate
Options (24)
OptionDescriptionSource
-d, --datasource datasourcedatasource in alias=URL form.help
-H, --datasource-header headerHTTP header field in 'alias=Name: value' form to be provided on HTTP-based data sources.help
-c, --context datasourcepre-load a datasource into the context, in alias=URL form.help
--plugin stringsplug in an external command as a function in name=path form.help
-f, --file fileTemplate file to process.help
-i, --in stringTemplate string to process (alternative to --file and --input-dir)help
--input-dir directorydirectory which is examined recursively for templates (alternative to --file and --in)help
--exclude stringsglob of files to not parsehelp
--exclude-processing stringsglob of files to be copied without parsinghelp
--include stringsglob of files to parsehelp
-o, --out fileoutput file name.help
-t, --template stringsAdditional template file(s)help
--output-dir directorydirectory to store the processed templates.help
--output-map stringTemplate string to map the input file to an output pathhelp
--chmod stringset the mode for output file(s).help
--exec-pipepipe the output to the post-run exec commandhelp
--left-delim delimiteroverride the default left-delimiter [$GOMPLATE_LEFT_DELIM] (default "{{")help
--right-delim delimiteroverride the default right-delimiter [$GOMPLATE_RIGHT_DELIM] (default "}}")help
--missing-key stringControl the behavior during execution if a map is indexed with a key that is not present in the map.help
--experimentalenable experimental features [$GOMPLATE_EXPERIMENTAL]help
-V, --verboseoutput extra information about what gomplate is doinghelp
--config stringconfig file (overridden by commandline flags) (default ".gomplate.yaml")help
-h, --helphelp for gomplatehelp
-v, --versionversion for gomplatehelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.