Generate
The terramate generate
command generates files for all code generation strategies. For an overview of code generation strategies available please see the code generation documentation.
Usage
terramate generate [options]
Examples
Generate files for all configurations defined in the current directory and its subdirectories.
terramate generate
To generate Terraform files targeting configurations defined within a specific subdirectory, use the -C
(or --chdir
) flag followed by the desired directory path.
terramate -C some/dir generate
By default, Terramate returns status code = 0 when it succeeds at ensuring that all files are updated. Use the --detailed-exit-code
flag to check when files were modified on disk.
terramate generate --detailed-exit-code
By default, Terramate generates files in parallel (if the machine has more than 1 CPU cores available). You can control the parallelism with --parallel <n>
flag (or -j <n>
for short).
terramate generate --parallel 16