Nomad
nomad-pack generate var-file command reference
Use the nomad-pack generate registry command to generate a variable override file for a pack.
Usage
nomad-pack generate var-file <pack_name> [options]
Options
-registry=<string>: Specific registry name containing the target pack. If not specified, the default registry is used.-ref=<string>: Specific Git reference of the target pack. Supports tags, SHA, and@latest. If you do not specify a reference, the command defaults to@latest. Usingrefwith a file path is not supported.-to-file=<string>: Path to write generated variable override file to in addition to standard output.
Approval options
-auto-approve: Automatically answer confirmation prompts in the affirmative.
Examples
Generate a variables override file for the given pack to standard output.
nomad-pack generate var-file example
Generate a variable override for the example pack. Output to a file in addition to the terminal.
nomad-pack generate var-file example --to-file ./overrides.hcl
Generate a variable override for the example pack. Output to a file in
addition to the terminal. Setting the auto-approve option allows the command
to overwrite existing files.
nomad-pack generate var-file example --to-file ./overrides.hcl --auto-approve
Generate a variable override pack under development from the current working directory.
nomad-pack generate var-file .
Generate a variable override pack under development from the specified relative path.
nomad-pack generate var-file ../../my-pack